Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 关注详情去掉云下载键

longmeidao48b60c579a73
diff --git a/README.en.md b/README.en.md
index 317cd8734..d483955e8 100644
--- a/README.en.md
+++ b/README.en.md
@@ -71,8 +71,8 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
- **Playback**: play in the browser and pick up where you left off. Like, rate, save for later, add to a playlist, or "log a climax".
- **New releases**: subscribe on a performer page or by name in follow management, including performers not yet in your library. Peach checks for new titles regularly. Follow creators across sites such as FANBOX, Patreon and Kemono; the same work on different sites appears as one card.
- **JAV intake**: mark a new-release card or followed post as wanted, or enter a video code. Work cards find and deduplicate links from JavDB's resource list and comments, showing attributes, size and date. Add magnets directly to 115 or PikPak, or copy other links. Files scanned into your library are marked as acquired; titles set aside can be searched again.
-- **Cloud download**: paste a magnet link in Activity and hand it to 115 or PikPak for offline download; the finished file joins your library on its own. Followed items and your wishlist also have an entry.
-- **Find a release**: add your own Prowlarr or Jackett indexer under Downloads in local configuration, then search by release code in Activity's Cloud download section. Filter by size and prioritize resolution, Chinese subtitles, or uncensored editions; select a candidate and confirm submission.
+- **Cloud download**: open Cloud download from JAV intake or a quality goal, paste a magnet link and hand it to 115 or PikPak for offline download; the finished file joins your library on its own. Progress shows up in Activity.
+- **Find a release**: add your own Prowlarr or Jackett indexer under Downloads in local configuration, then search by release code in the Cloud download dialog. Filter by size and prioritize resolution, Chinese subtitles, or uncensored editions; select a candidate and confirm submission.
- **Statistics**: which drive holds what, how much you have watched and which tags dominate, on one page.
- **Appearance**: light or dark, accent color and sidebar order are all yours to set.
- **Any screen**: works in the browser on desktop, tablet and phone.
diff --git a/README.md b/README.md
index 69115b347..e292c3719 100644
--- a/README.md
+++ b/README.md
@@ -71,7 +71,7 @@ https://github.com/user-attachments/assets/a5610874-e611-41bb-be22-7d99f0d64b62
- **播放**:在浏览器里直接播放,记下看到哪;可以点喜欢、打分、稍后看、加进播放列表,也能「记一次高潮」。
- **追新作**:在女优页打开订阅,或在关注管理里按名字订阅,馆藏中尚未收录的女优也可订阅。Peach 会定期检查新作;创作者可跨 FANBOX、Patreon、Kemono 等站点关注,不同站点的同一作品合成一张卡。
- **JAV 入库**:在新作卡或关注内容上点「想要」,也可以直接输入番号。作品卡自动查找 JavDB 资源区与评论中的链接,合并重复资源,显示属性、大小和日期;磁链可以直接添加到 115 或 PikPak,其他链接可以复制。文件扫进馆藏后自动标为已入库,久找不到的老片可重新查找。
-- **云下载**:在 JAV 入库页、高清版目标或关注条目上打开云下载,贴一条磁力交给 115 或 PikPak 离线下载,下载完自动入库;任务进度在活动页看。
+- **云下载**:在 JAV 入库页或高清版目标上打开云下载,贴一条磁力交给 115 或 PikPak 离线下载,下载完自动入库;任务进度在活动页看。
- **按番号找资源**:在本机配置页「下载」里添加自己的 Prowlarr 或 Jackett 索引器,在云下载弹层里按番号搜索。可按体积筛选,优先找高清、中字或无码;选中候选后确认提交。
- **统计**:片子存在哪块盘、看过多少、标签分布,一页看完。
- **外观**:深色浅色、主题色、侧栏顺序都能自己调。
diff --git a/docs/CLOUDDRIVE.md b/docs/CLOUDDRIVE.md
index badf611e3..330ca6189 100644
--- a/docs/CLOUDDRIVE.md
+++ b/docs/CLOUDDRIVE.md
@@ -125,7 +125,7 @@ Peach 不实时监视网盘目录,因为每列一次目录都是一次网络
令牌、refresh token 和保存的密码只存在这台电脑的凭据文件里,不进设置文件,不随设置同步,也不写进日志和账本。
-提交在云下载弹层里:JAV 入库页每条作品的「搜索资源」与页上的「提交磁力」、高清版目标卡的「搜索资源」、关注详情的「云下载」键都在原页打开它,带上番号和标题;按番号搜索或贴磁力、选 115 或 PikPak、确认目标目录后提交。提交过的任务在活动页(`/activity`)的「云下载」段看进度。同一个磁力(按 infohash 判断)已经有任务时,Peach 接着跟进那一条,不重复提交。
+提交在云下载弹层里:JAV 入库页每条作品的「搜索资源」与页上的「提交磁力」、高清版目标卡的「搜索资源」都在原页打开它,带上番号和标题;按番号搜索或贴磁力、选 115 或 PikPak、确认目标目录后提交。提交过的任务在活动页(`/activity`)的「云下载」段看进度。同一个磁力(按 infohash 判断)已经有任务时,Peach 接着跟进那一条,不重复提交。
任务卡显示状态和失败原因,在远端跑的可以取消,失败、取消和停滞的可以重新提交,每张卡都能复制磁力。几条规则:
diff --git a/docs/adr/0089-cloud-offline-download.md b/docs/adr/0089-cloud-offline-download.md
index 53fe860fb..aa52e2360 100644
--- a/docs/adr/0089-cloud-offline-download.md
+++ b/docs/adr/0089-cloud-offline-download.md
@@ -60,6 +60,7 @@ infohash 已有任务就接管、不重复提交、不再扣配额;`download_s
## 修订:提交改在原页的弹层里(2026-10-08)
-活动页的「云下载」段只列任务,不再有提交表单。JAV 入库页、高清版目标卡与关注详情在原页打开同一个
-云下载弹层(`frontend/src/react/activity/cloud-download-dialog.tsx`),番号、标题与来处直接交给弹层,
-不经壳转交、也不换页;第五条「入口不进地址栏」照旧成立。作品详情上没有这颗键。
+活动页的「云下载」段只列任务,不再有提交表单。JAV 入库页与高清版目标卡在原页打开同一个云下载弹层
+(`frontend/src/react/activity/cloud-download-dialog.tsx`),番号、标题与来处直接交给弹层,不经壳转交、
+也不换页;第五条「入口不进地址栏」照旧成立。关注详情与作品详情不设这颗键:关注条目是创作者帖子,没有
+番号可搜,上线以来也没有一条从那里提交的任务。
diff --git a/frontend/src/react/activity/cloud-download-dialog.tsx b/frontend/src/react/activity/cloud-download-dialog.tsx
index 8b0dee194..9a84b8979 100644
--- a/frontend/src/react/activity/cloud-download-dialog.tsx
+++ b/frontend/src/react/activity/cloud-download-dialog.tsx
@@ -1,13 +1,11 @@
/* 云下载弹层:在点它的那一页原地打开,搜索索引器或贴磁力,交给 115 或 PikPak 离线下载。
*
- * 入口有三处:JAV 入库页(每条作品与页头那一颗)、高清版目标卡、关注详情。它们把番号、
+ * 入口有两处:JAV 入库页(每条作品与页上那一颗)、高清版目标卡,都带得出番号。它们把番号、
* 标题和来处(`prefill`)交进来,提交时一并记在任务上;提交过的任务在活动页「云下载」段看。
*
- * 下载配置(`/api/downloads`)在弹层打开时才取,和活动页、入库页读同一个缓存键。
- * 关注详情是 `showModal()` 开的原生 dialog,`anchor` 指着触发键,弹层挂进同一层才盖得住它。 */
-import { useRef, useState, type FormEvent, type ReactNode, type RefObject } from 'react';
+ * 下载配置(`/api/downloads`)在弹层打开时才取,和活动页、入库页读同一个缓存键。 */
+import { useRef, useState, type FormEvent, type ReactNode } from 'react';
import { useQuery, useQueryClient } from '@tanstack/react-query';
-import { UNSAFE_PortalProvider } from 'react-aria';
import { Heading } from 'react-aria-components';
import { Button } from '@/components/base/buttons/button';
@@ -18,13 +16,12 @@ import { apiGet, apiSend, errorMessage } from '../../api';
import type { DownloadProviderKey, DownloadsSnapshot, DownloadSubmitResult } from '../bundle';
import { ModalFrame } from '../components/modal-frame';
import { Note } from '../components/note';
-import { overlayHost } from '../components/overlay-host';
import { ErrorText, FieldLabel, Help } from '../settings/section';
import { busyProps, useAction } from '../settings/use-action';
import { DOWNLOADS_KEY, DOWNLOADS_URL, downloadPollInterval, failureText } from './downloads-panel';
import { ResourceSearch } from './resource-search';
-/** 入口带进来的上下文。`origin` 记在任务上,如 `asset:12`、`follow:34`、`wishlist:5`。 */
+/** 入口带进来的上下文。`origin` 记在任务上,如 `asset:12`、`wishlist:5`。 */
export interface DownloadPrefill { code?: string; title?: string; origin?: string; searchReason?: string }
const RECEIPTS: Partial<Record<DownloadSubmitResult['outcome'], string>> = {
@@ -33,23 +30,19 @@ const RECEIPTS: Partial<Record<DownloadSubmitResult['outcome'], string>> = {
adopted_remote: '远端已有同一任务,已接管',
};
-export function CloudDownloadDialog({ prefill, close, receipt, provider, anchor }: {
+export function CloudDownloadDialog({ prefill, close, receipt, provider }: {
/** 空就是关着;不带番号与标题的空对象是「随手贴一条磁力」。 */
prefill: DownloadPrefill | null;
close(): void;
receipt(message: string): void;
/** 打开时先选中的下载方式,入库页把页上那一份交进来。 */
provider?: string;
- anchor?: RefObject<Element | null>;
}) {
- const frame = (
+ return (
<ModalFrame isOpen={Boolean(prefill)} onOpenChange={(open) => { if (!open) close() }} width="form">
{prefill ? <Body prefill={prefill} close={close} receipt={receipt} provider={provider} /> : null}
</ModalFrame>
);
- return anchor
- ? <UNSAFE_PortalProvider getContainer={() => overlayHost(anchor.current)}>{frame}</UNSAFE_PortalProvider>
- : frame;
}
function Body({ prefill, close, receipt, provider }: {
diff --git a/frontend/src/react/follow-detail/follow-detail-page.tsx b/frontend/src/react/follow-detail/follow-detail-page.tsx
index 4f7c89363..fa978352f 100644
--- a/frontend/src/react/follow-detail/follow-detail-page.tsx
+++ b/frontend/src/react/follow-detail/follow-detail-page.tsx
@@ -12,7 +12,6 @@ import { useMutation, useQuery } from '@tanstack/react-query';
import { esc, fmtDur, foldName, icon, requestErrorMessage } from '@peach/legacy/core';
import { apiSend } from '../../api';
-import { CloudDownloadDialog, type DownloadPrefill } from '../activity/cloud-download-dialog';
import { RetryNote } from '../components/grid-reveal';
import { MixGroupLabel, MixQueue, MixQueueRow } from '../components/mix-queue';
import {
@@ -309,8 +308,6 @@ function Side({ item, data, context, media, write, issue, helpers, actions }: {
const saved = item.status === 'saved';
const { busy } = write;
const busyAttrs = (key: string) => (busy.has(key) ? { 'aria-busy': true, 'aria-disabled': true } as const : {});
- const cloud = useRef<HTMLButtonElement>(null);
- const [download, setDownload] = useState<DownloadPrefill | null>(null);
return (
<div data-stage-side="" data-follow-detail-side="">
<div data-stage-side-content="">
@@ -378,9 +375,6 @@ function Side({ item, data, context, media, write, issue, helpers, actions }: {
title="隐藏这张图" {...busyAttrs(`hide:${selected.index}`)} onClick={() => write.hide(selected.index)}
dangerouslySetInnerHTML={{ __html: icon('image-off') }} />
) : null}
- <button ref={cloud} type="button" data-follow-cloud-download="" aria-label="云下载" title="云下载"
- aria-haspopup="dialog" onClick={() => setDownload({ title: item.title || '', origin: `follow:${item.id}` })}
- dangerouslySetInnerHTML={{ __html: icon('cloud-download') }} />
{src ? (
<a data-follow-download="" href={`${src}${src.includes('?') ? '&' : '?'}download=1`} download=""
aria-label="下载到本地" title="下载到本地" dangerouslySetInnerHTML={{ __html: icon('download') }} />
@@ -404,8 +398,6 @@ function Side({ item, data, context, media, write, issue, helpers, actions }: {
</div>
) : null}
<span data-follow-state="" aria-live="polite">{write.failure}</span>
- <CloudDownloadDialog prefill={download} close={() => setDownload(null)} anchor={cloud}
- receipt={(message) => actions.toast(message)} />
{tags.length ? (
<div data-stage-tags="" data-follow-detail-tags="">
{tags.map((tag) => (
diff --git a/frontend/test/react/follow-detail.test.tsx b/frontend/test/react/follow-detail.test.tsx
index bdf3af397..d19dc2541 100644
--- a/frontend/test/react/follow-detail.test.tsx
+++ b/frontend/test/react/follow-detail.test.tsx
@@ -150,18 +150,6 @@ describe('写操作', () => {
expect(given.toast).toHaveBeenCalledWith('已保存到账本');
});
- it('云下载键在详情里原地打开弹层,标题行写这一条的标题,不发写请求', async () => {
- const fetcher = serve();
- const { host } = await show(data(item(9)));
- const button = host.querySelector('[data-follow-cloud-download]');
- expect(button?.getAttribute('aria-label')).toBe('云下载');
- expect(button?.querySelector('use')?.getAttribute('href')).toBe('#i-cloud-download');
- await click(button);
- await settle();
- expect(document.querySelector('[role=dialog]')?.textContent).toContain(item(9).title);
- expect(posts(fetcher)).toEqual([]);
- });
-
it('标记已看:键按下、多一枚「恢复未看」;回执的撤销写回原状态', async () => {
const fetcher = serve();
const { host, actions: given } = await show(data(item(5)));
diff --git a/frontend/test/react/immerse.test.tsx b/frontend/test/react/immerse.test.tsx
index 5a7294626..f42c461e1 100644
--- a/frontend/test/react/immerse.test.tsx
+++ b/frontend/test/react/immerse.test.tsx
@@ -168,7 +168,7 @@ function shellActions(): ShellActions {
openItem: vi.fn(), openEntity: vi.fn(), openTag: vi.fn(), openTasteSignal: vi.fn(), navigate: vi.fn(),
openManage: vi.fn(), managePath: vi.fn(() => ''), openFollow: vi.fn(), receipt: vi.fn(), toast: vi.fn(),
failure: vi.fn(), revealSource: vi.fn(async () => ''), reopenTutorial: vi.fn(async () => {}),
- requestConfigurationSection: vi.fn(), requestCloudDownload: vi.fn(), routeReview: vi.fn(),
+ requestConfigurationSection: vi.fn(), routeReview: vi.fn(),
routeFollowManage: vi.fn(), saveFollowPreference: vi.fn(), srcBadge: () => '', routeIndex: vi.fn(),
savePeopleLayout: vi.fn(), exitSelectMode: vi.fn(), personAvatar: vi.fn(() => ({ html: '', face: '' })),
authorAvatar: vi.fn(() => ''), showIndexTags: vi.fn(), openFollowAuthor: vi.fn(), openFollowTag: vi.fn(),
diff --git a/frontend/test/react/settings-panel.test.tsx b/frontend/test/react/settings-panel.test.tsx
index 83e84a3fb..117374cf4 100644
--- a/frontend/test/react/settings-panel.test.tsx
+++ b/frontend/test/react/settings-panel.test.tsx
@@ -85,7 +85,7 @@ function shellActions(): ShellActions {
openItem: vi.fn(), openEntity: vi.fn(), openTag: vi.fn(), openTasteSignal: vi.fn(), navigate: vi.fn(),
openManage: vi.fn(), managePath: vi.fn(() => ''), openFollow: vi.fn(), receipt: vi.fn(), toast: vi.fn(),
failure: vi.fn(), revealSource: vi.fn(async () => ''), reopenTutorial: vi.fn(async () => {}),
- requestConfigurationSection: vi.fn(), requestCloudDownload: vi.fn(), routeReview: vi.fn(),
+ requestConfigurationSection: vi.fn(), routeReview: vi.fn(),
routeFollowManage: vi.fn(), saveFollowPreference: vi.fn(), srcBadge: () => '', routeIndex: vi.fn(),
savePeopleLayout: vi.fn(), exitSelectMode: vi.fn(), personAvatar: vi.fn(() => ({ html: '', face: '' })),
authorAvatar: vi.fn(() => ''), showIndexTags: vi.fn(), openFollowAuthor: vi.fn(), openFollowTag: vi.fn(),
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjs
index b0a67a8ad..93b735540 100644
--- a/scripts/vendor_web_dependencies.mjs
+++ b/scripts/vendor_web_dependencies.mjs
@@ -120,8 +120,6 @@ const lucideIcons = new Map([
["image-off", "image-off"],
["arrow-up", "arrow-up"], ["arrow-down", "arrow-down"],
["calendar", "calendar"], ["download", "download"], ["monitor", "monitor"],
- // 作品详情与关注条目的「云下载」键。
- ["cloud-download", "cloud-download"],
// 侧栏「管理」那一层:收拾库里的东西。`settings` 只归右上角的界面偏好。
["wrench", "wrench"],
// 管理菜单里的「配置」:这台电脑的媒体文件夹与端口。
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 1e1ff669b..6eeae6314 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -9709,10 +9709,10 @@ function ute(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Iv(e) {
+function dte(e) {
return e && e.__esModule ? e.default : e;
}
-function Lv(e, t, n) {
+function Iv(e, t, n) {
let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = dh(), { triggerProps: s, overlayProps: c } = ute({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
@@ -9728,7 +9728,7 @@ function Lv(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = wg(Iv(Nv), "@react-aria/menu"), { longPressProps: f } = Pv({
+ }), d = wg(dte(Nv), "@react-aria/menu"), { longPressProps: f } = Pv({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -9792,8 +9792,8 @@ function Lv(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Rv = 1e3;
-function zv(e) {
+var Lv = 1e3;
+function Rv(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, B.useRef)({
search: "",
timeout: void 0
@@ -9812,11 +9812,11 @@ function zv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Rv);
+ }, Lv);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = dte(e.key);
+ let a = fte(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Op(e.currentTarget, H(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -9828,17 +9828,17 @@ function zv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Rv);
+ }, Lv);
}
} : void 0
} };
}
-function dte(e) {
+function fte(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Bv(e, t) {
+function zv(e, t) {
let n = (0, B.useRef)(!0), r = (0, B.useRef)(null);
Hp(() => (n.current = !0, () => {
n.current = !1;
@@ -9848,7 +9848,7 @@ function Bv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Vv(e) {
+function Bv(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 } = vg(), _ = lm(), v = (e, n, i) => {
if (n != null) {
if (t.isLink(n) && m === "selection" && l && !J_(e)) {
@@ -10041,14 +10041,14 @@ function Vv(e) {
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (I.current = !0);
} : void 0);
let te = n.getFirstKey?.() ?? null;
- Bv(() => {
+ zv(() => {
if (I.current) {
if (te == null) {
let e = kp();
og(r.current), sg(e, null), t.collection.size > 0 && (I.current = !1);
} else t.setFocusedKey(te), I.current = !1;
}
- }, [te, t.collection.size]), Bv(() => {
+ }, [te, t.collection.size]), zv(() => {
t.collection.size > 0 && (I.current = !1);
}, [t.focusedKey]), dg(r, tee, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
@@ -10090,7 +10090,7 @@ function Vv(e) {
onMouseDown(e) {
p.current === H(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = zv({
+ }, { typeSelectProps: se } = Rv({
keyboardDelegate: n,
selectionManager: t
});
@@ -10105,13 +10105,13 @@ function Vv(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Hv(e, t) {
+function Vv(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Uv(e) {
- return Wv(e, 0);
+function Hv(e) {
+ return Uv(e, 0);
}
-function Wv(e, t) {
+function Uv(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -10119,44 +10119,44 @@ function Wv(e, t) {
n++;
}
}
-function Gv(e) {
+function Wv(e) {
let t;
for (let n of e) t = n;
return t;
}
-function Kv(e, t, n) {
+function Gv(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...qv(e, t), t], i = [...qv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Kv(e, t), t], i = [...Kv(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 qv(e, t) {
+function Kv(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 Jv = /* @__PURE__ */ new WeakMap();
-function Yv(e) {
- let t = Jv.get(e);
+var qv = /* @__PURE__ */ new WeakMap();
+function Jv(e) {
+ let t = qv.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Hv(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(Vv(i, e)) : i.type === "item" && n++;
};
- return r(e), Jv.set(e, n), n;
+ return r(e), qv.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var Xv = /* @__PURE__ */ new Map();
-function Zv(e) {
+var Yv = /* @__PURE__ */ new Map();
+function Xv(e) {
let { locale: t } = vg(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (Xv.has(n)) return Xv.get(n);
+ if (Yv.has(n)) return Yv.get(n);
let r = new Intl.Collator(t, e);
- return Xv.set(n, r), r;
+ return Yv.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var fte = /*#__PURE__*/ B.forwardRef(({ children: e, ...t }, n) => {
+var pte = /*#__PURE__*/ B.forwardRef(({ children: e, ...t }, n) => {
let r = (0, B.useRef)(!1), i = (0, B.useContext)(Ng), a = U(i || {}, {
...t,
register() {
@@ -10167,44 +10167,44 @@ var fte = /*#__PURE__*/ B.forwardRef(({ children: e, ...t }, n) => {
r.current ||= !0;
}, []), /*#__PURE__*/ B.createElement(Ng.Provider, { value: a }, e);
});
-function pte({ children: e }) {
+function mte({ children: e }) {
let t = (0, B.useMemo)(() => ({ register: () => {} }), []);
return /*#__PURE__*/ B.createElement(Ng.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var Qv = /*#__PURE__*/ (0, B.createContext)({});
-function $v(e) {
- let { getContainer: t } = e, { getContainer: n } = ey();
- return /*#__PURE__*/ B.createElement(Qv.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var Zv = /*#__PURE__*/ (0, B.createContext)({});
+function Qv(e) {
+ let { getContainer: t } = e, { getContainer: n } = $v();
+ return /*#__PURE__*/ B.createElement(Zv.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function ey() {
- return (0, B.useContext)(Qv) ?? {};
+function $v() {
+ return (0, B.useContext)(Zv) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var ty = /*#__PURE__*/ B.createContext(null);
-function ny(e) {
+var ey = /*#__PURE__*/ B.createContext(null);
+function ty(e) {
let t = Om(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, B.useState)(!1), o = (0, B.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ey();
+ }), [i, a]), { getContainer: s } = $v();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
return e.disableFocusManagement || (c = /*#__PURE__*/ B.createElement(Yg, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ B.createElement(ty.Provider, { value: o }, /*#__PURE__*/ B.createElement(pte, null, /*#__PURE__*/ B.createElement(Fh.Provider, { value: null }, c))), /*#__PURE__*/ $f.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ B.createElement(ey.Provider, { value: o }, /*#__PURE__*/ B.createElement(mte, null, /*#__PURE__*/ B.createElement(Fh.Provider, { value: null }, c))), /*#__PURE__*/ $f.createPortal(c, n);
}
-function ry() {
- let e = (0, B.useContext)(ty)?.setContain;
+function ny() {
+ let e = (0, B.useContext)(ey)?.setContain;
Hp(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function mte(e, t) {
+function hte(e, t) {
let { role: n = "dialog" } = e, r = ph();
r = e["aria-label"] ? void 0 : r;
let i = ph();
@@ -10220,7 +10220,7 @@ function mte(e, t) {
clearTimeout(e);
};
}
- }, [t]), ry(), (0, B.useRef)(!1), (0, B.useEffect)(() => {});
+ }, [t]), ny(), (0, B.useRef)(!1), (0, B.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
@@ -10239,7 +10239,7 @@ function mte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function iy(e = {}) {
+function ry(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, B.useRef)({
isFocused: !1,
isFocusVisible: t || Gm()
@@ -10267,35 +10267,35 @@ function iy(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function hte(e = {}) {
+function gte(e = {}) {
let { locale: t } = vg();
return (0, B.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var ay = !1, oy = 0;
-function gte() {
- ay = !0, setTimeout(() => {
- ay = !1;
+var iy = !1, ay = 0;
+function _te() {
+ iy = !0, setTimeout(() => {
+ iy = !1;
}, 500);
}
-function sy(e) {
- e.pointerType === "touch" && gte();
+function oy(e) {
+ e.pointerType === "touch" && _te();
}
-function _te() {
+function vte() {
let e = vp(null);
- if (e !== void 0) return oy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", sy), oy++, () => {
- oy--, !(oy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", sy);
+ if (e !== void 0) return ay === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", oy), ay++, () => {
+ ay--, !(ay > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", oy);
};
}
-function cy(e) {
+function sy(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, B.useState)(!1), s = (0, B.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, B.useEffect)(_te, []);
+ (0, B.useEffect)(vte, []);
let { addGlobalListener: c, removeAllGlobalListeners: l } = Pg(), { hoverProps: u, triggerHoverEnd: d } = (0, B.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !Op(e.currentTarget, H(e))) return;
@@ -10317,7 +10317,7 @@ function cy(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- ay && t.pointerType === "mouse" || e(t, t.pointerType);
+ iy && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && Op(e.currentTarget, H(e)) && a(e, e.pointerType);
}), {
@@ -10342,12 +10342,12 @@ function cy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function vte(e) {
+function yte(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, B.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
}), o = ug((e) => {
- n && ly(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ n && cy(e, t) && (i && i(e), a.current.isPointerDown = !0);
}), s = ug((e) => {
n && n(e);
});
@@ -10357,7 +10357,7 @@ function vte(e) {
let n = t.current, i = vp(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && ly(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && cy(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);
@@ -10365,7 +10365,7 @@ function vte(e) {
}
}, [t, r]);
}
-function ly(e, t) {
+function cy(e, t) {
if (e.button > 0) return !1;
let n = H(e);
if (n) {
@@ -10376,8 +10376,8 @@ function ly(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var uy = {};
-uy = {
+var ly = {};
+ly = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -10391,8 +10391,8 @@ uy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var dy = {};
-dy = {
+var uy = {};
+uy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -10406,8 +10406,8 @@ dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var fy = {};
-fy = {
+var dy = {};
+dy = {
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",
@@ -10421,8 +10421,8 @@ fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var py = {};
-py = {
+var fy = {};
+fy = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -10436,8 +10436,8 @@ py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var my = {};
-my = {
+var py = {};
+py = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -10451,8 +10451,8 @@ my = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var hy = {};
-hy = {
+var my = {};
+my = {
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: "Επιλογή",
@@ -10466,8 +10466,8 @@ hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var gy = {};
-gy = {
+var hy = {};
+hy = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -10481,8 +10481,8 @@ gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var _y = {};
-_y = {
+var gy = {};
+gy = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -10496,8 +10496,8 @@ _y = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var vy = {};
-vy = {
+var _y = {};
+_y = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -10511,8 +10511,8 @@ vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var yy = {};
-yy = {
+var vy = {};
+vy = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -10526,8 +10526,8 @@ yy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var by = {};
-by = {
+var yy = {};
+yy = {
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",
@@ -10541,8 +10541,8 @@ by = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var xy = {};
-xy = {
+var by = {};
+by = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -10556,8 +10556,8 @@ xy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Sy = {};
-Sy = {
+var xy = {};
+xy = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -10571,8 +10571,8 @@ Sy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Cy = {};
-Cy = {
+var Sy = {};
+Sy = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -10586,8 +10586,8 @@ Cy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var wy = {};
-wy = {
+var Cy = {};
+Cy = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -10601,8 +10601,8 @@ wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Ty = {};
-Ty = {
+var wy = {};
+wy = {
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: "選択",
@@ -10616,8 +10616,8 @@ Ty = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Ey = {};
-Ey = {
+var Ty = {};
+Ty = {
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: "선택",
@@ -10631,8 +10631,8 @@ Ey = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Dy = {};
-Dy = {
+var Ey = {};
+Ey = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -10646,8 +10646,8 @@ Dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Oy = {};
-Oy = {
+var Dy = {};
+Dy = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -10661,8 +10661,8 @@ Oy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var ky = {};
-ky = {
+var Oy = {};
+Oy = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -10676,8 +10676,8 @@ ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Ay = {};
-Ay = {
+var ky = {};
+ky = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -10691,8 +10691,8 @@ Ay = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var jy = {};
-jy = {
+var Ay = {};
+Ay = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -10706,8 +10706,8 @@ jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var My = {};
-My = {
+var jy = {};
+jy = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -10721,8 +10721,8 @@ My = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Ny = {};
-Ny = {
+var My = {};
+My = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -10736,8 +10736,8 @@ Ny = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Py = {};
-Py = {
+var Ny = {};
+Ny = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -10751,8 +10751,8 @@ Py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Fy = {};
-Fy = {
+var Py = {};
+Py = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -10766,8 +10766,8 @@ Fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Iy = {};
-Iy = {
+var Fy = {};
+Fy = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -10781,8 +10781,8 @@ Iy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var Ly = {};
-Ly = {
+var Iy = {};
+Iy = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -10796,8 +10796,8 @@ Ly = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Ry = {};
-Ry = {
+var Ly = {};
+Ly = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -10811,8 +10811,8 @@ Ry = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var zy = {};
-zy = {
+var Ry = {};
+Ry = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -10826,8 +10826,8 @@ zy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var By = {};
-By = {
+var zy = {};
+zy = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -10841,8 +10841,8 @@ By = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Vy = {};
-Vy = {
+var By = {};
+By = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -10856,8 +10856,8 @@ Vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var Hy = {};
-Hy = {
+var Vy = {};
+Vy = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -10871,8 +10871,8 @@ Hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var Uy = {};
-Uy = {
+var Hy = {};
+Hy = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -10886,55 +10886,55 @@ Uy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var Wy = {};
-Wy = {
- "ar-AE": uy,
- "bg-BG": dy,
- "cs-CZ": fy,
- "da-DK": py,
- "de-DE": my,
- "el-GR": hy,
- "en-US": gy,
- "es-ES": _y,
- "et-EE": vy,
- "fi-FI": yy,
- "fr-FR": by,
- "he-IL": xy,
- "hr-HR": Sy,
- "hu-HU": Cy,
- "it-IT": wy,
- "ja-JP": Ty,
- "ko-KR": Ey,
- "lt-LT": Dy,
- "lv-LV": Oy,
- "nb-NO": ky,
- "nl-NL": Ay,
- "pl-PL": jy,
- "pt-BR": My,
- "pt-PT": Ny,
- "ro-RO": Py,
- "ru-RU": Fy,
- "sk-SK": Iy,
- "sl-SI": Ly,
- "sr-SP": Ry,
- "sv-SE": zy,
- "tr-TR": By,
- "uk-UA": Vy,
- "zh-CN": Hy,
- "zh-TW": Uy
+var Uy = {};
+Uy = {
+ "ar-AE": ly,
+ "bg-BG": uy,
+ "cs-CZ": dy,
+ "da-DK": fy,
+ "de-DE": py,
+ "el-GR": my,
+ "en-US": hy,
+ "es-ES": gy,
+ "et-EE": _y,
+ "fi-FI": vy,
+ "fr-FR": yy,
+ "he-IL": by,
+ "hr-HR": xy,
+ "hu-HU": Sy,
+ "it-IT": Cy,
+ "ja-JP": wy,
+ "ko-KR": Ty,
+ "lt-LT": Ey,
+ "lv-LV": Dy,
+ "nb-NO": Oy,
+ "nl-NL": ky,
+ "pl-PL": Ay,
+ "pt-BR": jy,
+ "pt-PT": My,
+ "ro-RO": Ny,
+ "ru-RU": Py,
+ "sk-SK": Fy,
+ "sl-SI": Iy,
+ "sr-SP": Ly,
+ "sv-SE": Ry,
+ "tr-TR": zy,
+ "uk-UA": By,
+ "zh-CN": Vy,
+ "zh-TW": Hy
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function yte(e) {
+function bte(e) {
return e && e.__esModule ? e.default : e;
}
-function bte(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = wg(yte(Wy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, B.useRef)(i), o = (0, B.useCallback)(() => {
+function xte(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = wg(bte(Uy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, B.useRef)(i), o = (0, B.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = Gy(i, a.current), o = Gy(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = Wy(i, a.current), o = Wy(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)) {
@@ -10973,7 +10973,7 @@ function bte(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function Gy(e, t) {
+function Wy(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);
@@ -10981,7 +10981,7 @@ function Gy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Ky(e, t) {
+function Gy(e, t) {
let n = t?.isDisabled, [r, i] = (0, B.useState)(!1);
return Hp(() => {
if (e?.current && !n) {
@@ -11006,11 +11006,11 @@ function Ky(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function xte(e) {
+function Ste(e) {
return e && e.__esModule ? e.default : e;
}
-function Ste(e) {
- let t = wg(xte(Wy), "@react-aria/grid"), n = Jm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+function Cte(e) {
+ let t = wg(Ste(Uy), "@react-aria/grid"), n = Jm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
return b_((0, B.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;
@@ -11024,8 +11024,8 @@ function Ste(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function qy(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = Zv({
+function Ky(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = Xv({
usage: "search",
sensitivity: "base"
}), l = t.disabledBehavior, u = (0, B.useMemo)(() => a || new Q_({
@@ -11045,7 +11045,7 @@ function qy(e) {
c,
l,
s
- ]), { collectionProps: d } = Vv({
+ ]), { collectionProps: d } = Bv({
...e,
ref: i,
selectionManager: t,
@@ -11055,7 +11055,7 @@ function qy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Jy(e) {
+function qy(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 = lm();
t = dh(t);
let p = (e) => {
@@ -11102,20 +11102,20 @@ function Jy(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || Xy(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || Yy(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Yy(e.key)) return;
+ if (e.pointerType === "keyboard" && !Jy(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || Xy(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || Yy(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Yy(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Jy(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
let A = ote(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = U(k, {
@@ -11184,22 +11184,22 @@ function Jy(e) {
hasAction: S
};
}
-function Yy(e) {
+function Jy(e) {
return e === "Enter";
}
-function Xy(e) {
+function Yy(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Cte(e) {
+function wte(e) {
return e && e.__esModule ? e.default : e;
}
-function wte(e, t) {
+function Tte(e, t) {
let { key: n } = e, r = t.selectionManager, i = dh(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": wg(Cte(Wy), "@react-aria/grid").format("select"),
+ "aria-label": wg(wte(Uy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -11207,10 +11207,10 @@ function wte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Tte(e, t, n) {
+function Ete(e, t, n) {
let r = Eg(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 } = qy({
+ let { listProps: s } = Ky({
...e,
ref: n,
selectionManager: t.selectionManager,
@@ -11248,7 +11248,7 @@ function Tte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ete(e) {
+function Dte(e) {
let { heading: t, "aria-label": n } = e, r = dh();
return {
itemProps: { role: "presentation" },
@@ -11268,7 +11268,7 @@ function Ete(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Dte(e, t, n) {
+function Ote(e, t, n) {
let { key: r } = e, i = q_.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 = ph(), f = ph(), p = {
role: "option",
"aria-disabled": a || void 0,
@@ -11279,9 +11279,9 @@ function Dte(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"] = Yv(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = Jv(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ite(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Jy({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ite(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = qy({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -11294,7 +11294,7 @@ function Dte(e, t, n) {
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = cy({
+ }), { hoverProps: S } = sy({
isDisabled: a || !c,
onHoverStart() {
Gm() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
@@ -11321,13 +11321,13 @@ function Dte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var Zy = /* @__PURE__ */ new WeakMap();
+var Xy = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Ote(e, t, n) {
+function kte(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Eg(e, { labelable: !0 }), { listProps: c } = qy({
+ let s = Eg(e, { labelable: !0 }), { listProps: c } = Ky({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -11336,7 +11336,7 @@ function Ote(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return Zy.set(t, {
+ return Xy.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -11353,8 +11353,8 @@ function Ote(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function kte(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), D = e.isSelected ?? C.isSelected(i), O = Zy.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = lm(), M = () => {
+function Ate(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), D = e.isSelected ?? C.isSelected(i), O = Xy.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = lm(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -11378,7 +11378,7 @@ function kte(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (I["aria-checked"] = D), s) {
let e = Number(k?.index);
- I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = Yv(t.collection);
+ I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = Jv(t.collection);
}
let te = (0, B.useRef)(!1), ne = (e) => {
f?.(e), te.current = e;
@@ -11388,7 +11388,7 @@ function kte(e, t, n) {
m?.(e), M(), gm(e, j, k.props.href, k?.props.routerOptions);
let t = re.current?.pointerType === "keyboard" ? re.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), re.current = null;
- }, { itemProps: oe, isFocused: se } = Jy({
+ }, { itemProps: oe, isFocused: se } = qy({
id: r,
selectionManager: C,
key: i,
@@ -11404,7 +11404,7 @@ function kte(e, t, n) {
onPressChange: ne,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: ue } = cy({
+ }), { hoverProps: ue } = sy({
isDisabled: E,
onHoverStart(e) {
!Gm() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
@@ -11466,7 +11466,7 @@ function kte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Ate(e) {
+function jte(e) {
let { heading: t, "aria-label": n } = e, r = dh();
return {
itemProps: { role: "presentation" },
@@ -11483,15 +11483,15 @@ function Ate(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function jte() {
+function Mte() {
return window.ResizeObserver !== void 0;
}
-function Qy(e) {
+function Zy(e) {
let { ref: t, box: n, onResize: r } = e, i = ug(r);
(0, B.useEffect)(() => {
let e = t?.current;
if (e) {
- if (jte()) {
+ if (Mte()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -11507,186 +11507,186 @@ function Qy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var $y = {};
-$y = { dismiss: "تجاهل" };
+var Qy = {};
+Qy = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var eb = {};
-eb = { dismiss: "Отхвърляне" };
+var $y = {};
+$y = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var tb = {};
-tb = { dismiss: "Odstranit" };
+var eb = {};
+eb = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var nb = {};
-nb = { dismiss: "Luk" };
+var tb = {};
+tb = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var rb = {};
-rb = { dismiss: "Schließen" };
+var nb = {};
+nb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var ib = {};
-ib = { dismiss: "Απόρριψη" };
+var rb = {};
+rb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var ab = {};
-ab = { dismiss: "Dismiss" };
+var ib = {};
+ib = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var ob = {};
-ob = { dismiss: "Descartar" };
+var ab = {};
+ab = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var sb = {};
-sb = { dismiss: "Lõpeta" };
+var ob = {};
+ob = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var cb = {};
-cb = { dismiss: "Hylkää" };
+var sb = {};
+sb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var lb = {};
-lb = { dismiss: "Rejeter" };
+var cb = {};
+cb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var ub = {};
-ub = { dismiss: "התעלם" };
+var lb = {};
+lb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var db = {};
-db = { dismiss: "Odbaci" };
+var ub = {};
+ub = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var fb = {};
-fb = { dismiss: "Elutasítás" };
+var db = {};
+db = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var pb = {};
-pb = { dismiss: "Ignora" };
+var fb = {};
+fb = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var mb = {};
-mb = { dismiss: "閉じる" };
+var pb = {};
+pb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var hb = {};
-hb = { dismiss: "무시" };
+var mb = {};
+mb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var gb = {};
-gb = { dismiss: "Atmesti" };
+var hb = {};
+hb = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var _b = {};
-_b = { dismiss: "Nerādīt" };
+var gb = {};
+gb = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var vb = {};
-vb = { dismiss: "Lukk" };
+var _b = {};
+_b = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var yb = {};
-yb = { dismiss: "Negeren" };
+var vb = {};
+vb = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var bb = {};
-bb = { dismiss: "Zignoruj" };
+var yb = {};
+yb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var xb = {};
-xb = { dismiss: "Descartar" };
+var bb = {};
+bb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Sb = {};
-Sb = { dismiss: "Dispensar" };
+var xb = {};
+xb = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Cb = {};
-Cb = { dismiss: "Revocare" };
+var Sb = {};
+Sb = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var wb = {};
-wb = { dismiss: "Пропустить" };
+var Cb = {};
+Cb = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Tb = {};
-Tb = { dismiss: "Zrušiť" };
+var wb = {};
+wb = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Eb = {};
-Eb = { dismiss: "Opusti" };
+var Tb = {};
+Tb = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Db = {};
-Db = { dismiss: "Odbaci" };
+var Eb = {};
+Eb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Ob = {};
-Ob = { dismiss: "Avvisa" };
+var Db = {};
+Db = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var kb = {};
-kb = { dismiss: "Kapat" };
+var Ob = {};
+Ob = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Ab = {};
-Ab = { dismiss: "Скасувати" };
+var kb = {};
+kb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var jb = {};
-jb = { dismiss: "取消" };
+var Ab = {};
+Ab = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Mb = {};
-Mb = { dismiss: "關閉" };
+var jb = {};
+jb = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Nb = {};
-Nb = {
- "ar-AE": $y,
- "bg-BG": eb,
- "cs-CZ": tb,
- "da-DK": nb,
- "de-DE": rb,
- "el-GR": ib,
- "en-US": ab,
- "es-ES": ob,
- "et-EE": sb,
- "fi-FI": cb,
- "fr-FR": lb,
- "he-IL": ub,
- "hr-HR": db,
- "hu-HU": fb,
- "it-IT": pb,
- "ja-JP": mb,
- "ko-KR": hb,
- "lt-LT": gb,
- "lv-LV": _b,
- "nb-NO": vb,
- "nl-NL": yb,
- "pl-PL": bb,
- "pt-BR": xb,
- "pt-PT": Sb,
- "ro-RO": Cb,
- "ru-RU": wb,
- "sk-SK": Tb,
- "sl-SI": Eb,
- "sr-SP": Db,
- "sv-SE": Ob,
- "tr-TR": kb,
- "uk-UA": Ab,
- "zh-CN": jb,
- "zh-TW": Mb
+var Mb = {};
+Mb = {
+ "ar-AE": Qy,
+ "bg-BG": $y,
+ "cs-CZ": eb,
+ "da-DK": tb,
+ "de-DE": nb,
+ "el-GR": rb,
+ "en-US": ib,
+ "es-ES": ab,
+ "et-EE": ob,
+ "fi-FI": sb,
+ "fr-FR": cb,
+ "he-IL": lb,
+ "hr-HR": ub,
+ "hu-HU": db,
+ "it-IT": fb,
+ "ja-JP": pb,
+ "ko-KR": mb,
+ "lt-LT": hb,
+ "lv-LV": gb,
+ "nb-NO": _b,
+ "nl-NL": vb,
+ "pl-PL": yb,
+ "pt-BR": bb,
+ "pt-PT": xb,
+ "ro-RO": Sb,
+ "ru-RU": Cb,
+ "sk-SK": wb,
+ "sl-SI": Tb,
+ "sr-SP": Eb,
+ "sv-SE": Db,
+ "tr-TR": Ob,
+ "uk-UA": kb,
+ "zh-CN": Ab,
+ "zh-TW": jb
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Mte(e) {
+function Nte(e) {
return e && e.__esModule ? e.default : e;
}
-function Pb(e) {
- let { onDismiss: t, ...n } = e, r = fg(n, wg(Mte(Nb), "@react-aria/overlays").format("dismiss")), i = () => {
+function Nb(e) {
+ let { onDismiss: t, ...n } = e, r = fg(n, wg(Nte(Mb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
return /*#__PURE__*/ B.createElement(H_, null, /*#__PURE__*/ B.createElement("button", {
@@ -11701,22 +11701,22 @@ function Pb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Fb = [];
-function Ib(e, t) {
+var Pb = [];
+function Fb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, B.useRef)(void 0);
(0, B.useEffect)(() => {
- if (i && !Fb.includes(t)) return Fb.push(t), () => {
- let e = Fb.indexOf(t);
- e >= 0 && Fb.splice(e, 1);
+ if (i && !Pb.includes(t)) return Pb.push(t), () => {
+ let e = Pb.indexOf(t);
+ e >= 0 && Pb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Fb[Fb.length - 1] === t && n && n();
+ Pb[Pb.length - 1] === t && n && n();
}, u = (e) => {
- let n = Fb[Fb.length - 1];
+ let n = Pb[Pb.length - 1];
c.current = n, (!s || s(H(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(H(e))) && (Fb[Fb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(H(e))) && (Pb[Pb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = Mh({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -11724,7 +11724,7 @@ function Ib(e, t) {
}
return !1;
} } });
- vte({
+ yte({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
@@ -11745,20 +11745,20 @@ function Ib(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Lb = typeof document < "u" && window.visualViewport, Rb = 0, zb;
-function Bb(e = {}) {
+var Ib = typeof document < "u" && window.visualViewport, Lb = 0, Rb;
+function zb(e = {}) {
let { isDisabled: t } = e;
Hp(() => {
- if (!t) return Rb++, Rb === 1 && (zb = em() && nm() ? Pte() : Nte()), () => {
- Rb--, Rb === 0 && zb();
+ if (!t) return Lb++, Lb === 1 && (Rb = em() && nm() ? Fte() : Pte()), () => {
+ Lb--, Lb === 0 && Rb();
};
}, [t]);
}
-function Nte() {
+function Pte() {
let e = window.innerWidth - document.documentElement.clientWidth;
return ah(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Tp(document.documentElement, "scrollbar-gutter", "stable") : Tp(document.documentElement, "padding-right", `${e}px`)), Tp(document.documentElement, "overflow", "hidden"));
}
-function Pte() {
+function Fte() {
let e = Tp(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = H(e);
t = m_(r) ? r : h_(r, !0), n = !1;
@@ -11776,7 +11776,7 @@ function Pte() {
}
}, s = (e) => {
let t = H(e), n = e.relatedTarget;
- n && lg(n) ? (n.focus({ preventScroll: !0 }), Vb(n, lg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && lg(n) ? (n.focus({ preventScroll: !0 }), Bb(n, lg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -11786,7 +11786,7 @@ function Pte() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Vb(this, n);
+ }), (!e || !e.preventScroll) && Bb(this, n);
}
});
let l = ah(wp(document, "touchstart", r, {
@@ -11804,10 +11804,10 @@ function Pte() {
});
};
}
-function Vb(e, t) {
- t || !Lb ? Hb(e) : Lb.addEventListener("resize", () => Hb(e), { once: !0 });
+function Bb(e, t) {
+ t || !Ib ? Vb(e) : Ib.addEventListener("resize", () => Vb(e), { once: !0 });
}
-function Hb(e) {
+function Vb(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
let e = h_(n);
@@ -11815,7 +11815,7 @@ function Hb(e) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Lb && (n = Math.min(n, Lb.offsetTop + Lb.height));
+ Ib && (n = Math.min(n, Ib.offsetTop + Ib.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)),
@@ -11828,13 +11828,13 @@ function Hb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Fte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Ib({
+function Ite(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Fb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Bb({ isDisabled: !t.isOpen }), ry(), (0, B.useEffect)(() => {
+ return zb({ isDisabled: !t.isOpen }), ny(), (0, B.useEffect)(() => {
if (t.isOpen && n.current) return K_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: U(r),
@@ -11843,32 +11843,32 @@ function Fte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Ub = {
+var Hb = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Wb = {
+}, Ub = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Ite = {
+}, Lte = {
top: "left",
left: "top"
-}, Gb = {
+}, Wb = {
top: "height",
left: "width"
-}, Kb = {
+}, Gb = {
width: "totalWidth",
height: "totalHeight"
-}, qb = {}, Lte = () => typeof document < "u" ? window.visualViewport : null;
-function Jb(e, t) {
+}, Kb = {}, Rte = () => typeof document < "u" ? window.visualViewport : null;
+function qb(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} = ex(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = $b(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return nm() && (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,
@@ -11879,7 +11879,7 @@ function Jb(e, t) {
left: s
};
}
-function Rte(e) {
+function zte(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -11887,11 +11887,11 @@ function Rte(e) {
height: e.scrollHeight
};
}
-function Yb(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Gb[e]], l = o[e] + r.scroll[Ub[e]] + a, u = o[e] + r.scroll[Ub[e]] + c - a, d = t - s + r.scroll[Ub[e]] + o[e] - r[Ub[e]], f = t - s + n + r.scroll[Ub[e]] + o[e] - r[Ub[e]];
+function Jb(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Wb[e]], l = o[e] + r.scroll[Hb[e]] + a, u = o[e] + r.scroll[Hb[e]] + c - a, d = t - s + r.scroll[Hb[e]] + o[e] - r[Hb[e]], f = t - s + n + r.scroll[Hb[e]] + o[e] - r[Hb[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function zte(e) {
+function Bte(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -11900,55 +11900,55 @@ function zte(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Xb(e) {
- if (qb[e]) return qb[e];
- let [t, n] = e.split(" "), r = Ub[t] || "right", i = Ite[r];
- Ub[n] || (n = "center");
- let a = Gb[r], o = Gb[i];
- return qb[e] = {
+function Yb(e) {
+ if (Kb[e]) return Kb[e];
+ let [t, n] = e.split(" "), r = Hb[t] || "right", i = Lte[r];
+ Hb[n] || (n = "center");
+ let a = Wb[r], o = Wb[i];
+ return Kb[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, qb[e];
+ }, Kb[e];
}
-function Zb(e, t, n, r, i, a, o, s, c, l, u) {
+function Xb(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] = z_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Kb[h]];
- _[Wb[p]] = Math.floor(t - e[p] + i);
+ let t = s ? u[h] : u[Gb[h]];
+ _[Ub[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Bte(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Kb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Vte(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Gb.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 Qb(e, t, n, r, i, a, o, s) {
+function Zb(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[Wb[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[Wb[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ub[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[Ub[l]] - i);
}
-function Vte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Xb(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Zb(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Qb(s, l, t, i, a + u, v, c, g);
+function Hte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Yb(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Xb(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Zb(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Xb(`${Wb[S]} ${C}`), r = Zb(t, s, n, e, u, d, l, f, m, h, c);
- Qb(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Yb(`${Ub[S]} ${C}`), r = Xb(t, s, n, e, u, d, l, f, m, h, c);
+ Zb(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 = Yb(b, w[b], n[x], s, c, a, l);
+ let O = Jb(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Bte(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Zb(t, s, n, v, T, d, l, f, m, h, c), O = Yb(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Ub[b]], M = j + .5 * t[x], N = m / 2 + h, P = Ub[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = z_(z_(M, t[b] + m / 2 - (w[b] + i[Ub[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ub[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = Vte(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Xb(t, s, n, v, T, d, l, f, m, h, c), O = Jb(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Hb[b]], M = j + .5 * t[x], N = m / 2 + h, P = Hb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
+ A[b] = z_(z_(M, t[b] + m / 2 - (w[b] + i[Hb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Hb[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, I = {
x: S === "top" || S === "bottom" ? j : F,
y: S === "left" || S === "right" ? j : F
@@ -11962,17 +11962,17 @@ function Vte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: I
};
}
-function Hte(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 = Lte(), h = r instanceof HTMLElement ? Ute(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ex(n, !1, p) : tx(n, h, !1, p);
+function Ute(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 = Rte(), h = r instanceof HTMLElement ? Wte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? $b(n, !1, p) : ex(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 = ex(r, !0), x = zte(r);
+ let b = $b(r, !0), x = Bte(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Rte(i), C = Jb(s, m), w = Jb(h, m), T;
+ let S = zte(i), C = qb(s, m), w = qb(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = $b(h, !1);
+ let e = Qb(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -11984,11 +11984,11 @@ function Hte(e) {
left: 0,
width: 0,
height: 0
- } : tx(s, h, !1);
+ } : ex(s, h, !1);
let E = Op(s, h);
- return Vte(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return Hte(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function $b(e, t) {
+function Qb(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,
@@ -11997,8 +11997,8 @@ function $b(e, t) {
height: a
};
}
-function ex(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || $b(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function $b(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Qb(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -12006,29 +12006,29 @@ function ex(e, t, n) {
height: o
};
}
-function tx(e, t, n, r) {
+function ex(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || $b(e, n);
+ if (i.position === "fixed") a = r || Qb(e, n);
else {
- a = ex(e, n, r);
- let i = ex(t, n), o = window.getComputedStyle(t);
+ a = $b(e, n, r);
+ let i = $b(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 Ute(e) {
+function Wte(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !nx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !nx(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !tx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !tx(t);) t = t.parentElement;
return t || document.documentElement;
}
-function nx(e) {
+function tx(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 rx = typeof document < "u" ? window.visualViewport : null;
-function Wte(e) {
+var nx = typeof document < "u" ? window.visualViewport : null;
+function Gte(e) {
let { direction: t } = vg(), { 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, B.useState)(null), x = [
p,
s,
@@ -12046,12 +12046,12 @@ function Wte(e) {
g,
_,
n
- ], S = (0, B.useRef)(rx?.scale);
+ ], S = (0, B.useRef)(nx?.scale);
(0, B.useEffect)(() => {
- m && (S.current = rx?.scale);
+ m && (S.current = nx?.scale);
}, [m]);
let C = (0, B.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || rx?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || nx?.scale !== S.current) return;
let e = null;
if (o.current && jp(o.current)) {
let t = kp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -12062,8 +12062,8 @@ function Wte(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = Hte({
- placement: Kte(s, t),
+ let y = Ute({
+ placement: qte(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -12073,7 +12073,7 @@ function Wte(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? $b(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Qb(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -12086,10 +12086,10 @@ function Wte(e) {
}
b(y);
}, x);
- Hp(C, x), Gte(C), Qy({
+ Hp(C, x), Kte(C), Zy({
ref: i,
onResize: C
- }), Qy({
+ }), Zy({
ref: r,
onResize: C
});
@@ -12102,10 +12102,10 @@ function Wte(e) {
}, n = () => {
w.current && t();
};
- rx?.addEventListener("resize", t), rx?.addEventListener("scroll", n);
+ nx?.addEventListener("resize", t), nx?.addEventListener("scroll", n);
let r = wp(Ap(window), "scroll", n);
return () => {
- rx?.removeEventListener("resize", t), rx?.removeEventListener("scroll", n), r();
+ nx?.removeEventListener("resize", t), nx?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, B.useCallback)(() => {
@@ -12137,25 +12137,25 @@ function Wte(e) {
updatePosition: C
};
}
-function Gte(e) {
+function Kte(e) {
Hp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Kte(e, t) {
+function qte(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function qte(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 } = Ib({
+function Jte(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 } = Fb({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Wte({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Gte({
...c,
targetRef: n,
overlayRef: r,
@@ -12163,7 +12163,7 @@ function qte(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)
});
- Bb({ isDisabled: a || !t.isOpen }), (0, B.useEffect)(() => {
+ zb({ isDisabled: a || !t.isOpen }), (0, B.useEffect)(() => {
if (t.isOpen && r.current) return a ? nte(i?.current ?? r.current) : K_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
@@ -12182,10 +12182,10 @@ function qte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var ix = /* @__PURE__ */ new WeakMap();
+var rx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Jte(e, t, n) {
+function Yte(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: _ } = zg({
@@ -12208,7 +12208,7 @@ function Jte(e, t, n) {
}
}), { focusableProps: b } = Lh(U(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = U(g, b), S = Eg(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: D, validationBehavior: O } = ix.get(t);
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = rx.get(t);
x_(n, t.defaultSelectedValue, t.setSelectedValue), S_({ validationBehavior: O }, t, n);
let k = C_();
return {
@@ -12242,7 +12242,7 @@ function Jte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Yte(e, t) {
+function Xte(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = vg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = F_({
...e,
labelElementType: "span",
@@ -12271,7 +12271,7 @@ function Yte(e, t) {
},
allowRepeats: !0
}), x = dh(n);
- return ix.set(t, {
+ return rx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -12300,9 +12300,9 @@ function Yte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var ax = /* @__PURE__ */ new WeakMap();
-function Xte(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Zv({
+var ix = /* @__PURE__ */ new WeakMap();
+function Zte(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Xv({
usage: "search",
sensitivity: "base"
}), u = (0, B.useMemo)(() => r || new Q_(t.collection, t.disabledKeys, n, l), [
@@ -12311,7 +12311,7 @@ function Xte(e, t, n) {
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Lv({
+ ]), { menuTriggerProps: d, menuProps: f } = Iv({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = Mh({
@@ -12330,7 +12330,7 @@ function Xte(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = zv({
+ }), { typeSelectProps: m } = Rv({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
@@ -12344,7 +12344,7 @@ function Xte(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = Eg(e, { labelable: !0 }), C = U(m, d, y), w = dh();
- return ax.set(t, {
+ return ix.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -12405,8 +12405,8 @@ function Xte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Zte(e, t, n) {
- let r = ax.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = V_({ style: {
+function Qte(e, t, n) {
+ let r = ix.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = V_({ style: {
position: "fixed",
top: 0,
left: 0
@@ -12441,8 +12441,8 @@ function Zte(e, t, n) {
}
};
}
-function Qte(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, B.useRef)(null), c = (0, B.useRef)(null), { containerProps: l, selectProps: u } = Zte({
+function $te(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, B.useRef)(null), c = (0, B.useRef)(null), { containerProps: l, selectProps: u } = Qte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -12466,7 +12466,7 @@ function Qte(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = ax.get(t) || {};
+ let { validationBehavior: e } = ix.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -12497,7 +12497,7 @@ function Qte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function $te(e) {
+function ene(e) {
let t = Eg(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
@@ -12507,7 +12507,7 @@ function $te(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ene(e, t, n) {
+function tne(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = M_(e, t, n);
return {
labelProps: r,
@@ -12522,10 +12522,10 @@ function ene(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var ox = class {
+var ax = 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 tne(e.layout) : new Z_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new nne(e.layout) : new Z_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -12561,7 +12561,7 @@ var ox = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of Hv(n, this.collection)) {
+ for (let e of Vv(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -12595,13 +12595,13 @@ var ox = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Hv(t, this.collection);
- return (this.direction === "rtl" ? Gv(e)?.key : Uv(e)?.key) ?? null;
+ let e = Vv(t, this.collection);
+ return (this.direction === "rtl" ? Wv(e)?.key : Hv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Hv(n, this.collection), i = (this.direction === "rtl" ? Wv(r, t.index - 1) : Wv(r, t.index + 1)) ?? null;
+ let r = Vv(n, this.collection), i = (this.direction === "rtl" ? Uv(r, t.index - 1) : Uv(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;
@@ -12610,13 +12610,13 @@ var ox = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Hv(t, this.collection);
- return (this.direction === "rtl" ? Uv(e)?.key : Gv(e)?.key) ?? null;
+ let e = Vv(t, this.collection);
+ return (this.direction === "rtl" ? Hv(e)?.key : Wv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Hv(n, this.collection), i = (this.direction === "rtl" ? Wv(r, t.index + 1) : Wv(r, t.index - 1)) ?? null;
+ let r = Vv(n, this.collection), i = (this.direction === "rtl" ? Uv(r, t.index + 1) : Uv(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;
@@ -12627,13 +12627,13 @@ var ox = 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 ? Uv(Hv(e, this.collection))?.key ?? null : null;
+ return e ? Hv(Vv(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 = Uv(Hv(e, this.collection))?.key ?? null;
+ n = Hv(Vv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -12643,13 +12643,13 @@ var ox = 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 ? Gv(Hv(e, this.collection))?.key ?? null : null;
+ return e ? Wv(Vv(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 = Gv(Hv(e, this.collection))?.key ?? null;
+ n = Wv(Vv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -12685,13 +12685,13 @@ var ox = 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" ? Uv(Hv(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? Hv(Vv(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, tne = class {
+}, nne = class {
constructor(e) {
this.layout = e;
}
@@ -12704,16 +12704,16 @@ var ox = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, sx = /* @__PURE__ */ new WeakMap();
+}, ox = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function nne(e, t, n) {
+function rne(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 = Zv({
+ let h = Xv({
usage: "search",
sensitivity: "base"
- }), { direction: g } = vg(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new ox({
+ }), { direction: g } = vg(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new ax({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -12730,7 +12730,7 @@ function nne(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = Vv({
+ ]), { collectionProps: y } = Bv({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -12739,7 +12739,7 @@ function nne(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = dh(e.id);
- sx.set(t, {
+ ox.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -12748,7 +12748,7 @@ function nne(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = Ste({
+ let x = Cte({
selectionManager: m,
hasItemActions: !!(l || u)
}), S = Eg(e, { labelable: !0 }), C = (0, B.useCallback)((e) => {
@@ -12760,36 +12760,36 @@ function nne(e, t, n) {
}, [m]), w = (0, B.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = Ky(n, { isDisabled: t.collection.size !== 0 }), E = U(S, {
+ }), [C, y.onBlur]), T = Gy(n, { isDisabled: t.collection.size !== 0 }), E = U(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), bte({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), xte({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var cx = /* @__PURE__ */ new WeakMap();
-function lx(e) {
+var sx = /* @__PURE__ */ new WeakMap();
+function cx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function rne(e, t) {
- let n = cx.get(e);
+function ine(e, t) {
+ let n = sx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${lx(t)}`;
+ return `${n}-${cx(t)}`;
}
-function ux(e, t, n) {
- let r = cx.get(e);
+function lx(e, t, n) {
+ let r = sx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${lx(t)}-${lx(n)}`;
+ return `${r}-${cx(t)}-${cx(n)}`;
}
-function dx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => ux(e, t, n)).join(" ");
+function ux(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => lx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var fx = {};
-fx = {
+var dx = {};
+dx = {
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: "طي",
@@ -12804,8 +12804,8 @@ fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var px = {};
-px = {
+var fx = {};
+fx = {
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: "Свиване",
@@ -12820,8 +12820,8 @@ px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var mx = {};
-mx = {
+var px = {};
+px = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -12836,8 +12836,8 @@ mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var hx = {};
-hx = {
+var mx = {};
+mx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -12852,8 +12852,8 @@ hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var gx = {};
-gx = {
+var hx = {};
+hx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -12868,8 +12868,8 @@ gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var _x = {};
-_x = {
+var gx = {};
+gx = {
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: "Σύμπτυξη",
@@ -12884,8 +12884,8 @@ _x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var vx = {};
-vx = {
+var _x = {};
+_x = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -12900,8 +12900,8 @@ vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var yx = {};
-yx = {
+var vx = {};
+vx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -12916,8 +12916,8 @@ yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var bx = {};
-bx = {
+var yx = {};
+yx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -12932,8 +12932,8 @@ bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var xx = {};
-xx = {
+var bx = {};
+bx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -12948,8 +12948,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Sx = {};
-Sx = {
+var xx = {};
+xx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -12964,8 +12964,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Cx = {};
-Cx = {
+var Sx = {};
+Sx = {
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: "כווץ",
@@ -12980,8 +12980,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var wx = {};
-wx = {
+var Cx = {};
+Cx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -12996,8 +12996,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Tx = {};
-Tx = {
+var wx = {};
+wx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -13012,8 +13012,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Ex = {};
-Ex = {
+var Tx = {};
+Tx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -13028,8 +13028,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Dx = {};
-Dx = {
+var Ex = {};
+Ex = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -13044,8 +13044,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Ox = {};
-Ox = {
+var Dx = {};
+Dx = {
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: "접기",
@@ -13060,8 +13060,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var kx = {};
-kx = {
+var Ox = {};
+Ox = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -13076,8 +13076,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Ax = {};
-Ax = {
+var kx = {};
+kx = {
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",
@@ -13092,8 +13092,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var jx = {};
-jx = {
+var Ax = {};
+Ax = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -13108,8 +13108,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Mx = {};
-Mx = {
+var jx = {};
+jx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -13124,8 +13124,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Nx = {};
-Nx = {
+var Mx = {};
+Mx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -13140,8 +13140,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Px = {};
-Px = {
+var Nx = {};
+Nx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -13156,8 +13156,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Fx = {};
-Fx = {
+var Px = {};
+Px = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -13172,8 +13172,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Ix = {};
-Ix = {
+var Fx = {};
+Fx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -13188,8 +13188,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Lx = {};
-Lx = {
+var Ix = {};
+Ix = {
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: "Свернуть",
@@ -13204,8 +13204,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Rx = {};
-Rx = {
+var Lx = {};
+Lx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -13220,8 +13220,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var zx = {};
-zx = {
+var Rx = {};
+Rx = {
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",
@@ -13236,8 +13236,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Bx = {};
-Bx = {
+var zx = {};
+zx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -13252,8 +13252,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Vx = {};
-Vx = {
+var Bx = {};
+Bx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -13268,8 +13268,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Hx = {};
-Hx = {
+var Vx = {};
+Vx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -13284,8 +13284,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Ux = {};
-Ux = {
+var Hx = {};
+Hx = {
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: "Згорнути",
@@ -13300,8 +13300,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Wx = {};
-Wx = {
+var Ux = {};
+Ux = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -13316,8 +13316,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Gx = {};
-Gx = {
+var Wx = {};
+Wx = {
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: "收合",
@@ -13332,46 +13332,46 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Kx = {};
-Kx = {
- "ar-AE": fx,
- "bg-BG": px,
- "cs-CZ": mx,
- "da-DK": hx,
- "de-DE": gx,
- "el-GR": _x,
- "en-US": vx,
- "es-ES": yx,
- "et-EE": bx,
- "fi-FI": xx,
- "fr-FR": Sx,
- "he-IL": Cx,
- "hr-HR": wx,
- "hu-HU": Tx,
- "it-IT": Ex,
- "ja-JP": Dx,
- "ko-KR": Ox,
- "lt-LT": kx,
- "lv-LV": Ax,
- "nb-NO": jx,
- "nl-NL": Mx,
- "pl-PL": Nx,
- "pt-BR": Px,
- "pt-PT": Fx,
- "ro-RO": Ix,
- "ru-RU": Lx,
- "sk-SK": Rx,
- "sl-SI": zx,
- "sr-SP": Bx,
- "sv-SE": Vx,
- "tr-TR": Hx,
- "uk-UA": Ux,
- "zh-CN": Wx,
- "zh-TW": Gx
+var Gx = {};
+Gx = {
+ "ar-AE": dx,
+ "bg-BG": fx,
+ "cs-CZ": px,
+ "da-DK": mx,
+ "de-DE": hx,
+ "el-GR": gx,
+ "en-US": _x,
+ "es-ES": vx,
+ "et-EE": yx,
+ "fi-FI": bx,
+ "fr-FR": xx,
+ "he-IL": Sx,
+ "hr-HR": Cx,
+ "hu-HU": wx,
+ "it-IT": Tx,
+ "ja-JP": Ex,
+ "ko-KR": Dx,
+ "lt-LT": Ox,
+ "lv-LV": kx,
+ "nb-NO": Ax,
+ "nl-NL": jx,
+ "pl-PL": Mx,
+ "pt-BR": Nx,
+ "pt-PT": Px,
+ "ro-RO": Fx,
+ "ru-RU": Ix,
+ "sk-SK": Lx,
+ "sl-SI": Rx,
+ "sr-SP": zx,
+ "sv-SE": Bx,
+ "tr-TR": Vx,
+ "uk-UA": Hx,
+ "zh-CN": Ux,
+ "zh-TW": Wx
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var ine = class extends ox {
+var ane = class extends ax {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -13379,7 +13379,7 @@ var ine = class extends ox {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = Uv(Hv(n, this.collection));
+ let e = Hv(Vv(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);
@@ -13400,13 +13400,13 @@ var ine = class extends ox {
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 Hv(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of Vv(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 = [...Hv(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...Vv(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -13435,7 +13435,7 @@ var ine = class extends ox {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of Hv(o, this.collection)) {
+ for (let r of Vv(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);
@@ -13449,14 +13449,14 @@ var ine = class extends ox {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function ane(e) {
+function one(e) {
return e && e.__esModule ? e.default : e;
}
-function one(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Zv({
+function sne(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Xv({
usage: "search",
sensitivity: "base"
- }), { direction: c } = vg(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new ine({
+ }), { direction: c } = vg(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new ane({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -13476,14 +13476,14 @@ function one(e, t, n) {
a,
o
]), d = dh(e.id);
- cx.set(t, d);
- let { gridProps: f } = nne({
+ sx.set(t, d);
+ let { gridProps: f } = rne({
...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 = wg(ane(Kx), "@react-aria/table"), g = (0, B.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = wg(one(Gx), "@react-aria/table"), g = (0, B.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -13497,13 +13497,13 @@ function one(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function qx(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = vg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = sx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {
+function Kx(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = vg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = ox.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {
if (n.current) {
let e = s_(n.current);
if (p === "child") {
if (jp(n.current) && n.current !== kp(vp(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? Jx(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? qx(e) : e.firstChild();
if (r) {
ih(r);
return;
@@ -13511,7 +13511,7 @@ function qx(e, t, n) {
}
(m.current != null && r.key !== m.current || !jp(n.current)) && ih(n.current);
}
- }, { itemProps: g, isPressed: _ } = Jy({
+ }, { itemProps: g, isPressed: _ } = qy({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -13535,7 +13535,7 @@ function qx(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : Jx(a), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
+ p === "cell" && l === "rtl" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : qx(a), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
}
break;
}
@@ -13547,7 +13547,7 @@ function qx(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? Jx(a) : a.firstChild(), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
+ p === "cell" && l === "ltr" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? qx(a) : a.firstChild(), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
}
break;
}
@@ -13592,7 +13592,7 @@ function qx(e, t, n) {
isPressed: _
};
}
-function Jx(e) {
+function qx(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -13601,20 +13601,20 @@ function Jx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function sne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = qx(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = ux(t, e.node.parentKey, a)), {
+function cne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = Kx(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = lx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function cne(e) {
+function lne(e) {
return e && e.__esModule ? e.default : e;
}
-function lne(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = qx({
+function une(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Kx({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = zg({
@@ -13625,7 +13625,7 @@ function lne(e, t, n) {
ref: n
}), { focusableProps: l } = Lh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !im() && (u = d ? f : "none");
- let p = wg(cne(Kx), "@react-aria/table"), m;
+ let p = wg(lne(Gx), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && im() && (m = `${m}, ${p.format(f)}`));
let h = b_(m), g = t.collection.size === 0;
return (0, B.useEffect)(() => {
@@ -13638,7 +13638,7 @@ function lne(e, t, n) {
columnHeaderProps: {
...U(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: rne(t, r.key),
+ id: ine(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -13647,14 +13647,14 @@ function lne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function une(e, t, n) {
+function dne(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function dne(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = sx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Jy({
+function fne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = ox.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = qy({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -13675,10 +13675,10 @@ function dne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function fne(e) {
+function pne(e) {
return e && e.__esModule ? e.default : e;
}
-var Yx = {
+var Jx = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -13688,21 +13688,21 @@ var Yx = {
rtl: "ArrowRight"
}
};
-function pne(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = dne(e, t, n), { direction: s } = vg();
+function mne(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = fne(e, t, n), { direction: s } = vg();
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 = wg(fne(Kx), "@react-aria/table"), u = fg({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = wg(pne(Gx), "@react-aria/table"), u = fg({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": dx(t, r.key)
+ "aria-labelledby": ux(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = Xx(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 = Xx(t.collection, a);
+ let n = Yx(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 = Yx(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === Yx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Yx.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 === Jx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Jx.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,
@@ -13724,41 +13724,41 @@ function pne(e, t, n) {
return {
rowProps: {
...U(a, d, m),
- "aria-labelledby": dx(t, r.key)
+ "aria-labelledby": ux(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function Xx(e, t) {
+function Yx(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function mne() {
+function hne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function Zx() {
- return mne();
+function Xx() {
+ return hne();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function hne(e) {
+function gne(e) {
return e && e.__esModule ? e.default : e;
}
-function gne(e, t) {
- let { key: n } = e, { checkboxProps: r } = wte(e, t);
+function _ne(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Tte(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${dx(t, n)}`
+ "aria-labelledby": `${r.id} ${ux(t, n)}`
} };
}
-function _ne(e) {
+function vne(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": wg(hne(Kx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": wg(gne(Gx), "@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,
@@ -13767,21 +13767,21 @@ function _ne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var Qx = /* @__PURE__ */ new WeakMap();
-function $x(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Qx.get(e)}-${n}-${t}`) : "";
+var Zx = /* @__PURE__ */ new WeakMap();
+function Qx(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Zx.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function vne(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 } = Jy({
+function yne(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 } = qy({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = $x(t, r, "tab"), m = $x(t, r, "tabpanel"), { tabIndex: h } = d, g = Eg(u?.props, { labelable: !0 });
+ }), p = Qx(t, r, "tab"), m = Qx(t, r, "tabpanel"), { tabIndex: h } = d, g = Eg(u?.props, { labelable: !0 });
delete g.id;
let _ = hm(u?.props), { focusableProps: v } = Lh({
...u?.props,
@@ -13803,7 +13803,7 @@ function vne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var yne = class {
+var bne = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -13847,11 +13847,11 @@ var yne = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function bne(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = vg(), { collectionProps: l } = Vv({
+function xne(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = vg(), { collectionProps: l } = Bv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, B.useMemo)(() => new yne(a, c, r, s), [
+ keyboardDelegate: (0, B.useMemo)(() => new bne(a, c, r, s), [
a,
s,
r,
@@ -13862,7 +13862,7 @@ function bne(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = dh();
- return Qx.set(t, u), { tabListProps: {
+ return Zx.set(t, u), { tabListProps: {
...U(l, fg({
...e,
id: u
@@ -13874,12 +13874,12 @@ function bne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function xne(e, t, n) {
- let r = Ky(n) ? void 0 : 0, i = $x(t, e.id ?? t?.selectedKey, "tabpanel");
+function Sne(e, t, n) {
+ let r = Gy(n) ? void 0 : 0, i = Qx(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: U(fg({
...e,
id: i,
- "aria-labelledby": $x(t, t?.selectedKey, "tab")
+ "aria-labelledby": Qx(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -13889,12 +13889,12 @@ function xne(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var eS = "(prefers-reduced-motion: reduce)", Sne = () => matchMedia(eS).matches, Cne = (e) => {
- let t = matchMedia(eS);
+var $x = "(prefers-reduced-motion: reduce)", Cne = () => matchMedia($x).matches, wne = (e) => {
+ let t = matchMedia($x);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function wne({ children: e, count: t, label: n }) {
- let r = Ru(), i = (0, B.useSyncExternalStore)(Cne, Sne, () => !1), { isFocusVisible: a } = Zm(), o = i || a, s = {
+function Tne({ children: e, count: t, label: n }) {
+ let r = Ru(), i = (0, B.useSyncExternalStore)(wne, Cne, () => !1), { isFocusVisible: a } = Zm(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -13930,18 +13930,18 @@ function wne({ children: e, count: t, label: n }) {
}), e]
});
}
-function tS({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, V.jsx)(Hu, { children: e ? /* @__PURE__ */ (0, V.jsx)(wne, { ...t }, "selection") : null });
+function eS({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, V.jsx)(Hu, { children: e ? /* @__PURE__ */ (0, V.jsx)(Tne, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var nS = {
+var tS = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Tne(e, t = !1) {
+function Ene(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -13957,7 +13957,7 @@ function Tne(e, t = !1) {
glyph: "trash",
danger: !0
},
- nS
+ tS
];
case "junk": return [
t ? {
@@ -13978,7 +13978,7 @@ function Tne(e, t = !1) {
glyph: "trash",
danger: !0
},
- nS
+ tS
];
case "follow": return [
{
@@ -13999,7 +13999,7 @@ function Tne(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- nS
+ tS
];
default: return [
{
@@ -14033,48 +14033,48 @@ function Tne(e, t = !1) {
glyph: "trash",
danger: !0
},
- nS
+ tS
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var rS = null, iS = {
+var nS = null, rS = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, aS = /* @__PURE__ */ new Set();
-function Ene(e) {
- return aS.add(e), () => {
- aS.delete(e);
+}, iS = /* @__PURE__ */ new Set();
+function Dne(e) {
+ return iS.add(e), () => {
+ iS.delete(e);
};
}
-function Dne() {
- for (let e of [...aS]) e();
+function One() {
+ for (let e of [...iS]) e();
}
-var One = { render(e) {
- iS = e, (0, $f.flushSync)(Dne);
+var kne = { render(e) {
+ rS = e, (0, $f.flushSync)(One);
} };
-function kne(e) {
- return rS = e, One;
+function Ane(e) {
+ return nS = e, kne;
}
-function Ane() {
- let e = (0, B.useSyncExternalStore)(Ene, () => iS);
- return rS ? /* @__PURE__ */ (0, V.jsx)(jne, {
- host: rS,
+function jne() {
+ let e = (0, B.useSyncExternalStore)(Dne, () => rS);
+ return nS ? /* @__PURE__ */ (0, V.jsx)(Mne, {
+ host: nS,
props: e
}) : null;
}
-function jne({ host: e, props: t }) {
+function Mne({ host: e, props: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, V.jsx)(tS, {
+ children: /* @__PURE__ */ (0, V.jsx)(eS, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: Tne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: Ene(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -14091,7 +14091,7 @@ function jne({ host: e, props: t }) {
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function oS({ store: e, label: t, hidden: n }) {
+function aS({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-glow-grid": "",
@@ -14117,14 +14117,14 @@ function oS({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-var sS = null;
-function Mne(e) {
- sS = e;
+var oS = null;
+function Nne(e) {
+ oS = e;
}
-function Nne() {
- return sS ? /* @__PURE__ */ (0, V.jsx)(Pne, { host: sS }) : null;
+function Pne() {
+ return oS ? /* @__PURE__ */ (0, V.jsx)(Fne, { host: oS }) : null;
}
-function Pne({ host: t }) {
+function Fne({ host: t }) {
let { store: n } = t;
(0, B.useSyncExternalStore)(n.subscribe, n.version);
let { homeGlow: r, accent: i } = n.value;
@@ -14140,7 +14140,7 @@ function Pne({ host: t }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(oS, {
+ /* @__PURE__ */ (0, V.jsx)(aS, {
store: n,
label: "光晕",
hidden: !r.on
@@ -14180,18 +14180,18 @@ function Pne({ host: t }) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
-var cS = B.createContext(void 0), lS = (e) => {
- let t = B.useContext(cS);
+var sS = B.createContext(void 0), cS = (e) => {
+ let t = B.useContext(sS);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, uS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {
+}, lS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, V.jsx)(cS.Provider, {
+}), [e]), /* @__PURE__ */ (0, V.jsx)(sS.Provider, {
value: e,
children: t
-})), Fne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
- let i = lS(r), a = B.useRef(t);
+})), Ine = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
+ let i = cS(r), a = B.useRef(t);
B.useEffect(() => {
a.current = t;
});
@@ -14209,10 +14209,10 @@ var cS = B.createContext(void 0), lS = (e) => {
return B.useEffect(() => {
o && y(i, { queries: o }, a.current);
}, [i, o]), e;
-}, dS = B.createContext(!1), fS = () => B.useContext(dS), Ine = dS.Provider;
+}, uS = B.createContext(!1), dS = () => B.useContext(uS), Lne = uS.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function pS() {
+function fS() {
let e = !1;
return {
clearReset: () => {
@@ -14224,31 +14224,31 @@ function pS() {
isReset: () => e
};
}
-var mS = B.createContext(pS()), hS = () => B.useContext(mS), Lne = ({ children: e }) => {
- let [t] = B.useState(() => pS());
- return /* @__PURE__ */ (0, V.jsx)(mS.Provider, {
+var pS = B.createContext(fS()), mS = () => B.useContext(pS), Rne = ({ children: e }) => {
+ let [t] = B.useState(() => fS());
+ return /* @__PURE__ */ (0, V.jsx)(pS.Provider, {
value: t,
children: typeof e == "function" ? e(t) : e
});
-}, gS = (e, t, n) => {
+}, hS = (e, t, n) => {
let r = n?.state.error && typeof e.throwOnError == "function" ? C(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, _S = (e) => {
+}, gS = (e) => {
B.useEffect(() => {
e.clearReset();
}, [e]);
-}, vS = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), yS = (e, t) => t.state.data === void 0, bS = (e) => {
+}, _S = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), vS = (e, t) => t.state.data === void 0, yS = (e) => {
if (e.suspense) {
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
}
-}, xS = (e, t) => e?.suspense && t.isPending, SS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, bS = (e, t) => e?.suspense && t.isPending, xS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQueries.js
-function CS({ queries: e, ...t }, n) {
- let r = lS(n), i = fS(), a = hS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {
+function SS({ queries: e, ...t }, n) {
+ let r = cS(n), i = dS(), a = mS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {
let t = r.defaultQueryOptions(e);
return t._optimisticResults = i ? "isRestoring" : o ? "optimistic" : void 0, t;
}), [
@@ -14258,10 +14258,10 @@ function CS({ queries: e, ...t }, n) {
o
]);
s.forEach((e) => {
- bS(e);
+ yS(e);
let t = r.getQueryCache().get(e.queryHash);
- gS(e, a, t);
- }), _S(a);
+ hS(e, a, t);
+ }), gS(a);
let [c] = B.useState(() => new _(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;
B.useSyncExternalStore(B.useCallback((e) => f ? c.subscribe(x.batchCalls(e)) : b, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), B.useEffect(() => {
c.setQueries(s, t);
@@ -14270,14 +14270,14 @@ function CS({ queries: e, ...t }, n) {
t,
c
]);
- let p = l.some((e, t) => xS(s[t], e)) ? l.flatMap((e, t) => {
+ let p = l.some((e, t) => bS(s[t], e)) ? l.flatMap((e, t) => {
let n = s[t];
- return n && xS(n, e) ? SS(n, new v(r, n), a) : [];
+ return n && bS(n, e) ? xS(n, new v(r, n), a) : [];
}) : [];
if (p.length > 0) throw Promise.all(p);
let m = l.find((e, t) => {
let n = s[t];
- return n && vS({
+ return n && _S({
result: e,
errorResetBoundary: a,
throwOnError: n.throwOnError,
@@ -14290,17 +14290,17 @@ function CS({ queries: e, ...t }, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function wS(e, t, n) {
- let r = fS(), i = hS(), a = lS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, bS(o), gS(o, i, s), _S(i);
+function CS(e, t, n) {
+ let r = dS(), i = mS(), a = cS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, yS(o), hS(o, i, s), gS(i);
let [l] = B.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
if (B.useSyncExternalStore(B.useCallback((e) => {
let t = d ? l.subscribe(x.batchCalls(e)) : b;
return l.updateResult(), t;
}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), B.useEffect(() => {
l.setOptions(o);
- }, [o, l]), xS(o, u)) throw SS(o, l, i);
- if (vS({
+ }, [o, l]), bS(o, u)) throw xS(o, l, i);
+ if (_S({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -14311,40 +14311,40 @@ function wS(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function TS(e, t) {
- return wS(e, v, t);
+function wS(e, t) {
+ return CS(e, v, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
-function Rne(e, t) {
- return wS({
+function zne(e, t) {
+ return CS({
...e,
enabled: !0,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
placeholderData: void 0
}, v, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js
-function zne(e, t) {
- return wS({
+function Bne(e, t) {
+ return CS({
...e,
enabled: !0,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
placeholderData: void 0
}, h, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js
-function Bne(e, t) {
- return CS({
+function Vne(e, t) {
+ return SS({
...e,
queries: e.queries.map((e) => ({
...e,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
enabled: !0,
placeholderData: void 0
}))
@@ -14352,57 +14352,57 @@ function Bne(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js
-function Vne(e, t) {
- let n = lS(t);
+function Hne(e, t) {
+ let n = cS(t);
n.getQueryState(e.queryKey) || n.query(e).catch(b);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js
-function Hne(e, t) {
- let n = lS(t);
+function Une(e, t) {
+ let n = cS(t);
n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(b);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js
-function Une(e) {
+function Wne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js
-function Wne(e) {
+function Gne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js
-function Gne(e, t) {
- let n = lS(t), r = n.getQueryCache();
+function Kne(e, t) {
+ let n = cS(t), r = n.getQueryCache();
return B.useSyncExternalStore(B.useCallback((e) => r.subscribe(x.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js
-function Kne(e, t) {
- let n = lS(t);
- return DS({ filters: {
+function qne(e, t) {
+ let n = cS(t);
+ return ES({ filters: {
...e,
status: "pending"
} }, n).length;
}
-function ES(e, t) {
+function TS(e, t) {
return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);
}
-function DS(e = {}, t) {
- let n = lS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);
- return i.current === null && (i.current = ES(n, e)), B.useEffect(() => {
+function ES(e = {}, t) {
+ let n = cS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);
+ return i.current === null && (i.current = TS(n, e)), B.useEffect(() => {
r.current = e;
}), B.useSyncExternalStore(B.useCallback((e) => n.subscribe(() => {
- let t = S(i.current, ES(n, r.current));
+ let t = S(i.current, TS(n, r.current));
i.current !== t && (i.current = t, x.schedule(e));
}), [n]), () => i.current, () => i.current);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function OS(e, t) {
- let n = lS(t), [r] = B.useState(() => new g(n, e));
+function DS(e, t) {
+ let n = cS(t), [r] = B.useState(() => new g(n, e));
B.useEffect(() => {
r.setOptions(e);
}, [r, e]);
@@ -14418,53 +14418,53 @@ function OS(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js
-function qne(e) {
+function Jne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function kS(e, t) {
- return wS(e, h, t);
+function OS(e, t) {
+ return CS(e, h, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/index.js
-var AS = /* @__PURE__ */ St({
- HydrationBoundary: () => Fne,
- IsRestoringProvider: () => Ine,
- QueryClientContext: () => cS,
- QueryClientProvider: () => uS,
- QueryErrorResetBoundary: () => Lne,
- infiniteQueryOptions: () => Wne,
- mutationOptions: () => qne,
- queryOptions: () => Une,
- useInfiniteQuery: () => kS,
- useIsFetching: () => Gne,
- useIsMutating: () => Kne,
- useIsRestoring: () => fS,
- useMutation: () => OS,
- useMutationState: () => DS,
- usePrefetchInfiniteQuery: () => Hne,
- usePrefetchQuery: () => Vne,
- useQueries: () => CS,
- useQuery: () => TS,
- useQueryClient: () => lS,
- useQueryErrorResetBoundary: () => hS,
- useSuspenseInfiniteQuery: () => zne,
- useSuspenseQueries: () => Bne,
- useSuspenseQuery: () => Rne
+var kS = /* @__PURE__ */ St({
+ HydrationBoundary: () => Ine,
+ IsRestoringProvider: () => Lne,
+ QueryClientContext: () => sS,
+ QueryClientProvider: () => lS,
+ QueryErrorResetBoundary: () => Rne,
+ infiniteQueryOptions: () => Gne,
+ mutationOptions: () => Jne,
+ queryOptions: () => Wne,
+ useInfiniteQuery: () => OS,
+ useIsFetching: () => Kne,
+ useIsMutating: () => qne,
+ useIsRestoring: () => dS,
+ useMutation: () => DS,
+ useMutationState: () => ES,
+ usePrefetchInfiniteQuery: () => Une,
+ usePrefetchQuery: () => Hne,
+ useQueries: () => SS,
+ useQuery: () => wS,
+ useQueryClient: () => cS,
+ useQueryErrorResetBoundary: () => mS,
+ useSuspenseInfiniteQuery: () => Bne,
+ useSuspenseQueries: () => Vne,
+ useSuspenseQuery: () => zne
});
-import * as Jne from "/dist/peach-ui.js";
-wt(AS, Jne);
+import * as Yne from "/dist/peach-ui.js";
+wt(kS, Yne);
/* istanbul ignore file */
//#endregion
//#region src/api.ts
-var jS = class extends Error {
+var AS = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(ye(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, MS = (e) => {
+}, jS = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -14486,7 +14486,7 @@ async function G(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new jS(MS(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new AS(jS(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function K(e, t, n = "POST", r) {
@@ -14503,37 +14503,37 @@ async function K(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new jS(MS(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new AS(jS(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/player/host.ts
-var NS = null;
-function Yne(e) {
- NS = e;
+var MS = null;
+function Xne(e) {
+ MS = e;
}
-function PS() {
- if (!NS) throw Error("播放器还没有接上宿主(configurePlayer)");
- return NS;
+function NS() {
+ if (!MS) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return MS;
}
//#endregion
//#region src/player/menu.ts
-var FS = null;
-function Xne(e) {
- FS = e;
+var PS = null;
+function Zne(e) {
+ PS = e;
}
-function Zne() {
+function Qne() {
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 IS = null, LS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function RS() {
+var FS = null, IS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function LS() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && De(e, () => {
e.innerHTML = "";
- }), IS &&= (IS(), null);
+ }), FS &&= (FS(), null);
}
-async function Qne(e) {
+async function $ne(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -14546,12 +14546,12 @@ async function Qne(e) {
return t.remove(), n;
}
}
-function $ne(e) {
- let t = !!FS?.inMiniplayer(e), n = e.peachItem, r = FS?.kind(e) ?? "item", i = (t) => {
+function ere(e) {
+ let t = !!PS?.inMiniplayer(e), n = e.peachItem, r = PS?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Qne(i(e)).then((e) => PS().toast(e ? t : "复制失败,请手动复制地址栏", {
+ $ne(i(e)).then((e) => NS().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -14563,11 +14563,11 @@ function $ne(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => FS?.expand()
+ run: () => PS?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => FS?.toMiniplayer()
+ run: () => PS?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -14590,29 +14590,29 @@ function $ne(e) {
run: () => s.click()
}), o;
}
-function ere(e, t, n) {
- let r = Zne();
- RS();
- let i = PS().stage();
+function tre(e, t, n) {
+ let r = Qne();
+ LS();
+ let i = NS().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = $ne(e);
+ let a = ere(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}">${LS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? LS(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${IS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? IS(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), ze(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)];
- RS(), n?.run();
+ LS(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || RS();
+ r.contains(e.target) || LS();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), RS();
+ e.preventDefault(), e.stopPropagation(), LS();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -14620,51 +14620,51 @@ function ere(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- Ve(t, e.el()) && RS();
+ Ve(t, e.el()) && LS();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), IS = () => {
+ }, 0), FS = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function tre(e) {
+function nre(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), ere(e, t.clientX, t.clientY));
- }), e.on("dispose", RS);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), tre(e, t.clientX, t.clientY));
+ }), e.on("dispose", LS);
}
//#endregion
//#region src/player/registry.ts
-var zS = null, BS = () => zS;
-function VS(e) {
- zS = e;
+var RS = null, zS = () => RS;
+function BS(e) {
+ RS = e;
}
-function HS(e) {
+function VS(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function US(e) {
+function HS(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;
}
-function nre(e) {
+function rre(e) {
let t = e.currentTime || 0;
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 WS = 3e3;
-function GS(e, t) {
+var US = 3e3;
+function WS(e, t) {
let n = Number(e) || 0, r = ve(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function rre(e) {
+function ire(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -14679,10 +14679,10 @@ function rre(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = nre(e), s = e.currentTime || 0;
+ let a = performance.now(), o = rre(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 > WS * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > US * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -14691,56 +14691,56 @@ function rre(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > WS;) t.shift();
+ }); t.length > 2 && a - t[0].at > US;) 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 KS = 24;
-function qS(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > KS && e.splice(0, e.length - KS);
+var GS = 24;
+function KS(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > GS && e.splice(0, e.length - GS);
}
-var JS = "peach-player-panel";
-function YS(e, t, n, r) {
- let i = [...Array(Math.max(0, KS - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var qS = "peach-player-panel";
+function JS(e, t, n, r) {
+ let i = [...Array(Math.max(0, GS - 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>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${L(r)}">${o}</span>`;
}
-function ire() {
+function are() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function XS(e, t = "") {
+function YS(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 ZS(e, t = "") {
- let n = XS(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 XS(e, t = "") {
+ let n = YS(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 QS(e, t, n = "", r = null) {
+function ZS(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : ZS(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : XS(t, n);
}
-function $S(e) {
+function QS(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 are(e, t) {
- return e > 0 ? $S(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : $S(0);
+function ore(e, t) {
+ return e > 0 ? QS(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : QS(0);
}
//#endregion
//#region src/player/controls.ts
-function eC(e, t, n = "") {
+function $S(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));
@@ -14751,24 +14751,24 @@ function eC(e, t, n = "") {
};
return o(), o;
}
-function ore(e, t = !0) {
- let n = PS(), r = n.settings();
+function sre(e, t = !0) {
+ let n = NS(), 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 tC = /* @__PURE__ */ new WeakMap();
-function nC(e) {
+var eC = /* @__PURE__ */ new WeakMap();
+function tC(e) {
if (!e) return;
- let t = PS().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), tC.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = NS().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), eC.get(e)?.(t ? "默认视图" : "影院模式");
}
-function rC(e, t = !0) {
- let n = PS(), r = n.settings();
+function nC(e, t = !0) {
+ let n = NS(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), nC(i?.querySelector("[data-player-theater]")), HS(BS());
+ i?.toggleAttribute("data-theater", r.theaterMode), tC(i?.querySelector("[data-player-theater]")), VS(zS());
}
-function sre(e) {
- let t = PS().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function cre(e) {
+ let t = NS().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -14792,14 +14792,14 @@ function sre(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
if (!(i || t !== o)) {
- if (!PS().settings().ambientMode) {
+ if (!NS().settings().ambientMode) {
c();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t));
}
}, f = () => {
- i || !PS().settings().ambientMode || (l(), e.paused || u(++o));
+ i || !NS().settings().ambientMode || (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -14808,7 +14808,7 @@ function sre(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function cre(e, t, n = 0, r = null) {
+function lre(e, t, n = 0, r = null) {
let i = e.getChild("controlBar")?.el();
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -14818,7 +14818,7 @@ function cre(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]");
- eC(s, "设置");
+ $S(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -14858,11 +14858,11 @@ function cre(e, t, n = 0, r = null) {
active: n
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(JS, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(qS, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
- document.addEventListener(JS, y);
+ document.addEventListener(qS, y);
let b = null, x = (e, t) => {
let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;
@@ -14877,12 +14877,12 @@ function cre(e, t, n = 0, r = null) {
}), r;
}, S = (e, t) => e.querySelector(t), C = "main", w = (t = 0) => {
C = "main";
- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${PS().settings().ambientMode}">
+ let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${NS().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-quality-view>${R("player-quality")}<span>清晰度</span><b>${L(n.label)}</b>${R("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- ore(!PS().settings().ambientMode), w();
+ sre(!NS().settings().ambientMode), w();
}, S(i, "[data-player-speed]").onclick = () => O(), S(i, "[data-player-quality-view]").onclick = () => A();
}, T = .05, E = [
1,
@@ -14958,22 +14958,22 @@ function cre(e, t, n = 0, r = null) {
"removequalitylevel",
"change"
], j), e.on("dispose", () => {
- document.removeEventListener("pointerdown", M), document.removeEventListener(JS, y), b && clearTimeout(b);
- }), h(), lre(e, a), ure(e), (e) => {
+ document.removeEventListener("pointerdown", M), document.removeEventListener(qS, y), b && clearTimeout(b);
+ }), h(), ure(e, a), dre(e), (e) => {
d = e?.length ? e : null, j();
};
}
-function lre(e, t) {
+function ure(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = PS().settings().theaterMode, i = document.createElement("div");
+ let r = NS().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");
- tC.set(a, eC(a, "影院模式", "T")), nC(a), a.onclick = (e) => {
- e.stopPropagation(), rC(!PS().settings().theaterMode);
+ eC.set(a, $S(a, "影院模式", "T")), tC(a), a.onclick = (e) => {
+ e.stopPropagation(), nC(!NS().settings().theaterMode);
};
}
-function ure(e) {
+function dre(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -14985,7 +14985,7 @@ function ure(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 = eC(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 = $S(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 ? "播放" : "暂停");
};
@@ -14996,7 +14996,7 @@ function ure(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 = eC(p, "静音", "M"), g = () => {
+ let h = $S(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 ? "取消静音" : "静音");
};
@@ -15022,7 +15022,7 @@ function ure(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 = eC(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = $S(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = de(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : de(t)} / ${de(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${de(n)};点击显示已播放时间` : `已播放 ${de(t)},总时长 ${de(n)};点击显示剩余时间`);
};
@@ -15035,11 +15035,11 @@ function ure(e) {
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(E, "player-pip");
- let D = eC(E, "画中画");
+ let D = $S(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = eC(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = $S(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 ? "退出全屏" : "全屏"), HS(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), VS(e);
};
e.on([
"fullscreenchange",
@@ -15059,7 +15059,7 @@ function ure(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 = eC(ee, "展开控件"), I = (t) => {
+ let ee = P.querySelector("button"), F = $S(ee, "展开控件"), I = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), ee.setAttribute("aria-expanded", String(t)), F(t ? "收起控件" : "展开控件");
};
ee.onclick = (t) => {
@@ -15071,7 +15071,7 @@ function ure(e) {
}, ne = new ResizeObserver(te);
ne.observe(e.el()), e.on("dispose", () => ne.disconnect()), I(!1), te();
}
-function dre(e, t, n = {}) {
+function fre(e, t, n = {}) {
let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = n.thumbnail !== !1, a = document.createElement("div");
@@ -15104,13 +15104,13 @@ function dre(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function fre(e, t) {
+function pre(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => ve(e.duration()) || ve(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(PS().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(NS().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -15151,11 +15151,11 @@ function fre(e, t) {
} catch {}
});
}
-function pre(e) {
+function mre(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 mre(e, t) {
+function hre(e, t) {
ce(`/api/assets/${t}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -15170,7 +15170,7 @@ function mre(e, t) {
}
//#endregion
//#region src/player/dispose.ts
-function iC(e) {
+function rC(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -15188,23 +15188,23 @@ function iC(e) {
}
//#endregion
//#region src/player/stream.ts
-function aC() {
+function iC() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function oC(e, t) {
+function aC(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function hre(e) {
+function gre(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function sC(e, t) {
- let n = hre(e);
+async function oC(e, t) {
+ let n = gre(e);
if (n) return n;
try {
let n = await ce(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -15213,9 +15213,9 @@ async function sC(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return oC(e, t);
+ return aC(e, t);
}
-function cC(e) {
+function sC(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -15224,21 +15224,21 @@ function cC(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var lC = "";
-function uC() {
- return lC;
+var cC = "";
+function lC() {
+ return cC;
}
-function dC() {
- return lC ||= aC(), lC;
+function uC() {
+ return cC ||= iC(), cC;
}
-var gre = (e) => oC(e, dC()), _re = (e) => sC(e, dC());
-function fC() {
- let e = lC;
- e && (lC = "", cC(e));
+var dC = (e) => aC(e, uC()), fC = (e) => oC(e, uC());
+function pC() {
+ let e = cC;
+ e && (cC = "", sC(e));
}
//#endregion
//#region src/player/telemetry.ts
-function pC(e, t, n = {}) {
+function mC(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null;
t.addEventListener("seeking", () => {
@@ -15286,7 +15286,7 @@ function pC(e, t, n = {}) {
u(), l(!1);
}, { once: !0 }), c();
}
-function vre(e, t) {
+function _re(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = ve(e.duration) || ve(t.duration);
!r && !n || (ce("/api/follow/activity", {
@@ -15322,7 +15322,7 @@ function vre(e, t) {
}
//#endregion
//#region src/player/videojs.ts
-var mC = "/vendor/videojs/8.24.1/", hC = (e) => new Promise((t, n) => {
+var hC = "/vendor/videojs/8.24.1/", gC = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -15334,20 +15334,20 @@ var mC = "/vendor/videojs/8.24.1/", hC = (e) => new Promise((t, n) => {
}, { once: !0 }), i.addEventListener("error", () => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
-}), gC = () => globalThis.videojs, _C = null;
-function vC() {
- let e = gC();
- return e ? Promise.resolve(e) : (_C ??= hC(`${mC}video.min.js`).then(() => hC(`${mC}lang/zh-CN.js`)).then(() => {
- let e = gC();
+}), _C = () => globalThis.videojs, vC = null;
+function yC() {
+ let e = _C();
+ return e ? Promise.resolve(e) : (vC ??= gC(`${hC}video.min.js`).then(() => gC(`${hC}lang/zh-CN.js`)).then(() => {
+ let e = _C();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw _C = null, e;
- }), _C);
+ throw vC = null, e;
+ }), vC);
}
//#endregion
//#region src/player/immerse-player.ts
-var yre = {
+var vre = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -15359,37 +15359,37 @@ var yre = {
errorDisplay: !1,
textTrackSettings: !1
};
-function bre(e, t) {
+function yre(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([sC(n, r), vC().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([oC(n, r), yC().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = oC(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = aC(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, yre);
+ let t = s(e, vre);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- pC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ mC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, cC(r), i ? iC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, sC(r), i ? rC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var yC = /* @__PURE__ */ new WeakMap(), bC = null, xC = null, SC = null;
-function CC() {
- bC &&= (clearInterval(bC), null), xC &&= (clearInterval(xC), null), SC &&= (clearTimeout(SC), null);
+var bC = /* @__PURE__ */ new WeakMap(), xC = null, SC = null, CC = null;
+function wC() {
+ xC &&= (clearInterval(xC), null), SC &&= (clearInterval(SC), null), CC &&= (clearTimeout(CC), null);
}
-async function xre(e, t, n, r = {}) {
- let i = BS();
+async function bre(e, t, n, r = {}) {
+ let i = zS();
if (i && !i.isDisposed()) return i;
- let a = PS(), o = r.resume ?? null;
+ let a = NS(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : _re(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : fC(e), c;
try {
- c = await vC();
+ c = await yC();
} catch {
return t.controls = !0, s().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -15413,7 +15413,7 @@ async function xre(e, t, n, r = {}) {
} }
}
});
- VS(l), l.peachItem = e, tre(l), l.on("loadedmetadata", () => {
+ BS(l), l.peachItem = e, nre(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}`);
});
@@ -15421,7 +15421,7 @@ async function xre(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = rre(GS(f, e.duration)), m = 0, h = !1, g = () => BS() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = ire(WS(f, e.duration)), m = 0, h = !1, g = () => zS() === 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(() => {
@@ -15432,15 +15432,15 @@ async function xre(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- yC.set(l, y), y.updateStats = () => {
+ bC.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 = uC(), h = s ? XS(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 = lC(), h = s ? YS(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 = QS(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 = ZS(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 = US(t);
- qS(d.speed, x), qS(d.activity, C), qS(d.buffer, w);
+ let w = HS(t);
+ KS(d.speed, x), KS(d.activity, C), KS(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 ? [
"网络活动",
`${_ ? pe(_) : "—"} · ${h.length} 请求`,
@@ -15458,17 +15458,17 @@ async function xre(e, t, n, r = {}) {
[
"连接速度",
D,
- YS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ JS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- YS(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ JS(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- YS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ JS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${de(t.currentTime)} / ${de(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -15484,15 +15484,15 @@ async function xre(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = QS(l, e.id, uC(), r ? null : p), a = r ? $S(i) : are(i, US(t));
+ let i = ZS(l, e.id, lC(), r ? null : p), a = r ? QS(i) : ore(i, HS(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${L(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, S(), xC && clearInterval(xC), xC = setInterval(S, 500));
+ !e || !e.isConnected || (e.hidden = !1, S(), SC && clearInterval(SC), SC = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (SC && clearTimeout(SC), SC = setTimeout(() => {
- e.hidden = !0, xC &&= (clearInterval(xC), null);
+ e && (CC && clearTimeout(CC), CC = setTimeout(() => {
+ e.hidden = !0, SC &&= (clearInterval(SC), null);
}, 1400));
};
return l.on([
@@ -15504,7 +15504,7 @@ async function xre(e, t, n, r = {}) {
S(), w();
}), l.on("error", () => {
if (b && !x && !l.isDisposed()) {
- x = !0, b = !1, l.src(gre(e)), n && l.play()?.catch(() => {});
+ x = !0, b = !1, l.src(dC(e)), n && l.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
@@ -15515,27 +15515,27 @@ async function xre(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = cre(l, t, e.height, r.qualities ?? null);
+ let n = lre(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 = GS(r, e.duration));
- }).catch(() => {}), dre(l, e, { thumbnail: !r.source }), fre(l, e), pre(l), r.source || mre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = WS(r, e.duration));
+ }).catch(() => {}), fre(l, e, { thumbnail: !r.source }), pre(l, e), mre(l), r.source || hre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), o && o.time > 0 && l.one("loadedmetadata", () => {
l.isDisposed() || l.currentTime(o.time);
}), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Sre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function wC(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Sre), e.querySelector(":scope > #playerStatsBtn")) return;
+var xre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function TC(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", xre), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = ire(), e.insertBefore(n.content, t);
+ n.innerHTML = are(), e.insertBefore(n.content, t);
}
-function TC(e, t) {
- let n = yC.get(e);
+function EC(e, t) {
+ let n = bC.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -15547,29 +15547,29 @@ function TC(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), bC &&= (clearInterval(bC), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), xC &&= (clearInterval(xC), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(JS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), bC && clearInterval(bC), bC = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(qS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), xC && clearInterval(xC), xC = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(JS, t), s = () => document.removeEventListener(JS, t);
+ document.addEventListener(qS, t), s = () => document.removeEventListener(qS, t);
}
- let c = e.el().querySelector("video"), l = c ? sre(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, CC()));
+ let c = e.el().querySelector("video"), l = c ? cre(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, wC()));
};
return e.one("dispose", d), d;
}
-function EC(e, t) {
- if (t.kind === "immerse") return bre(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = PS(), c = t.chrome === !1 ? null : e.parentElement;
- c && wC(c, e);
+function DC(e, t) {
+ if (t.kind === "immerse") return yre(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = NS(), c = t.chrome === !1 ? null : e.parentElement;
+ c && TC(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
...l,
@@ -15589,16 +15589,16 @@ function EC(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), pC(r, e, {
+ }, { once: !0 }), mC(r, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), !(!u || a?.(u)) && (BS() === u && (VS(null), CC()), iC(u));
+ f(), !(!u || a?.(u)) && (zS() === u && (BS(null), wC()), rC(u));
};
- return xre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
+ return bre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
if (u = t, d) {
p();
return;
@@ -15607,45 +15607,45 @@ function EC(e, t) {
o?.(null);
return;
}
- c && (f = TC(t, c)), n === "follow" && vre(r, e), o?.(t);
+ c && (f = EC(t, c)), n === "follow" && _re(r, e), o?.(t);
}), () => {
d = !0, p();
};
}
//#endregion
//#region src/player/playback.ts
-function DC(e) {
+function OC(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function Cre(e, t) {
+function Sre(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);
}
//#endregion
//#region src/jav-artwork.ts
-function OC(e) {
+function kC(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function wre(e, t) {
- return e.is_jav && e.code && e.has_cover && (OC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Cre(e, t) {
+ return e.is_jav && e.code && e.has_cover && (kC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var kC = .704;
-function AC(e, t) {
+var AC = .704;
+function jC(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Tre = (e, t) => [
+var wre = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Ere = (e, t) => [
+], Tre = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Dre(e, t, n, r, i) {
+async function Ere(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 G(`/api/items?${a}`, i), s = {
@@ -15655,22 +15655,22 @@ async function Dre(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await G("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Ore = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, kre = (e, t) => {
+var Dre = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Ore = (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 jC(e) {
- let t = AC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function MC(e) {
+ let t = jC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Tre(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Dre(t, e, n, r, i),
+ queryKey: wre(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Ere(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Ore(n)
+ getNextPageParam: Dre(n)
};
}
-function Are(e) {
+function kre(e) {
return {
- queryKey: Ere(e.entityKey || "", e.revision || 0),
+ queryKey: Tre(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -15685,12 +15685,12 @@ function Are(e) {
};
},
initialPageParam: 0,
- getNextPageParam: kre
+ getNextPageParam: Ore
};
}
-async function jre(e, t) {
+async function Are(e, t) {
if (e.mode !== "catalog") return;
- let n = jC(e);
+ let n = MC(e);
await z.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -15699,7 +15699,7 @@ async function jre(e, t) {
})
});
}
-function Mre(e, t, n) {
+function jre(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -15714,24 +15714,24 @@ function Mre(e, t, n) {
return !0;
}) : [...e];
}
-var MC = (e, t) => !!e && !!wre(e, t);
-function Nre(e, t) {
- let n = (e) => MC(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) => MC(e, t)) || e[e.length - 1];
+var NC = (e, t) => !!e && !!Cre(e, t);
+function Mre(e, t) {
+ let n = (e) => NC(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) => NC(e, t)) || e[e.length - 1];
}
-function Pre(e, { collapse: t, mix: n, javImage: r }) {
+function Nre(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 = Mre(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = jre(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 = Nre(e, r);
+ let t = Mre(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -15744,16 +15744,16 @@ function Pre(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Fre(e, t, n) {
+function Pre(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 Ire(e, t) {
+function Fre(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 Lre(e, t) {
+function Ire(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -15766,10 +15766,10 @@ function Lre(e, t) {
strip: null
}), r;
}
-function NC(e, t) {
- PC((t) => t.id === e, t);
-}
function PC(e, t) {
+ FC((t) => t.id === e, t);
+}
+function FC(e, t) {
z.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -15786,31 +15786,31 @@ function PC(e, t) {
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var FC = (e) => ["item", e], IC = (e) => [
+var IC = (e) => ["item", e], LC = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Rre = (e, t) => [
+], Lre = (e, t) => [
"item-related",
e,
t
-], zre = (e) => `/api/item?id=${e}`, Bre = (e, t) => `/api/related?id=${e}&limit=${t}`, LC = "/api/playlist", RC = "/api/feedback", zC = "/api/item-tag", BC = "/api/watch-later", VC = "/api/quality-goal", HC = "/api/preference", UC = class extends Error {};
-async function WC(e, t) {
- let n = await G(zre(e), t);
- if (n.error) throw new UC(n.error);
+], Rre = (e) => `/api/item?id=${e}`, zre = (e, t) => `/api/related?id=${e}&limit=${t}`, RC = "/api/playlist", zC = "/api/feedback", BC = "/api/item-tag", VC = "/api/watch-later", HC = "/api/quality-goal", UC = "/api/preference", WC = class extends Error {};
+async function GC(e, t) {
+ let n = await G(Rre(e), t);
+ if (n.error) throw new WC(n.error);
return n;
}
-async function GC(e, t, n) {
+async function KC(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([WC(r, n), t.mixRelated(r)]);
- return z.setQueryData(FC(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([GC(r, n), t.mixRelated(r)]);
+ return z.setQueryData(IC(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${P(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return KC(await G(`${LC}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return qC(await G(`${RC}?id=${e.playlistId}`, n));
let r = await G(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -15820,19 +15820,19 @@ async function GC(e, t, n) {
items: r.items
};
}
-var KC = (e) => ({
+var qC = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), qC = (e) => e.disposal === "vanished";
-function JC(e, t) {
+}), JC = (e) => e.disposal === "vanished";
+function YC(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !qC(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !JC(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 Vre(e, t) {
+function Bre(e, t) {
if (t?.kind !== "parts") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -15840,15 +15840,15 @@ function Vre(e, t) {
part_label: n
};
}
-async function Hre(e, t) {
+async function Vre(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = IC(n);
+ let o = LC(n);
try {
let r = n.fresh ? void 0 : z.getQueryData(o);
a = !r && n.kind === "mix", i = r || await z.fetchQuery({
queryKey: o,
- queryFn: () => GC(n, e.helpers, t),
+ queryFn: () => KC(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -15860,20 +15860,20 @@ async function Hre(e, t) {
return;
}
}
- let o = i ? JC(i, e.id) : e.id;
+ let o = i ? YC(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 ? z.getQueryData(FC(o)) : void 0;
+ let s, c = a && o === i?.seedId ? z.getQueryData(IC(o)) : void 0;
try {
s = c || await z.fetchQuery({
- queryKey: FC(o),
- queryFn: () => WC(o, t),
+ queryKey: IC(o),
+ queryFn: () => GC(o, t),
staleTime: 0
});
} catch (e) {
- if (e instanceof UC) {
+ if (e instanceof WC) {
r.redirect({ kind: "gone" });
return;
}
@@ -15884,7 +15884,7 @@ async function Hre(e, t) {
id: Number(s.follow_item_id)
});
}
-function Ure(e) {
+function Hre(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = me(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -15906,42 +15906,42 @@ function Ure(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-var YC = (e) => Math.min(Math.max(e || 0, 0), 100), XC = (e) => Math.round(YC(e) / 20), Wre = (e) => {
- let t = XC(e);
+var XC = (e) => Math.min(Math.max(e || 0, 0), 100), ZC = (e) => Math.round(XC(e) / 20), Ure = (e) => {
+ let t = ZC(e);
return t ? `${t} 星` : "未评分";
-}, Gre = (e, t) => {
+}, Wre = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function Kre(e, t) {
+function Gre(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = me(t.tagLabel(e.k)), i = n.get(r);
(!i || me(e.k) === r && me(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var ZC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), QC = (e, t) => ({
+var QC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), $C = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => me(e.k) !== me(t))
-}), $C = (e, t) => ZC(e, t.k) ? e : {
+}), ew = (e, t) => QC(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, ew = "peach.recentTags";
-function tw() {
+}, tw = "peach.recentTags";
+function nw() {
try {
- let e = JSON.parse(localStorage.getItem(ew) || "[]");
+ let e = JSON.parse(localStorage.getItem(tw) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function qre(e) {
+function Kre(e) {
try {
- let t = tw().filter((t) => me(t) !== me(e));
- localStorage.setItem(ew, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = nw().filter((t) => me(t) !== me(e));
+ localStorage.setItem(tw, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Jre(e, t, n) {
+function qre(e, t, n) {
let r = me(e), i = new Map(t.map((e) => [me(e.k), e])), a = t.filter((e) => !r || me(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(me(e)) || {
k: e,
n: 0
@@ -15952,73 +15952,73 @@ function Jre(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Yre = {
+var Jre = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Xre = {
+}, Yre = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Zre(e) {
+function Xre(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Xre[e.kind],
+ title: Yre[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var nw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Qre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(nw(e.part_label))}</small>` : "";
-function $re(e, t, n, r) {
+var rw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Zre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(rw(e.part_label))}</small>` : "";
+function Qre(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var eie = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function tie(e, t) {
+var $re = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function eie(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function nie(e) {
+function tie(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 rw(e, t) {
+function iw(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
-var rie = (e, t, n) => [
+var nie = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function iie(e) {
+function rie(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var aie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function oie(e, t = Math.random) {
+var iie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function aie(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function sie(e, t) {
- return oie(((await G(`/api/items?${e}`)).items || []).filter((e) => aie(e, t)));
+async function oie(e, t) {
+ return aie(((await G(`/api/items?${e}`)).items || []).filter((e) => iie(e, t)));
}
-var iw = (e) => z.ensureQueryData({
- queryKey: FC(e),
- queryFn: ({ signal: t }) => WC(e, t)
+var aw = (e) => z.ensureQueryData({
+ queryKey: IC(e),
+ queryFn: ({ signal: t }) => GC(e, t)
});
-function cie(e, t) {
+function sie(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function lie(e) {
+function cie(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -16027,318 +16027,318 @@ function lie(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function uie(e, t, n) {
+function lie(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function die(e, t) {
+function uie(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 fie = 15e3, aw = {
+var die = 15e3, ow = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, ow = null, sw = null, cw = aw, lw = /* @__PURE__ */ new Set(), uw = 0, dw = 0, fw = 0, pw = "", mw = [], hw = 0, gw = !1, _w = !1, vw = null, yw = /* @__PURE__ */ new Set(), bw = "", xw = null, Sw = 0, Cw = null, ww = !1;
-function Tw() {
- if (!ow) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return ow;
+}, sw = null, cw = null, lw = ow, uw = /* @__PURE__ */ new Set(), dw = 0, fw = 0, pw = 0, mw = "", hw = [], gw = 0, _w = !1, vw = !1, yw = null, bw = /* @__PURE__ */ new Set(), xw = "", Sw = null, Cw = 0, ww = null, Tw = !1;
+function Ew() {
+ if (!sw) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return sw;
}
-function pie(e) {
- return lw.add(e), () => {
- lw.delete(e);
+function fie(e) {
+ return uw.add(e), () => {
+ uw.delete(e);
};
}
-function mie() {
- for (let e of [...lw]) e();
-}
-function Ew() {
- (0, $f.flushSync)(mie);
+function pie() {
+ for (let e of [...uw]) e();
}
function Dw() {
- let e = xw ? ZS(xw.id) : 0;
- return e ? `${bw} · ${$S(e)}` : bw;
+ (0, $f.flushSync)(pie);
+}
+function Ow() {
+ let e = Sw ? XS(Sw.id) : 0;
+ return e ? `${xw} · ${QS(e)}` : xw;
}
-function Ow(e, t = null) {
- if (clearInterval(Sw), Sw = 0, e === null) {
- cw = {
- ...cw,
+function kw(e, t = null) {
+ if (clearInterval(Cw), Cw = 0, e === null) {
+ lw = {
+ ...lw,
loading: null
- }, Ew();
+ }, Dw();
return;
}
- bw = e, xw = t, cw = {
- ...cw,
- loading: Dw()
- }, Ew(), Sw = window.setInterval(() => {
- xw = mw[hw] ?? null, cw = {
- ...cw,
- loading: Dw()
- }, Ew();
+ xw = e, Sw = t, lw = {
+ ...lw,
+ loading: Ow()
+ }, Dw(), Cw = window.setInterval(() => {
+ Sw = hw[gw] ?? null, lw = {
+ ...lw,
+ loading: Ow()
+ }, Dw();
}, 500);
}
-function hie(e) {
+function mie(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), sw.track.append(t);
- let r = aC(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), cw.track.append(t);
+ let r = iC(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => cC(r),
+ release: () => sC(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return yw.add(a), a;
+ return bw.add(a), a;
}
-function gie(e, t) {
+function hie(e, t) {
return new Promise((n) => {
- e.release = EC(e.video, {
+ e.release = DC(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- cw.open && Fw(1);
+ lw.open && Iw(1);
}
}), e.gone.then(n);
});
}
-function kw(e) {
- !e || e.disposed || (e.disposed = !0, yw.delete(e), e.leave(), e.release(), e.el.remove(), vw === e && (vw = null));
+function Aw(e) {
+ !e || e.disposed || (e.disposed = !0, bw.delete(e), e.leave(), e.release(), e.el.remove(), yw === e && (yw = null));
}
-var Aw = [
+var jw = [
"loadeddata",
"canplay",
"error"
];
-function _ie(e) {
+function gie(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), Aw.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), jw.forEach((e) => t.removeEventListener(e, i)), n());
};
- Aw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, fie);
+ jw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, die);
e.gone.then(i);
});
}
-function jw(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = uie(e.videoWidth, e.videoHeight, n);
+function Mw(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = lie(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var Mw = () => sw?.track.querySelectorAll("video").forEach(jw);
-function vie(e) {
- delete e.dataset.fit, e.readyState >= 1 ? jw(e) : e.addEventListener("loadedmetadata", () => jw(e), { once: !0 });
+var Nw = () => cw?.track.querySelectorAll("video").forEach(Mw);
+function _ie(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? Mw(e) : e.addEventListener("loadedmetadata", () => Mw(e), { once: !0 });
}
-function yie(e) {
- cw = {
- ...cw,
+function vie(e) {
+ lw = {
+ ...lw,
wide: e
- }, Ew(), Mw();
+ }, Dw(), Nw();
}
-var Nw = () => {
- let e = pw;
+var Pw = () => {
+ let e = mw;
return z.fetchQuery({
- queryKey: rie(e, dw, fw),
- queryFn: () => sie(e, Tw().sourceOffline),
+ queryKey: nie(e, fw, pw),
+ queryFn: () => oie(e, Ew().sourceOffline),
staleTime: Infinity
});
};
-function bie(e, t) {
+function yie(e, t) {
let n = () => ve(e.duration) || ve(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && sw && (sw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), Cw = {
+ t && cw && (cw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), ww = {
video: e,
duration: n
};
}
-async function Pw(e = 0) {
- let t = mw[hw];
- if (!t || gw) return;
- let n = uw;
- Tw().route(t.id), gw = !0, Ow(e ? "切换中…" : "加载中…", t);
+async function Fw(e = 0) {
+ let t = hw[gw];
+ if (!t || _w) return;
+ let n = dw;
+ Ew().route(t.id), _w = !0, kw(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await iw(t.id).catch((e) => {
- if (!(e instanceof UC)) throw e;
- }), n !== uw) return;
- let i = vw, a = !!(e && i);
- a || kw(i);
- let o = hie(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, vie(o.video), await gie(o, t), await _ie(o), o.disposed || (yie(die(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await aw(t.id).catch((e) => {
+ if (!(e instanceof WC)) throw e;
+ }), n !== dw) return;
+ let i = yw, a = !!(e && i);
+ a || Aw(i);
+ let o = mie(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, _ie(o.video), await hie(o, t), await gie(o), o.disposed || (vie(uie(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)), kw(i), o.el.style.transform = ""), o.disposed)) return;
- vw = o, r = null, o.video.play()?.catch(() => {}), cw = {
- ...cw,
+ })), await new Promise((e) => setTimeout(e, 210)), Aw(i), o.el.style.transform = ""), o.disposed)) return;
+ yw = o, r = null, o.video.play()?.catch(() => {}), lw = {
+ ...lw,
idle: !1,
shown: {
item: t,
- index: hw,
- length: mw.length
+ index: gw,
+ length: hw.length
}
- }, bie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), Ow(null);
+ }, yie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), kw(null);
} catch {
- kw(r), n === uw && Ow(null);
+ Aw(r), n === dw && kw(null);
} finally {
- n === uw && (gw = !1);
+ n === dw && (_w = !1);
}
}
-async function Fw(e) {
- if (gw || !cw.open) return;
- let t = uw;
- if (hw += e, Ow("切换中…", mw[hw] ?? null), hw >= mw.length - 3 && !_w) {
- _w = !0;
+async function Iw(e) {
+ if (_w || !lw.open) return;
+ let t = dw;
+ if (gw += e, kw("切换中…", hw[gw] ?? null), gw >= hw.length - 3 && !vw) {
+ vw = !0;
try {
- fw += 1;
- let e = await Nw();
- t === uw && (mw = cie(mw, e));
+ pw += 1;
+ let e = await Pw();
+ t === dw && (hw = sie(hw, e));
} catch {} finally {
- _w = !1;
+ vw = !1;
}
}
- t === uw && (hw >= mw.length && (hw = 0), hw < 0 && (hw = mw.length - 1), await Pw(e));
+ t === dw && (gw >= hw.length && (gw = 0), gw < 0 && (gw = hw.length - 1), await Fw(e));
}
-async function xie(e) {
- let t = ++uw;
- Iw(), dw += 1, fw = 0, pw = iie(Tw().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), cw = {
- ...cw,
+async function bie(e) {
+ let t = ++dw;
+ Lw(), fw += 1, pw = 0, mw = rie(Ew().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), lw = {
+ ...lw,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), Ow("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), kw("加载内容…");
try {
- let n = await Nw();
+ let n = await Pw();
if (e && !n.some((t) => t.id === e)) {
- let t = await iw(e).catch((e) => {
- if (e instanceof UC) return null;
+ let t = await aw(e).catch((e) => {
+ if (e instanceof WC) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== uw) return;
- if (mw = n, !mw.length) {
- Lw(), Tw().warn("当前筛选下没有可直接播放的内容");
+ if (t !== dw) return;
+ if (hw = n, !hw.length) {
+ Rw(), Ew().warn("当前筛选下没有可直接播放的内容");
return;
}
- hw = Math.max(0, mw.findIndex((t) => t.id === e)), await Pw();
+ gw = Math.max(0, hw.findIndex((t) => t.id === e)), await Fw();
} catch {
- if (t !== uw) return;
- Ow(null), Lw();
+ if (t !== dw) return;
+ kw(null), Rw();
}
}
-function Iw() {
- clearInterval(Sw), Sw = 0, Uw(), Vw = null, Cw = null, ww = !1, [...yw].forEach(kw), gw = !1;
-}
function Lw() {
- cw.open && (uw++, Iw(), cw = aw, document.body.removeAttribute("data-immerse-open"), Ew(), Tw().closed());
+ clearInterval(Cw), Cw = 0, Ww(), Hw = null, ww = null, Tw = !1, [...bw].forEach(Aw), _w = !1;
}
-var Rw = 0, zw = null, Bw = 0, Vw = null, Hw = 0;
-function Uw() {
- clearTimeout(Rw), Rw = 0, zw = null;
+function Rw() {
+ lw.open && (dw++, Lw(), lw = ow, document.body.removeAttribute("data-immerse-open"), Dw(), Ew().closed());
}
-function Sie(e) {
- let t = vw?.video;
+var zw = 0, Bw = null, Vw = 0, Hw = null, Uw = 0;
+function Ww() {
+ clearTimeout(zw), zw = 0, Bw = null;
+}
+function xie(e) {
+ let t = yw?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (zw && zw.side === n && r - zw.at <= 280) {
- Uw(), Cre(t, Tw().seekSeconds() * n);
+ if (Bw && Bw.side === n && r - Bw.at <= 280) {
+ Ww(), Sre(t, Ew().seekSeconds() * n);
return;
}
- Rw && (clearTimeout(Rw), Rw = 0, DC(t)), zw = {
+ zw && (clearTimeout(zw), zw = 0, OC(t)), Bw = {
side: n,
at: r
- }, Rw = window.setTimeout(() => {
- Rw = 0, zw = null, cw.open && DC(vw?.video);
+ }, zw = window.setTimeout(() => {
+ zw = 0, Bw = null, lw.open && OC(yw?.video);
}, 280);
}
-function Cie() {
- Date.now() < Bw || DC(vw?.video);
-}
-var Ww = (e) => sw?.bar.toggleAttribute("data-scrubbing", e);
-function Gw(e) {
- sw && (sw.progress.style.width = `${(e * 100).toFixed(2)}%`);
+function Sie() {
+ Date.now() < Vw || OC(yw?.video);
}
+var Gw = (e) => cw?.bar.toggleAttribute("data-scrubbing", e);
function Kw(e) {
+ cw && (cw.progress.style.width = `${(e * 100).toFixed(2)}%`);
+}
+function qw(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- Vw = null;
+ Hw = null;
return;
}
- let n = vw?.video;
- Vw = {
+ let n = yw?.video;
+ Hw = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function qw(e) {
- if (!Vw || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - Vw.x, n = e.touches[0].clientY - Vw.y;
- if (!Vw.axis) {
+function Jw(e) {
+ if (!Hw || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - Hw.x, n = e.touches[0].clientY - Hw.y;
+ if (!Hw.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- Vw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Vw.axis === "x" && Ww(!0);
+ Hw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Hw.axis === "x" && Gw(!0);
}
- if (Vw.axis !== "x") return;
- let r = vw?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), Vw.to = Math.min(i, Math.max(0, Vw.from + t / window.innerWidth * i)), Gw(Vw.to / i));
+ if (Hw.axis !== "x") return;
+ let r = yw?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), Hw.to = Math.min(i, Math.max(0, Hw.from + t / window.innerWidth * i)), Kw(Hw.to / i));
}
-function Jw(e) {
- if (!Vw) return;
- let t = Vw;
- if (Vw = null, Bw = Date.now() + 700, Ww(!1), t.axis === "x") {
- let e = vw?.video;
+function Yw(e) {
+ if (!Hw) return;
+ let t = Hw;
+ if (Hw = null, Vw = Date.now() + 700, Gw(!1), t.axis === "x") {
+ let e = yw?.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;
if (Math.abs(i) > 60) {
- Uw(), Fw(i > 0 ? 1 : -1);
+ Ww(), Iw(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Sie(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xie(n.clientX));
}
-function Yw() {
- Vw = null, Ww(!1);
+function Xw() {
+ Hw = null, Gw(!1);
}
-function Xw(e) {
+function Zw(e) {
let t = Date.now();
- t - Hw < 260 || (Hw = t, Fw(e.deltaY > 0 ? 1 : -1));
+ t - Uw < 260 || (Uw = t, Iw(e.deltaY > 0 ? 1 : -1));
}
-function Zw(e) {
- let t = sw.bar.getBoundingClientRect();
+function Qw(e) {
+ let t = cw.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
+function Cie(e) {
+ ww?.duration() && (Tw = !0, Gw(!0), e.currentTarget.setPointerCapture(e.pointerId), Kw(Qw(e)), e.preventDefault());
+}
function wie(e) {
- Cw?.duration() && (ww = !0, Ww(!0), e.currentTarget.setPointerCapture(e.pointerId), Gw(Zw(e)), e.preventDefault());
+ Tw && Kw(Qw(e));
}
function Tie(e) {
- ww && Gw(Zw(e));
-}
-function Eie(e) {
- if (!ww) return;
- ww = !1, Ww(!1);
- let t = Cw?.duration();
- Cw && t && (Cw.video.currentTime = t * Zw(e));
+ if (!Tw) return;
+ Tw = !1, Gw(!1);
+ let t = ww?.duration();
+ ww && t && (ww.video.currentTime = t * Qw(e));
}
-function Die() {
- ww = !1, Ww(!1);
+function Eie() {
+ Tw = !1, Gw(!1);
}
-async function Qw(e, t) {
- let n = await K(RC, {
+async function $w(e, t) {
+ let n = await K(zC, {
id: e,
kind: t
- }), r = z.getQueryData(FC(e));
- if (!r) return NC(e, {
+ }), r = z.getQueryData(IC(e));
+ if (!r) return PC(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -16347,7 +16347,7 @@ async function Qw(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return z.setQueryData(FC(e), i), NC(e, {
+ return z.setQueryData(IC(e), i), PC(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -16355,7 +16355,7 @@ async function Qw(e, t) {
o_count: i.o_count
}), n;
}
-var Oie = [
+var Die = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -16372,31 +16372,31 @@ var Oie = [
label: "记一次高潮"
}
];
-function $w(e) {
- return TS({
- queryKey: FC(e ?? 0),
- queryFn: ({ signal: t }) => WC(e, t),
+function eT(e) {
+ return wS({
+ queryKey: IC(e ?? 0),
+ queryFn: ({ signal: t }) => GC(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function kie({ kind: e, glyph: t, label: n, id: r }) {
- let i = $w(r), a = OS({
+function Oie({ kind: e, glyph: t, label: n, id: r }) {
+ let i = eT(r), a = DS({
mutationFn: async (t) => {
- let n = z.getQueryData(FC(t))?.feedback || null;
+ let n = z.getQueryData(IC(t))?.feedback || null;
return {
- result: await Qw(t, e),
+ result: await $w(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- Tw().toast(rw(e, t), { undo: async () => {
- e === "o" ? await Qw(r, "o-undo") : (t.feedback && await Qw(r, t.feedback), n && await Qw(r, n));
+ Ew().toast(iw(e, t), { undo: async () => {
+ e === "o" ? await $w(r, "o-undo") : (t.feedback && await $w(r, t.feedback), n && await $w(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- Fw(1);
+ Iw(1);
}, 260);
},
- onError: (e) => Tw().failure("更新反馈", e)
+ onError: (e) => Ew().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-immerse-action": "",
@@ -16427,11 +16427,11 @@ function kie({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Aie({ shown: e }) {
- let t = e?.item ?? null, n = $w(t?.id ?? null), r = n ? lie(n) : null, i = Tw(), a = (e) => {
- e.preventDefault(), n && (Lw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function kie({ shown: e }) {
+ let t = e?.item ?? null, n = eT(t?.id ?? null), r = n ? cie(n) : null, i = Ew(), a = (e) => {
+ e.preventDefault(), n && (Rw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (Lw(), i.openItem(t.id));
+ t && (Rw(), i.openItem(t.id));
}, s = r ? w(r.name, r.ref, ae(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-immerse-ui": "",
@@ -16460,18 +16460,18 @@ function Aie({ shown: e }) {
})]
});
}
-var jie = { __html: Ke("媒体加载中") };
-function Mie({ view: e }) {
+var Aie = { __html: Ke("媒体加载中") };
+function jie({ view: e }) {
let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
let e = t.current;
- return sw = {
+ return cw = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", Kw, { passive: !0 }), e.addEventListener("touchmove", qw, { passive: !1 }), e.addEventListener("touchend", Jw, { passive: !1 }), e.addEventListener("touchcancel", Yw, { passive: !0 }), e.addEventListener("wheel", Xw, { passive: !0 }), () => {
- e.removeEventListener("touchstart", Kw), e.removeEventListener("touchmove", qw), e.removeEventListener("touchend", Jw), e.removeEventListener("touchcancel", Yw), e.removeEventListener("wheel", Xw), sw = null;
+ }, e.addEventListener("touchstart", qw, { passive: !0 }), e.addEventListener("touchmove", Jw, { passive: !1 }), e.addEventListener("touchend", Yw, { passive: !1 }), e.addEventListener("touchcancel", Xw, { passive: !0 }), e.addEventListener("wheel", Zw, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", qw), e.removeEventListener("touchmove", Jw), e.removeEventListener("touchend", Yw), e.removeEventListener("touchcancel", Xw), e.removeEventListener("wheel", Zw), cw = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -16488,10 +16488,10 @@ function Mie({ view: e }) {
children: [/* @__PURE__ */ (0, V.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Cie
+ onClick: Sie
}), /* @__PURE__ */ (0, V.jsx)("div", {
"data-immerse-actions": "",
- children: Oie.map((e) => /* @__PURE__ */ (0, V.jsx)(kie, {
+ children: Die.map((e) => /* @__PURE__ */ (0, V.jsx)(Oie, {
...e,
id: a
}, e.kind))
@@ -16504,7 +16504,7 @@ function Mie({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: jie
+ dangerouslySetInnerHTML: Aie
}), /* @__PURE__ */ (0, V.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -16512,7 +16512,7 @@ function Mie({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: Lw,
+ onClick: Rw,
children: /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-x" })
@@ -16521,75 +16521,75 @@ function Mie({ view: e }) {
/* @__PURE__ */ (0, V.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: wie,
- onPointerMove: Tie,
- onPointerUp: Eie,
- onPointerCancel: Die,
+ onPointerDown: Cie,
+ onPointerMove: wie,
+ onPointerUp: Tie,
+ onPointerCancel: Eie,
children: /* @__PURE__ */ (0, V.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, V.jsx)(Aie, { shown: e.shown })
+ /* @__PURE__ */ (0, V.jsx)(kie, { shown: e.shown })
]
});
}
-var eT = {
- open: xie,
- close: Lw,
- isOpen: () => cw.open,
- activeVideo: () => cw.open ? vw?.video ?? null : null
+var Mie = {
+ open: bie,
+ close: Rw,
+ isOpen: () => lw.open,
+ activeVideo: () => lw.open ? yw?.video ?? null : null
};
-function tT(e) {
- if (!cw.open) return;
+function Nie(e) {
+ if (!lw.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Fw(1), e.key === "ArrowUp" && Fw(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Iw(1), e.key === "ArrowUp" && Iw(-1));
}
-function Nie(e) {
- let t = !ow;
- return ow = e, t && (document.addEventListener("keydown", tT), addEventListener("resize", () => {
- cw.open && Mw();
+function Pie(e) {
+ let t = !sw;
+ return sw = e, t && (document.addEventListener("keydown", Nie), addEventListener("resize", () => {
+ lw.open && Nw();
}), addEventListener("pagehide", () => {
- yw.forEach((e) => cC(e.session));
- })), eT;
+ bw.forEach((e) => sC(e.session));
+ })), Mie;
}
-function Pie() {
- let e = (0, B.useSyncExternalStore)(pie, () => cw);
- return ow ? /* @__PURE__ */ (0, V.jsx)(Mie, { view: e }) : null;
+function Fie() {
+ let e = (0, B.useSyncExternalStore)(fie, () => lw);
+ return sw ? /* @__PURE__ */ (0, V.jsx)(jie, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
-var Fie = {
+var Iie = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, Iie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Lie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function Rie(e) {
+}, Lie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Rie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function zie(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Fie[e.path] ?? "";
+ let n = Iie[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Iie.has(e.path) || e.section === "configuration",
+ compact: Lie.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Lie(e.trash),
+ text: Rie(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var zie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+var Bie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function nT({ name: e }) {
+function tT({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function Bie({ name: e }) {
+function Vie({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -16598,37 +16598,37 @@ function Bie({ name: e }) {
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var rT = null, iT = null, aT = /* @__PURE__ */ new Set();
-function Vie(e) {
- return aT.add(e), () => {
- aT.delete(e);
+var nT = null, rT = null, iT = /* @__PURE__ */ new Set();
+function Hie(e) {
+ return iT.add(e), () => {
+ iT.delete(e);
};
}
-function Hie() {
- for (let e of [...aT]) e();
+function Uie() {
+ for (let e of [...iT]) e();
}
-var Uie = { render(e) {
- iT = e, (0, $f.flushSync)(Hie);
+var Wie = { render(e) {
+ rT = e, (0, $f.flushSync)(Uie);
} };
-function Wie(e) {
- return rT = e, iT = null, Uie;
+function Gie(e) {
+ return nT = e, rT = null, Wie;
}
-function Gie() {
- let e = (0, B.useSyncExternalStore)(Vie, () => iT);
- return rT && e ? /* @__PURE__ */ (0, V.jsx)(Kie, {
- host: rT,
+function Kie() {
+ let e = (0, B.useSyncExternalStore)(Hie, () => rT);
+ return nT && e ? /* @__PURE__ */ (0, V.jsx)(qie, {
+ host: nT,
props: e
}) : null;
}
-function Kie({ host: e, props: t }) {
- let n = Rie(t);
+function qie({ host: e, props: t }) {
+ let n = zie(t);
return n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(qie, {
+ /* @__PURE__ */ (0, V.jsx)(Jie, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, V.jsx)(Jie, {
+ n.crumb ? /* @__PURE__ */ (0, V.jsx)(Yie, {
host: e,
label: n.crumb
}) : null,
@@ -16637,29 +16637,29 @@ function Kie({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Yie, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Xie, {
host: e,
lede: n.lede
})
] }) : null;
}
-var oT = null;
-function sT(e, t, n) {
+var aT = null;
+function oT(e, t, n) {
e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);
}
-function qie({ host: e, section: t, menu: n }) {
+function Jie({ host: e, section: t, menu: n }) {
let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = () => {
let e = r.current, t = i.current;
if (!e || !t) return;
let n = e.querySelector("button[aria-pressed=\"true\"]");
- n && !n.offsetWidth || (sT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (oT = {
+ n && !n.offsetWidth || (oT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (aT = {
x: n.offsetLeft,
width: n.offsetWidth
}));
};
return (0, B.useLayoutEffect)(() => {
let e = r.current, t = i.current;
- oT ? sT(t, oT.x, oT.width) : a();
+ aT ? oT(t, aT.x, aT.width) : a();
let n = 0, o = requestAnimationFrame(() => {
t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);
}), s = new ResizeObserver(a);
@@ -16682,7 +16682,7 @@ function qie({ host: e, section: t, menu: n }) {
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, V.jsx)(nT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]
}, n);
}), /* @__PURE__ */ (0, V.jsx)("span", {
ref: i,
@@ -16692,7 +16692,7 @@ function qie({ host: e, section: t, menu: n }) {
})
});
}
-function Jie({ host: e, label: t }) {
+function Yie({ host: e, label: t }) {
return /* @__PURE__ */ (0, V.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@ -16702,20 +16702,20 @@ function Jie({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, V.jsx)(nT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {
+ }), /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, V.jsx)("span", { children: t })
})] })
});
}
-function Yie({ host: e, lede: t }) {
+function Xie({ host: e, lede: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: zie }
- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Xie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: Bie }
+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Zie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -16725,7 +16725,7 @@ function Yie({ host: e, lede: t }) {
}) : null] })
});
}
-function Xie({ text: e }) {
+function Zie({ text: e }) {
let t = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
qe(t.current, e);
@@ -16736,7 +16736,7 @@ function Xie({ text: e }) {
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16744,7 +16744,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16752,7 +16752,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), cT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), sT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16760,7 +16760,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), lT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), cT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16768,7 +16768,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), uT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), lT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16776,7 +16776,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16784,7 +16784,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), uT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16792,7 +16792,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16800,7 +16800,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16808,7 +16808,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16816,7 +16816,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16824,7 +16824,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16832,7 +16832,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16840,7 +16840,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16848,7 +16848,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16856,7 +16856,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16864,7 +16864,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16872,7 +16872,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16880,7 +16880,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16888,7 +16888,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16896,7 +16896,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16904,7 +16904,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16912,7 +16912,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16920,7 +16920,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16928,7 +16928,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16936,7 +16936,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16944,7 +16944,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16952,7 +16952,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16960,7 +16960,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16968,7 +16968,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16976,7 +16976,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16984,7 +16984,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16992,7 +16992,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17000,7 +17000,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17008,7 +17008,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17016,7 +17016,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17024,7 +17024,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17032,7 +17032,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17040,7 +17040,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17048,7 +17048,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17056,7 +17056,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17064,7 +17064,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17072,7 +17072,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17080,7 +17080,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.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" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.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" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17088,7 +17088,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17096,7 +17096,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), Cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17104,100 +17104,100 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Cae = (e, t) => {
+}, B.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), wae = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, wae = (e, t) => ({
+}, Tae = (e, t) => ({
classGroupId: e,
validator: t
-}), OT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), DT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), kT = "-", AT = [], Tae = "arbitrary..", Eae = (e) => {
- let t = Oae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), OT = "-", kT = [], Eae = "arbitrary..", Dae = (e) => {
+ let t = kae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Dae(e);
- let n = e.split(kT);
- return jT(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Oae(e);
+ let n = e.split(OT);
+ return AT(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Cae(i, t) : t : i || AT;
+ return t ? i ? wae(i, t) : t : i || kT;
}
- return n[e] || AT;
+ return n[e] || kT;
}
};
-}, jT = (e, t, n) => {
+}, AT = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = jT(e, t + 1, i);
+ let n = AT(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(kT) : e.slice(t).join(kT), s = a.length;
+ let o = t === 0 ? e.join(OT) : e.slice(t).join(OT), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Dae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Oae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Tae + r : void 0;
-})(), Oae = (e) => {
+ return r ? Eae + r : void 0;
+})(), kae = (e) => {
let { theme: t, classGroups: n } = e;
- return kae(n, t);
-}, kae = (e, t) => {
- let n = OT();
+ return Aae(n, t);
+}, Aae = (e, t) => {
+ let n = DT();
for (let r in e) {
let i = e[r];
- MT(i, n, r, t);
+ jT(i, n, r, t);
}
return n;
-}, MT = (e, t, n, r) => {
+}, jT = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Aae(i, t, n, r);
+ jae(i, t, n, r);
}
-}, Aae = (e, t, n, r) => {
+}, jae = (e, t, n, r) => {
if (typeof e == "string") {
- jae(e, t, n);
+ Mae(e, t, n);
return;
}
if (typeof e == "function") {
- Mae(e, t, n, r);
+ Nae(e, t, n, r);
return;
}
- Nae(e, t, n, r);
-}, jae = (e, t, n) => {
- let r = e === "" ? t : NT(t, e);
+ Pae(e, t, n, r);
+}, Mae = (e, t, n) => {
+ let r = e === "" ? t : MT(t, e);
r.classGroupId = n;
-}, Mae = (e, t, n, r) => {
- if (Pae(e)) {
- MT(e(r), t, n, r);
+}, Nae = (e, t, n, r) => {
+ if (Fae(e)) {
+ jT(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(wae(n, e));
-}, Nae = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(Tae(n, e));
+}, Pae = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- MT(o, NT(t, a), n, r);
+ jT(o, MT(t, a), n, r);
}
-}, NT = (e, t) => {
- let n = e, r = t.split(kT), i = r.length;
+}, MT = (e, t) => {
+ let n = e, r = t.split(OT), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = OT(), n.nextPart.set(t, i)), n = i;
+ i || (i = DT(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Pae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Fae = (e) => {
+}, Fae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Iae = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -17215,19 +17215,19 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
e in n ? n[e] = t : i(e, t);
}
};
-}, PT = "!", FT = ":", Iae = [], IT = (e, t, n, r, i) => ({
+}, NT = "!", PT = ":", Lae = [], FT = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Lae = (e) => {
+}), Rae = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === FT) {
+ if (o === PT) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -17239,13 +17239,13 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(PT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(PT) && (c = s.slice(1), l = !0);
+ s.endsWith(NT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(NT) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return IT(t, l, c, u);
+ return FT(t, l, c, u);
};
if (t) {
- let e = t + FT, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : IT(Iae, !1, t, void 0, !0);
+ let e = t + PT, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : FT(Lae, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -17255,7 +17255,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
});
}
return r;
-}, Rae = (e) => {
+}, zae = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -17267,18 +17267,18 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, zae = (e) => ({
- cache: Fae(e.cacheSize),
- parseClassName: Lae(e),
- sortModifiers: Rae(e),
- postfixLookupClassGroupIds: Bae(e),
- ...Eae(e)
-}), Bae = (e) => {
+}, Bae = (e) => ({
+ cache: Iae(e.cacheSize),
+ parseClassName: Rae(e),
+ sortModifiers: zae(e),
+ postfixLookupClassGroupIds: Vae(e),
+ ...Dae(e)
+}), Vae = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Vae = /\s+/, Hae = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Vae), l = "";
+}, Hae = /\s+/, Uae = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Hae), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -17302,7 +17302,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + PT : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + NT : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -17313,34 +17313,34 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Uae = (...e) => {
+}, Wae = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = LT(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = IT(n)) && (i && (i += " "), i += r);
return i;
-}, LT = (e) => {
+}, IT = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = LT(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = IT(e[r])) && (n && (n += " "), n += t);
return n;
-}, RT = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = zae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, LT = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Bae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Hae(e, n);
+ let a = Uae(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Uae(...e));
-}, Wae = [], zT = (e) => {
- let t = (t) => t[e] || Wae;
+ return a = o, (...e) => a(Wae(...e));
+}, Gae = [], RT = (e) => {
+ let t = (t) => t[e] || Gae;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, BT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, VT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Kae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qae = /\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$/, Jae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Yae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, HT = (e) => Gae.test(e), UT = (e) => !!e && !Number.isNaN(Number(e)), WT = (e) => !!e && Number.isInteger(Number(e)), GT = (e) => e.endsWith("%") && UT(e.slice(0, -1)), KT = (e) => Kae.test(e), qT = () => !0, Zae = (e) => qae.test(e) && !Jae.test(e), JT = () => !1, Qae = (e) => Yae.test(e), $ae = (e) => Xae.test(e), eoe = (e) => !q(e) && !eE(e), toe = (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)), YT = (e) => iE(e, cE, JT), q = (e) => BT.test(e), XT = (e) => iE(e, lE, Zae), ZT = (e) => iE(e, loe, UT), noe = (e) => iE(e, dE, qT), roe = (e) => iE(e, uE, JT), QT = (e) => iE(e, oE, JT), ioe = (e) => iE(e, sE, $ae), $T = (e) => iE(e, fE, Qae), eE = (e) => VT.test(e), tE = (e) => aE(e, lE), aoe = (e) => aE(e, uE), nE = (e) => aE(e, oE), ooe = (e) => aE(e, cE), soe = (e) => aE(e, sE), rE = (e) => aE(e, fE, !0), coe = (e) => aE(e, dE, !0), iE = (e, t, n) => {
- let r = BT.exec(e);
+}, zT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, BT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jae = /\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$/, Yae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, VT = (e) => Kae.test(e), HT = (e) => !!e && !Number.isNaN(Number(e)), UT = (e) => !!e && Number.isInteger(Number(e)), WT = (e) => e.endsWith("%") && HT(e.slice(0, -1)), GT = (e) => qae.test(e), KT = () => !0, Qae = (e) => Jae.test(e) && !Yae.test(e), qT = () => !1, $ae = (e) => Xae.test(e), eoe = (e) => Zae.test(e), toe = (e) => !q(e) && !QT(e), noe = (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)), roe = (e) => nE(e, oE, qT), q = (e) => zT.test(e), JT = (e) => nE(e, sE, Qae), YT = (e) => nE(e, doe, HT), ioe = (e) => nE(e, lE, KT), aoe = (e) => nE(e, cE, qT), XT = (e) => nE(e, iE, qT), ooe = (e) => nE(e, aE, eoe), ZT = (e) => nE(e, uE, $ae), QT = (e) => BT.test(e), $T = (e) => rE(e, sE), soe = (e) => rE(e, cE), eE = (e) => rE(e, iE), coe = (e) => rE(e, oE), loe = (e) => rE(e, aE), tE = (e) => rE(e, uE, !0), uoe = (e) => rE(e, lE, !0), nE = (e, t, n) => {
+ let r = zT.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, aE = (e, t, n = !1) => {
- let r = VT.exec(e);
+}, rE = (e, t, n = !1) => {
+ let r = BT.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, oE = (e) => e === "position" || e === "percentage", sE = (e) => e === "image" || e === "url", cE = (e) => e === "length" || e === "size" || e === "bg-size", lE = (e) => e === "length", loe = (e) => e === "number", uE = (e) => e === "family-name", dE = (e) => e === "number" || e === "weight", fE = (e) => e === "shadow", pE = () => {
- let e = zT("color"), t = zT("font"), n = zT("text"), r = zT("font-weight"), i = zT("tracking"), a = zT("leading"), o = zT("breakpoint"), s = zT("container"), c = zT("spacing"), l = zT("radius"), u = zT("shadow"), d = zT("inset-shadow"), f = zT("text-shadow"), p = zT("drop-shadow"), m = zT("blur"), h = zT("perspective"), g = zT("aspect"), _ = zT("ease"), v = zT("animate"), y = () => [
+}, iE = (e) => e === "position" || e === "percentage", aE = (e) => e === "image" || e === "url", oE = (e) => e === "length" || e === "size" || e === "bg-size", sE = (e) => e === "length", doe = (e) => e === "number", cE = (e) => e === "family-name", lE = (e) => e === "number" || e === "weight", uE = (e) => e === "shadow", dE = () => {
+ let e = RT("color"), t = RT("font"), n = RT("text"), r = RT("font-weight"), i = RT("tracking"), a = RT("leading"), o = RT("breakpoint"), s = RT("container"), c = RT("spacing"), l = RT("radius"), u = RT("shadow"), d = RT("inset-shadow"), f = RT("text-shadow"), p = RT("drop-shadow"), m = RT("blur"), h = RT("perspective"), g = RT("aspect"), _ = RT("ease"), v = RT("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -17365,7 +17365,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"left-bottom"
], x = () => [
...b(),
- eE,
+ QT,
q
], S = () => [
"auto",
@@ -17378,42 +17378,42 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"contain",
"none"
], w = () => [
- eE,
+ QT,
q,
c
], T = () => [
- HT,
+ VT,
"full",
"auto",
...w()
], E = () => [
- WT,
+ UT,
"none",
"subgrid",
- eE,
+ QT,
q
], D = () => [
"auto",
{ span: [
"full",
- WT,
- eE,
+ UT,
+ QT,
q
] },
- WT,
- eE,
+ UT,
+ QT,
q
], O = () => [
- WT,
+ UT,
"auto",
- eE,
+ QT,
q
], k = () => [
"auto",
"min",
"max",
"fr",
- eE,
+ QT,
q
], A = () => [
"start",
@@ -17434,7 +17434,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- HT,
+ VT,
"auto",
"full",
"dvw",
@@ -17449,7 +17449,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
...w()
], P = () => [
s,
- HT,
+ VT,
"screen",
"full",
"dvw",
@@ -17460,7 +17460,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"fit",
...w()
], ee = () => [
- HT,
+ VT,
"screen",
"full",
"lh",
@@ -17473,13 +17473,13 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
...w()
], F = () => [
e,
- eE,
+ QT,
q
], I = () => [
...b(),
- nE,
- QT,
- { position: [eE, q] }
+ eE,
+ XT,
+ { position: [QT, q] }
], te = () => ["no-repeat", { repeat: [
"",
"x",
@@ -17490,25 +17490,25 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"auto",
"cover",
"contain",
- ooe,
- YT,
- { size: [eE, q] }
+ coe,
+ roe,
+ { size: [QT, q] }
], re = () => [
- GT,
- tE,
- XT
+ WT,
+ $T,
+ JT
], ie = () => [
"",
"none",
"full",
l,
- eE,
+ QT,
q
], ae = () => [
"",
- UT,
- tE,
- XT
+ HT,
+ $T,
+ JT
], oe = () => [
"solid",
"dashed",
@@ -17532,32 +17532,32 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"color",
"luminosity"
], ce = () => [
- UT,
- GT,
- nE,
- QT
+ HT,
+ WT,
+ eE,
+ XT
], le = () => [
"",
"none",
m,
- eE,
+ QT,
q
], ue = () => [
"none",
- UT,
- eE,
+ HT,
+ QT,
q
], L = () => [
"none",
- UT,
- eE,
+ HT,
+ QT,
q
], de = () => [
- UT,
- eE,
+ HT,
+ QT,
q
], fe = () => [
- HT,
+ VT,
"full",
...w()
];
@@ -17571,17 +17571,17 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"bounce"
],
aspect: ["video"],
- blur: [KT],
- breakpoint: [KT],
- color: [qT],
- container: [KT],
- "drop-shadow": [KT],
+ blur: [GT],
+ breakpoint: [GT],
+ color: [KT],
+ container: [GT],
+ "drop-shadow": [GT],
ease: [
"in",
"out",
"in-out"
],
- font: [eoe],
+ font: [toe],
"font-weight": [
"thin",
"extralight",
@@ -17593,7 +17593,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"extrabold",
"black"
],
- "inset-shadow": [KT],
+ "inset-shadow": [GT],
leading: [
"none",
"tight",
@@ -17610,11 +17610,11 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"distant",
"none"
],
- radius: [KT],
- shadow: [KT],
- spacing: ["px", UT],
- text: [KT],
- "text-shadow": [KT],
+ radius: [GT],
+ shadow: [GT],
+ spacing: ["px", HT],
+ text: [GT],
+ "text-shadow": [GT],
tracking: [
"tighter",
"tight",
@@ -17628,9 +17628,9 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
aspect: [{ aspect: [
"auto",
"square",
- HT,
+ VT,
q,
- eE,
+ QT,
g
] }],
container: ["container"],
@@ -17638,15 +17638,15 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"",
"normal",
"size",
- eE,
+ QT,
q
] }],
- "container-named": [toe],
+ "container-named": [noe],
columns: [{ columns: [
- UT,
+ HT,
"auto",
q,
- eE,
+ QT,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -17743,13 +17743,13 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"collapse"
],
z: [{ z: [
- WT,
+ UT,
"auto",
- eE,
+ QT,
q
] }],
basis: [{ basis: [
- HT,
+ VT,
"full",
"auto",
s,
@@ -17767,8 +17767,8 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"wrap-reverse"
] }],
flex: [{ flex: [
- UT,
HT,
+ VT,
"auto",
"initial",
"none",
@@ -17776,22 +17776,22 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
grow: [{ grow: [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
shrink: [{ shrink: [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
order: [{ order: [
- WT,
+ UT,
"first",
"last",
"none",
- eE,
+ QT,
q
] }],
"grid-cols": [{ "grid-cols": E() }],
@@ -17899,15 +17899,15 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"font-size": [{ text: [
"base",
n,
- tE,
- XT
+ $T,
+ JT
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- coe,
- noe
+ uoe,
+ ioe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17919,12 +17919,12 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"expanded",
"extra-expanded",
"ultra-expanded",
- GT,
+ WT,
q
] }],
"font-family": [{ font: [
+ soe,
aoe,
- roe,
t
] }],
"font-features": [{ "font-features": [q] }],
@@ -17936,14 +17936,14 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- eE,
+ QT,
q
] }],
"line-clamp": [{ "line-clamp": [
- UT,
+ HT,
"none",
- eE,
- ZT
+ QT,
+ YT
] }],
leading: [{ leading: [
"none",
@@ -17952,7 +17952,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
"list-image": [{ "list-image": [
"none",
- eE,
+ QT,
q
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
@@ -17960,7 +17960,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"disc",
"decimal",
"none",
- eE,
+ QT,
q
] }],
"text-alignment": [{ text: [
@@ -17981,17 +17981,17 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- UT,
+ HT,
"from-font",
"auto",
- eE,
- XT
+ QT,
+ JT
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- UT,
+ HT,
"auto",
- eE,
+ QT,
q
] }],
"text-transform": [
@@ -18013,8 +18013,8 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- WT,
- eE,
+ UT,
+ QT,
q
] }],
"vertical-align": [{ align: [
@@ -18026,7 +18026,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"text-bottom",
"sub",
"super",
- eE,
+ QT,
q
] }],
whitespace: [{ whitespace: [
@@ -18055,7 +18055,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
content: [{ content: [
"none",
- eE,
+ QT,
q
] }],
"bg-attachment": [{ bg: [
@@ -18091,24 +18091,24 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"l",
"tl"
] },
- WT,
- eE,
+ UT,
+ QT,
q
],
radial: [
"",
- eE,
+ QT,
q
],
conic: [
"",
- WT,
- eE,
+ UT,
+ QT,
q
]
},
- soe,
- ioe
+ loe,
+ ooe
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: re() }],
@@ -18175,15 +18175,15 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"outline-w": [{ outline: [
"",
- UT,
- tE,
- XT
+ HT,
+ $T,
+ JT
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -18191,34 +18191,34 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"inner",
"none",
u,
- rE,
- $T
+ tE,
+ ZT
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- rE,
- $T
+ tE,
+ ZT
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [UT, XT] }],
+ "ring-offset-w": [{ "ring-offset": [HT, JT] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- rE,
- $T
+ tE,
+ ZT
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"mix-blend": [{ "mix-blend": [
@@ -18241,7 +18241,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [UT] }],
+ "mask-image-linear-pos": [{ "mask-linear": [HT] }],
"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() }],
@@ -18270,7 +18270,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"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": [eE, q] }],
+ "mask-image-radial": [{ "mask-radial": [QT, q] }],
"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() }],
@@ -18281,7 +18281,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [UT] }],
+ "mask-image-conic-pos": [{ "mask-conic": [HT] }],
"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() }],
@@ -18305,110 +18305,110 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- eE,
+ QT,
q
] }],
filter: [{ filter: [
"",
"none",
- eE,
+ QT,
q
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
contrast: [{ contrast: [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- rE,
- $T
+ tE,
+ ZT
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"hue-rotate": [{ "hue-rotate": [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
invert: [{ invert: [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
saturate: [{ saturate: [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
sepia: [{ sepia: [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- eE,
+ QT,
q
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- UT,
- eE,
+ HT,
+ QT,
q
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
@@ -18425,38 +18425,38 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"shadow",
"transform",
"none",
- eE,
+ QT,
q
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- UT,
+ HT,
"initial",
- eE,
+ QT,
q
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- eE,
+ QT,
q
] }],
delay: [{ delay: [
- UT,
- eE,
+ HT,
+ QT,
q
] }],
animate: [{ animate: [
"none",
v,
- eE,
+ QT,
q
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- eE,
+ QT,
q
] }],
"perspective-origin": [{ "perspective-origin": x() }],
@@ -18473,7 +18473,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"skew-x": [{ "skew-x": de() }],
"skew-y": [{ "skew-y": de() }],
transform: [{ transform: [
- eE,
+ QT,
q,
"",
"none",
@@ -18488,8 +18488,8 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"translate-z": [{ "translate-z": fe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- WT,
- eE,
+ UT,
+ QT,
q
] }],
accent: [{ accent: F() }],
@@ -18540,7 +18540,7 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"nwse-resize",
"zoom-in",
"zoom-out",
- eE,
+ QT,
q
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
@@ -18627,15 +18627,15 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"scroll",
"contents",
"transform",
- eE,
+ QT,
q
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- UT,
- tE,
- XT,
- ZT
+ HT,
+ $T,
+ JT,
+ YT
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -18893,16 +18893,16 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"selection"
]
};
-}, uoe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (mE(e, "cacheSize", t), mE(e, "prefix", n), mE(e, "experimentalParseClassName", r), hE(e.theme, a.theme), hE(e.classGroups, a.classGroups), hE(e.conflictingClassGroups, a.conflictingClassGroups), hE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), mE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), mE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), gE(e.theme, i.theme), gE(e.classGroups, i.classGroups), gE(e.conflictingClassGroups, i.conflictingClassGroups), gE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), _E(e, i, "postfixLookupClassGroups"), _E(e, i, "orderSensitiveModifiers"), e), mE = (e, t, n) => {
+}, foe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (fE(e, "cacheSize", t), fE(e, "prefix", n), fE(e, "experimentalParseClassName", r), pE(e.theme, a.theme), pE(e.classGroups, a.classGroups), pE(e.conflictingClassGroups, a.conflictingClassGroups), pE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), fE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), fE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), mE(e.theme, i.theme), mE(e.classGroups, i.classGroups), mE(e.conflictingClassGroups, i.conflictingClassGroups), mE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), hE(e, i, "postfixLookupClassGroups"), hE(e, i, "orderSensitiveModifiers"), e), fE = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, hE = (e, t) => {
- if (t) for (let n in t) mE(e, n, t[n]);
-}, gE = (e, t) => {
- if (t) for (let n in t) _E(e, t, n);
-}, _E = (e, t, n) => {
+}, pE = (e, t) => {
+ if (t) for (let n in t) fE(e, n, t[n]);
+}, mE = (e, t) => {
+ if (t) for (let n in t) hE(e, t, n);
+}, hE = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, doe = (e, ...t) => typeof e == "function" ? RT(pE, e, ...t) : RT(() => uoe(pE(), e), ...t), foe = [
+}, poe = (e, ...t) => typeof e == "function" ? LT(dE, e, ...t) : LT(() => foe(dE(), e), ...t), moe = [
"large-title",
"display-1",
"display-2",
@@ -18916,18 +18916,18 @@ var Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"body-2",
"caption-1",
"caption-2"
-], poe = [
+], hoe = [
"regular",
"medium",
"semibold",
"bold"
-], vE = doe({ extend: { classGroups: { "font-size": [{ text: foe.flatMap((e) => poe.map((t) => `${e}-${t}`)) }] } } });
-function yE(e) {
+], gE = poe({ extend: { classGroups: { "font-size": [{ text: moe.flatMap((e) => hoe.map((t) => `${e}-${t}`)) }] } } });
+function _E(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var bE = yE({
+var vE = _E({
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",
@@ -18946,16 +18946,16 @@ var bE = yE({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function xE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function yE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
ref: r,
- className: vE(bE.base, bE.variant[e], bE.color[t], n),
+ className: gE(vE.base, vE.variant[e], vE.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var SE = yE({
+var bE = _E({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -19014,40 +19014,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, V.jsxs)("button", {
ref: c,
type: s,
- className: vE(SE.base, SE.size[t], SE.variant[e], n && SE.iconOnlySize[t], o),
+ className: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: SE.icon[t],
+ className: bE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: SE.label[t],
+ className: bE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {
- className: SE.icon[t],
+ className: bE.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function CE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function xE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, V.jsxs)("a", {
ref: s,
- className: vE(SE.base, SE.size[t], SE.variant[e], n && SE.iconOnlySize[t], o),
+ className: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: SE.icon[t],
+ className: bE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: SE.label[t],
+ className: bE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {
- className: SE.icon[t],
+ className: bE.icon[t],
"aria-hidden": !0
}) : null
]
@@ -19055,47 +19055,47 @@ function CE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/components/card.tsx
-var moe = "min-w-0", hoe = {
+var goe = "min-w-0", _oe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, goe = {
+}, voe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, _oe = {
+}, yoe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, voe = {
+}, boe = {
none: "",
default: "p-5"
-}, yoe = "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", boe = "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 wE(e = {}) {
+}, xoe = "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", Soe = "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 SE(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 [
- moe,
- hoe[t],
- goe[s],
- voe[n],
- a ? _oe[a] : "",
- r ? yoe : "",
- i ? boe : "",
+ goe,
+ _oe[t],
+ voe[s],
+ boe[n],
+ a ? yoe[a] : "",
+ r ? xoe : "",
+ i ? Soe : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var xoe = {
+var Coe = {
page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function TE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function CE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${xoe[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${Coe[i]}`,
children: [
a ? /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
@@ -19125,7 +19125,7 @@ function TE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function EE({ label: e, inline: t = !1 }) {
+function wE({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, V.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -19191,7 +19191,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function DE({ children: e }) {
+function TE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -19199,21 +19199,21 @@ function DE({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var OE = 100, Soe = .4;
-function kE({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * OE;
+var EE = 100, woe = .4;
+function DE({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * EE;
return /* @__PURE__ */ (0, V.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${OE} 1`,
+ viewBox: `0 0 ${EE} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, V.jsx)("rect", {
- width: OE,
+ width: EE,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -19224,7 +19224,7 @@ function kE({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, V.jsx)("rect", {
x: a(e),
- width: Soe,
+ width: woe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -19241,7 +19241,7 @@ function X(e) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function AE(e = "") {
+function OE(e = "") {
let t = (0, B.useRef)(null), [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(e);
(0, B.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -19267,21 +19267,21 @@ function AE(e = "") {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Coe({ className: e, children: t }) {
+function Toe({ className: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: vE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: gE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function jE({ className: e, children: t }) {
+function kE({ className: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
- className: vE("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: gE("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function ME({ label: e, description: t, children: n }) {
+function AE({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: vE("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: gE("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, V.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, V.jsx)("p", {
@@ -19296,7 +19296,7 @@ function ME({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var NE = yE({
+var jE = _E({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -19320,15 +19320,15 @@ var NE = yE({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function PE({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = vE(NE.base, NE.size[t], NE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+function ME({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = gE(jE.base, jE.size[t], jE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
n ? /* @__PURE__ */ (0, V.jsx)(n, {
- className: NE.icon[t],
+ className: jE.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, V.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: NE.icon[t],
+ className: jE.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -19355,14 +19355,14 @@ function PE({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function FE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function NE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(jE, { children: e })
+ children: /* @__PURE__ */ (0, V.jsx)(kE, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, V.jsx)(jE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Coe, { children: i })] });
+ }) : /* @__PURE__ */ (0, V.jsx)(kE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Toe, { children: i })] });
return r ? /* @__PURE__ */ (0, V.jsx)("form", {
id: t,
"aria-label": e,
@@ -19377,13 +19377,13 @@ function FE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function IE({ children: e }) {
+function PE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function LE({ divided: e = !1, children: t }) {
+function FE({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -19392,7 +19392,7 @@ function LE({ divided: e = !1, children: t }) {
children: t
});
}
-function RE({ status: e, children: t }) {
+function IE({ status: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -19401,34 +19401,34 @@ function RE({ status: e, children: t }) {
}) : null, t]
});
}
-function zE({ role: e, children: t }) {
+function LE({ role: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function BE({ children: e }) {
+function RE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function VE({ children: e }) {
+function zE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function HE({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, V.jsx)(PE, {
+function BE({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, V.jsx)(ME, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: _T,
+ trailingIcon: gT,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -19436,13 +19436,13 @@ function HE({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function UE({ children: e }) {
+function VE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function WE({ term: e, children: t }) {
+function HE({ term: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, V.jsx)("dt", {
@@ -19454,7 +19454,7 @@ function WE({ term: e, children: t }) {
})]
});
}
-function GE({ summary: e, defaultOpen: t = !1, children: n }) {
+function UE({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, B.useId)(), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(t);
return /* @__PURE__ */ (0, V.jsxs)("details", {
ref: (e) => {
@@ -19467,7 +19467,7 @@ function GE({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (We(i.current, a.current, !s), c(!s));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, V.jsx)(uT, {
+ children: [/* @__PURE__ */ (0, V.jsx)(lT, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -19482,7 +19482,7 @@ function GE({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function woe({ name: e }) {
+function Eoe({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -19491,22 +19491,22 @@ function woe({ name: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function KE({ mark: e }) {
+function WE({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, V.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, V.jsx)(woe, { name: e });
+ }) : /* @__PURE__ */ (0, V.jsx)(Eoe, { name: e });
}
//#endregion
//#region src/react/activity/tasks.ts
-var qE = "/api/tasks", JE = ["tasks"], Toe = (e, t) => G(`${qE}?${new URLSearchParams({
+var GE = "/api/tasks", KE = ["tasks"], Doe = (e, t) => G(`${GE}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function YE(...e) {
+function qE(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -19514,26 +19514,26 @@ function YE(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Eoe = 2e3, Doe = 1e4, Ooe = (e) => e?.running.length ? Eoe : Doe, XE = (e) => G(qE, e);
-async function koe(e) {
+var Ooe = 2e3, koe = 1e4, Aoe = (e) => e?.running.length ? Ooe : koe, JE = (e) => G(GE, e);
+async function joe(e) {
await z.fetchQuery({
- queryKey: JE,
- queryFn: () => XE(e)
+ queryKey: KE,
+ queryFn: () => JE(e)
});
}
-var ZE = {
+var YE = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Aoe = {
+}, Moe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, joe = (e) => Aoe[e] || e, Moe = {
+}, Noe = (e) => Moe[e] || e, Poe = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -19563,7 +19563,7 @@ var ZE = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function Noe(e) {
+function Foe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -19572,7 +19572,7 @@ function Noe(e) {
}
return t;
}
-function Poe(e, t) {
+function Ioe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -19594,19 +19594,19 @@ function Poe(e, t) {
}
return n;
}
-var Foe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), QE = (e) => e.status === "pending" || e.status === "running";
-function Ioe(e) {
+var Loe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XE = (e) => e.status === "pending" || e.status === "running";
+function Roe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
- return [r, e.error || tD(e.result_summary) || (QE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || $E(e.result_summary) || (XE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function $E(e) {
+function ZE(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function eD(e) {
+function QE(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -19616,7 +19616,7 @@ function eD(e) {
minute: "2-digit"
});
}
-var Loe = /* @__PURE__ */ new Set([
+var zoe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -19625,22 +19625,22 @@ var Loe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function tD(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Loe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Moe[e] || e} ${t}`).join(" · ");
+function $E(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !zoe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Poe[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var nD = "/api/downloads", rD = ["downloads"], Roe = "/api/downloads/cancel", iD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, zoe = {
+var eD = "/api/downloads", tD = ["downloads"], Boe = "/api/downloads/cancel", nD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Voe = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, Boe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, aD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function Voe() {
- let e = (0, B.useId)(), t = TS({
- queryKey: rD,
- queryFn: ({ signal: e }) => G(`${nD}?limit=50`, e),
- refetchInterval: (e) => iD(e.state.data)
+}, Hoe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function Uoe() {
+ let e = (0, B.useId)(), t = wS({
+ queryKey: tD,
+ queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),
+ refetchInterval: (e) => nD(e.state.data)
}), n = t.data;
return !n?.tasks.length && !t.error ? null : /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-labelledby": e,
@@ -19658,7 +19658,7 @@ function Voe() {
n?.tasks.length ? /* @__PURE__ */ (0, V.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Hoe, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Woe, {
task: e,
writable: n.available
}, e.id))
@@ -19666,16 +19666,16 @@ function Voe() {
]
});
}
-function Hoe({ task: e, writable: t }) {
- let n = lS(), r = AE(), [i, a] = (0, B.useState)(!1), o = aD(e), s = e.state === "failed", c = [
+function Woe({ task: e, writable: t }) {
+ let n = cS(), r = OE(), [i, a] = (0, B.useState)(!1), o = rD(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- eD(e.submitted_at)
+ QE(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: rD });
+ n.invalidateQueries({ queryKey: tD });
}, u = () => {
- r.run("cancel", (t) => K(Roe, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => K(Boe, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -19685,14 +19685,14 @@ function Hoe({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => K(nD, t, "POST", e), l);
+ r.run("resubmit", (e) => K(eD, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
};
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: wE({
+ className: SE({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -19704,9 +19704,9 @@ function Hoe({ task: e, writable: t }) {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: Boe(e)
- }), /* @__PURE__ */ (0, V.jsx)(xE, {
- color: zoe[e.state] ?? "neutral",
+ children: Hoe(e)
+ }), /* @__PURE__ */ (0, V.jsx)(yE, {
+ color: Voe[e.state] ?? "neutral",
children: e.state_label
})]
}),
@@ -19714,7 +19714,7 @@ function Hoe({ task: e, writable: t }) {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: c
}),
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(kE, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(DE, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -19723,7 +19723,7 @@ function Hoe({ task: e, writable: t }) {
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -19761,23 +19761,23 @@ function Hoe({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Uoe = {
+var Goe = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function oD({ status: e }) {
- return /* @__PURE__ */ (0, V.jsx)(xE, {
- color: Uoe[e] ?? "neutral",
- children: joe(e)
+function iD({ status: e }) {
+ return /* @__PURE__ */ (0, V.jsx)(yE, {
+ color: Goe[e] ?? "neutral",
+ children: Noe(e)
});
}
-function Woe({ rows: e }) {
+function Koe({ rows: e }) {
return /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Ioe(e);
+ let t = Roe(e);
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -19787,7 +19787,7 @@ function Woe({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, V.jsx)(oD, { status: e.status }),
+ /* @__PURE__ */ (0, V.jsx)(iD, { status: e.status }),
t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -19797,12 +19797,12 @@ function Woe({ rows: e }) {
})
});
}
-function sD({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: wE({
+ className: SE({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -19816,7 +19816,7 @@ function sD({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, V.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, V.jsx)(oD, { status: e.status })]
+ }), /* @__PURE__ */ (0, V.jsx)(iD, { status: e.status })]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -19825,7 +19825,7 @@ function sD({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, V.jsx)(Woe, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, V.jsx)(Koe, { rows: i }) : null,
r ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, V.jsx)("p", {
@@ -19836,15 +19836,15 @@ function sD({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Goe({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = $E(e.elapsed_seconds), o = [ZE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, V.jsx)(sD, {
+function qoe({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = ZE(e.elapsed_seconds), o = [YE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, V.jsx)(kE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(DE, {
label: i,
value: r,
max: n
@@ -19859,20 +19859,20 @@ function Goe({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, V.jsx)(EE, { label: i })
+ }) : /* @__PURE__ */ (0, V.jsx)(wE, { label: i })
});
}
-function cD({ run: e, followups: t, runs: n }) {
- let r = tD(e.result_summary), i = $E(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- ZE[e.trigger] || e.trigger,
+function oD({ run: e, followups: t, runs: n }) {
+ let r = $E(e.result_summary), i = ZE(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ YE[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${eD(a.finished_at)} – ${eD(e.finished_at)}`
+ `${QE(a.finished_at)} – ${QE(e.finished_at)}`
] : [
- ZE[e.trigger] || e.trigger,
- eD(e.finished_at),
+ YE[e.trigger] || e.trigger,
+ QE(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, V.jsx)(sD, {
+ return /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
meta: o,
footer: e.error,
@@ -19883,7 +19883,7 @@ function cD({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function lD({ title: e, children: t }) {
+function sD({ title: e, children: t }) {
let n = (0, B.useId)();
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-labelledby": n,
@@ -19895,41 +19895,41 @@ function lD({ title: e, children: t }) {
}), t]
});
}
-function uD({ live: e = !1, children: t }) {
+function cD({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Koe() {
- let e = TS({
- queryKey: JE,
- queryFn: ({ signal: e }) => XE(e),
- refetchInterval: (e) => Ooe(e.state.data)
+function Joe() {
+ let e = wS({
+ queryKey: KE,
+ queryFn: ({ signal: e }) => JE(e),
+ refetchInterval: (e) => Aoe(e.state.data)
}), t = e.data, n = t?.finished, [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(n);
- n !== s && (c(n), r.length && s && i(YE(r, s)));
- let l = OS({
- mutationFn: ({ oldest: e }) => Toe(e),
+ n !== s && (c(n), r.length && s && i(qE(r, s)));
+ let l = DS({
+ mutationFn: ({ oldest: e }) => Doe(e),
onSuccess: (e, { shown: t }) => {
- i((n) => YE(n, t, e.finished || [])), o(!!e.finished_has_more);
+ i((n) => qE(n, t, e.finished || [])), o(!!e.finished_has_more);
}
}), u = e.error ? W(e.error) : "";
- if (!t) return /* @__PURE__ */ (0, V.jsx)(DE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!t) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: u || "读取任务中心失败"
}) });
- let d = YE(t.finished || [], r), f = [
+ let d = qE(t.finished || [], r), f = [
...t.running || [],
...t.skipped || [],
...d
- ], p = Noe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
+ ], p = Foe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
!l.isPending && _ && l.mutate({
oldest: _,
shown: d
});
- }, b = g.filter((e) => p.get(e.id)?.some(QE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Poe(C, (e) => Foe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;
- return /* @__PURE__ */ (0, V.jsxs)(DE, { children: [
+ }, b = g.filter((e) => p.get(e.id)?.some(XE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Ioe(C, (e) => Loe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;
+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
u ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: u
@@ -19938,20 +19938,20 @@ function Koe() {
tone: "warning",
children: t.message || "账本上还没有任务中心的表"
}) : null,
- T ? /* @__PURE__ */ (0, V.jsx)(TE, {
+ T ? /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: bT,
+ icon: yT,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(lD, {
+ /* @__PURE__ */ (0, V.jsx)(sD, {
title: "正在进行",
- children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(uD, {
+ children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(cD, {
live: !0,
- children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(Goe, {
+ children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(qoe, {
run: e,
followups: p.get(e.id)
- }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(cD, {
+ }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {
run: e,
followups: p.get(e.id)
}, e.id))]
@@ -19960,17 +19960,17 @@ function Koe() {
children: "没有任务在跑。"
})
}),
- S.length ? /* @__PURE__ */ (0, V.jsx)(lD, {
+ S.length ? /* @__PURE__ */ (0, V.jsx)(sD, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, V.jsx)(uD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(cD, {
+ children: /* @__PURE__ */ (0, V.jsx)(cD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {
run: e,
followups: p.get(e.id)
}, e.id)) })
}) : null,
- C.length || v ? /* @__PURE__ */ (0, V.jsxs)(lD, {
+ C.length || v ? /* @__PURE__ */ (0, V.jsxs)(sD, {
title: "最近完成",
children: [
- C.length ? /* @__PURE__ */ (0, V.jsx)(uD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(cD, {
+ C.length ? /* @__PURE__ */ (0, V.jsx)(cD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(oD, {
run: e,
runs: t,
followups: p.get(e.id)
@@ -19982,7 +19982,7 @@ function Koe() {
v ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: cT,
+ leadingIcon: sT,
className: "self-start",
...X(l.isPending),
onClick: y,
@@ -19991,12 +19991,12 @@ function Koe() {
]
}) : null
] }),
- /* @__PURE__ */ (0, V.jsx)(Voe, {})
+ /* @__PURE__ */ (0, V.jsx)(Uoe, {})
] });
}
//#endregion
//#region src/react/components/use-stuck.ts
-function dD(e) {
+function lD(e) {
(0, B.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -20014,9 +20014,9 @@ function dD(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function qoe({ title: e, children: t }) {
+function Yoe({ title: e, children: t }) {
let n = (0, B.useRef)(null);
- return dD(n), /* @__PURE__ */ (0, V.jsxs)("div", {
+ return lD(n), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -20029,52 +20029,52 @@ function qoe({ title: e, children: t }) {
}), t]
});
}
-function fD({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function uD({ 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, B.useRef)(null);
- return dD(d), /* @__PURE__ */ (0, V.jsxs)("div", {
+ return lD(d), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: vE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: gE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
/* @__PURE__ */ (0, V.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: vE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: gE("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, V.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: vE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: gE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var Joe = "flex h-7.5 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 pD({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Xoe = "flex h-7.5 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 dD({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: vE(Joe, r),
+ className: gE(Xoe, r),
onClick: n,
children: e
});
}
-var Yoe = "h-7.5 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 mD({ children: e, onPress: t, busy: n = !1 }) {
+var Zoe = "h-7.5 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 fD({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Yoe,
+ className: Zoe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -20085,7 +20085,7 @@ function mD({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-function Xoe(e, t, n) {
+function Qoe(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;
@@ -20109,11 +20109,11 @@ function Xoe(e, t, n) {
h: e.offsetHeight
};
}
-function hD(e, t, n, r, { axis: i = "x" } = {}) {
+function pD(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, B.useRef)(null), o = (0, B.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 ? Xoe(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Qoe(u, l, i) : null;
if (!d || !d.w) {
s.hidden = !0;
return;
@@ -20155,12 +20155,12 @@ function hD(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var gD = Symbol("default");
-function _D({ values: e, children: t }) {
+var mD = Symbol("default");
+function hD({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ B.createElement(n.Provider, { value: r }, t);
return t;
}
-function vD(e) {
+function gD(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, B.useMemo)(() => {
let e, l, u;
@@ -20194,11 +20194,11 @@ function vD(e) {
c
]);
}
-function yD(e, t) {
+function _D(e, t) {
let n = (0, B.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || gD;
+ let e = t || mD;
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}.`);
@@ -20207,8 +20207,8 @@ function yD(e, t) {
}
return n;
}
-function bD(e, t, n) {
- let { ref: r, ...i } = yD(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(i, e);
+function vD(e, t, n) {
+ let { ref: r, ...i } = _D(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -20226,7 +20226,7 @@ function bD(e, t, n) {
...e.style
}), [o, a];
}
-function xD(e = !0) {
+function yD(e = !0) {
let [t, n] = (0, B.useState)(e), r = (0, B.useRef)(!1), i = (0, B.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -20234,12 +20234,12 @@ function xD(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function SD(e) {
+function bD(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Zoe(e, t, n) {
+function $oe(e, t, n) {
let { render: r, ...i } = t, a = (0, B.useRef)(null), o = (0, B.useMemo)(() => mh(n, a), [n, a]);
Hp(() => {}, [e, r]);
let s = {
@@ -20248,19 +20248,19 @@ function Zoe(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ B.createElement(e, s);
}
-var CD = {}, wD = new Proxy({}, { get(e, t) {
+var xD = {}, SD = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = CD[t];
- return n || (n = /*#__PURE__*/ (0, B.forwardRef)(Zoe.bind(null, t)), CD[t] = n), n;
-} }), TD = /*#__PURE__*/ (0, B.createContext)(null), ED = /*#__PURE__*/ (0, B.createContext)(null), DD = /*#__PURE__*/ (0, B.createContext)(null), OD = {
+ let n = xD[t];
+ return n || (n = /*#__PURE__*/ (0, B.forwardRef)($oe.bind(null, t)), xD[t] = n), n;
+} }), CD = /*#__PURE__*/ (0, B.createContext)(null), wD = /*#__PURE__*/ (0, B.createContext)(null), TD = /*#__PURE__*/ (0, B.createContext)(null), ED = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return kD(e, null, t);
+ return DD(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return kD(e, t, n);
+ return DD(e, t, n);
}
};
-function kD(e, t, n) {
+function DD(e, t, n) {
return dp({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -20271,11 +20271,11 @@ function kD(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Qoe(e, t, n));
+ }), r, ese(e, t, n));
}
});
}
-function Qoe(e, t, n) {
+function ese(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);
@@ -20294,25 +20294,25 @@ function Qoe(e, t, n) {
}
return s;
}
-var AD = /*#__PURE__*/ (0, B.createContext)(OD);
-function jD(e) {
+var OD = /*#__PURE__*/ (0, B.createContext)(ED);
+function kD(e) {
return (0, B.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var MD = /*#__PURE__*/ (0, B.createContext)({}), $oe = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = bD(e, t, MD);
- let { elementType: n = "label", ...r } = e, i = wD[n];
+var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = vD(e, t, AD);
+ let { elementType: n = "label", ...r } = e, i = SD[n];
return /*#__PURE__*/ B.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), ese = /*#__PURE__*/ (0, B.createContext)(null), ND = /*#__PURE__*/ (0, B.createContext)({}), PD = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = bD(e, t, ND);
+}), nse = /*#__PURE__*/ (0, B.createContext)(null), jD = /*#__PURE__*/ (0, B.createContext)({}), MD = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = vD(e, t, jD);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Aee(e, t);
- i = nse(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = iy(e), { hoverProps: l, isHovered: u } = cy({
+ i = ise(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ry(e), { hoverProps: l, isHovered: u } = sy({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -20322,7 +20322,7 @@ var MD = /*#__PURE__*/ (0, B.createContext)({}), $oe = /*#__PURE__*/ Bh(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = vD({
+ }, f = gD({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -20339,7 +20339,7 @@ var MD = /*#__PURE__*/ (0, B.createContext)({}), $oe = /*#__PURE__*/ Bh(function
p
]);
let _ = Eg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ B.createElement(wD.button, {
+ return delete _.onClick, /*#__PURE__*/ B.createElement(SD.button, {
...U(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -20353,62 +20353,62 @@ var MD = /*#__PURE__*/ (0, B.createContext)({}), $oe = /*#__PURE__*/ Bh(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ B.createElement(ese.Provider, { value: { id: m } }, f.children));
-}), tse = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function nse(e, t) {
+ }, /*#__PURE__*/ B.createElement(nse.Provider, { value: { id: m } }, f.children));
+}), rse = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function ise(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !tse.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !rse.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 FD = /*#__PURE__*/ (0, B.createContext)({}), ID = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = bD(e, t, FD);
- let { children: n, level: r = 3, className: i, ...a } = e, o = wD[`h${r}`];
+var ND = /*#__PURE__*/ (0, B.createContext)({}), PD = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = vD(e, t, ND);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = SD[`h${r}`];
return /*#__PURE__*/ B.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), LD = /*#__PURE__*/ (0, B.createContext)({}), rse = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = bD(e, t, LD);
- let { elementType: n = "span", ...r } = e, i = wD[n];
+}), FD = /*#__PURE__*/ (0, B.createContext)({}), ase = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = vD(e, t, FD);
+ let { elementType: n = "span", ...r } = e, i = SD[n];
return /*#__PURE__*/ B.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), RD = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null), BD = /*#__PURE__*/ (0, B.createContext)(null), VD = /*#__PURE__*/ (0, B.createContext)(null), ise = /*#__PURE__*/ (0, B.createContext)(null), HD = /*#__PURE__*/ (0, B.createContext)(null);
-function ase(e, t) {
- let { validationBehavior: n } = yD(zD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(ise), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...SD(e),
+}), ID = /*#__PURE__*/ (0, B.createContext)(null), LD = /*#__PURE__*/ (0, B.createContext)(null), RD = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null), ose = /*#__PURE__*/ (0, B.createContext)(null), BD = /*#__PURE__*/ (0, B.createContext)(null);
+function sse(e, t) {
+ let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(ose), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...bD(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
return [i ? $ee(o, i, a) : N_(o, R_(e), a), a];
}
-var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bD(r, t, BD);
- let [i, a] = ase(e, n);
- return /*#__PURE__*/ B.createElement(HD.Provider, { value: {
+ [e, t] = vD(r, t, RD);
+ let [i, a] = sse(e, n);
+ return /*#__PURE__*/ B.createElement(BD.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ B.createElement(sse, {
+ } }, /*#__PURE__*/ B.createElement(lse, {
...e,
ref: t
}));
-}), sse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, B.useContext)(HD), { isFocused: p, isFocusVisible: m, focusProps: h } = iy(), g = a || o, { hoverProps: _, isHovered: v } = cy({
+}), lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, B.useContext)(BD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({
...e,
isDisabled: g
- }), y = vD({
+ }), y = gD({
...e,
defaultClassName: u,
values: {
@@ -20424,7 +20424,7 @@ var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = Eg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(wD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {
...U(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -20442,16 +20442,16 @@ var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
...U(r, h),
ref: l
})), y.children);
-}), UD = /*#__PURE__*/ (0, B.createContext)({}), cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = bD(e, t, UD);
+}), VD = /*#__PURE__*/ (0, B.createContext)({}), use = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = vD(e, t, VD);
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 } = cy({
+ let { hoverProps: l, isHovered: u } = sy({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = iy({ within: !0 }), m = vD({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = gD({
...e,
values: {
isHovered: u,
@@ -20462,7 +20462,7 @@ var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(SD.div, {
...U(c, p, l),
...m,
ref: t,
@@ -20475,18 +20475,18 @@ var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), WD = /*#__PURE__*/ (0, B.createContext)({}), lse = (e) => {
+}), HD = /*#__PURE__*/ (0, B.createContext)({}), dse = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, use = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = bD(e, t, WD);
- let { hoverProps: n, isHovered: r } = cy({
+}, fse = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = vD(e, t, HD);
+ let { hoverProps: n, isHovered: r } = sy({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = iy({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ry({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vD({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = gD({
...e,
values: {
isHovered: r,
@@ -20497,8 +20497,8 @@ var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ B.createElement(wD.input, {
- ...U(lse(e), o, n),
+ return /*#__PURE__*/ B.createElement(SD.input, {
+ ...U(dse(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -20507,8 +20507,8 @@ var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), GD = {};
-GD = {
+}), UD = {};
+UD = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -20516,8 +20516,8 @@ GD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var KD = {};
-KD = {
+var WD = {};
+WD = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -20525,8 +20525,8 @@ KD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var qD = {};
-qD = {
+var GD = {};
+GD = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -20534,8 +20534,8 @@ qD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var JD = {};
-JD = {
+var KD = {};
+KD = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -20543,8 +20543,8 @@ JD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var YD = {};
-YD = {
+var qD = {};
+qD = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -20552,8 +20552,8 @@ YD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var XD = {};
-XD = {
+var JD = {};
+JD = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -20561,8 +20561,8 @@ XD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var ZD = {};
-ZD = {
+var YD = {};
+YD = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -20570,8 +20570,8 @@ ZD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var QD = {};
-QD = {
+var XD = {};
+XD = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -20579,8 +20579,8 @@ QD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var $D = {};
-$D = {
+var ZD = {};
+ZD = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -20588,8 +20588,8 @@ $D = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var eO = {};
-eO = {
+var QD = {};
+QD = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -20597,8 +20597,8 @@ eO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var tO = {};
-tO = {
+var $D = {};
+$D = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -20606,8 +20606,8 @@ tO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var nO = {};
-nO = {
+var eO = {};
+eO = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -20615,8 +20615,8 @@ nO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var rO = {};
-rO = {
+var tO = {};
+tO = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -20624,8 +20624,8 @@ rO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var iO = {};
-iO = {
+var nO = {};
+nO = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -20633,8 +20633,8 @@ iO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var aO = {};
-aO = {
+var rO = {};
+rO = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -20642,8 +20642,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var oO = {};
-oO = {
+var iO = {};
+iO = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -20651,8 +20651,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var sO = {};
-sO = {
+var aO = {};
+aO = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -20660,8 +20660,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var cO = {};
-cO = {
+var oO = {};
+oO = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -20669,8 +20669,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var lO = {};
-lO = {
+var sO = {};
+sO = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -20678,8 +20678,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var uO = {};
-uO = {
+var cO = {};
+cO = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -20687,8 +20687,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var dO = {};
-dO = {
+var lO = {};
+lO = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -20696,8 +20696,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var fO = {};
-fO = {
+var uO = {};
+uO = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -20705,8 +20705,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var pO = {};
-pO = {
+var dO = {};
+dO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -20714,8 +20714,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var mO = {};
-mO = {
+var fO = {};
+fO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -20723,8 +20723,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var hO = {};
-hO = {
+var pO = {};
+pO = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -20732,8 +20732,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var gO = {};
-gO = {
+var mO = {};
+mO = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -20741,8 +20741,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var _O = {};
-_O = {
+var hO = {};
+hO = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -20750,8 +20750,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var vO = {};
-vO = {
+var gO = {};
+gO = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -20759,8 +20759,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var yO = {};
-yO = {
+var _O = {};
+_O = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -20768,8 +20768,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var bO = {};
-bO = {
+var vO = {};
+vO = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -20777,8 +20777,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var xO = {};
-xO = {
+var yO = {};
+yO = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -20786,8 +20786,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var SO = {};
-SO = {
+var bO = {};
+bO = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -20795,8 +20795,8 @@ SO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var CO = {};
-CO = {
+var xO = {};
+xO = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -20804,8 +20804,8 @@ CO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var wO = {};
-wO = {
+var SO = {};
+SO = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -20813,52 +20813,52 @@ wO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var TO = {};
-TO = {
- "ar-AE": GD,
- "bg-BG": KD,
- "cs-CZ": qD,
- "da-DK": JD,
- "de-DE": YD,
- "el-GR": XD,
- "en-US": ZD,
- "es-ES": QD,
- "et-EE": $D,
- "fi-FI": eO,
- "fr-FR": tO,
- "he-IL": nO,
- "hr-HR": rO,
- "hu-HU": iO,
- "it-IT": aO,
- "ja-JP": oO,
- "ko-KR": sO,
- "lt-LT": cO,
- "lv-LV": lO,
- "nb-NO": uO,
- "nl-NL": dO,
- "pl-PL": fO,
- "pt-BR": pO,
- "pt-PT": mO,
- "ro-RO": hO,
- "ru-RU": gO,
- "sk-SK": _O,
- "sl-SI": vO,
- "sr-SP": yO,
- "sv-SE": bO,
- "tr-TR": xO,
- "uk-UA": SO,
- "zh-CN": CO,
- "zh-TW": wO
+var CO = {};
+CO = {
+ "ar-AE": UD,
+ "bg-BG": WD,
+ "cs-CZ": GD,
+ "da-DK": KD,
+ "de-DE": qD,
+ "el-GR": JD,
+ "en-US": YD,
+ "es-ES": XD,
+ "et-EE": ZD,
+ "fi-FI": QD,
+ "fr-FR": $D,
+ "he-IL": eO,
+ "hr-HR": tO,
+ "hu-HU": nO,
+ "it-IT": rO,
+ "ja-JP": iO,
+ "ko-KR": aO,
+ "lt-LT": oO,
+ "lv-LV": sO,
+ "nb-NO": cO,
+ "nl-NL": lO,
+ "pl-PL": uO,
+ "pt-BR": dO,
+ "pt-PT": fO,
+ "ro-RO": pO,
+ "ru-RU": mO,
+ "sk-SK": hO,
+ "sl-SI": gO,
+ "sr-SP": _O,
+ "sv-SE": vO,
+ "tr-TR": yO,
+ "uk-UA": bO,
+ "zh-CN": xO,
+ "zh-TW": SO
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var EO = /*#__PURE__*/ (0, B.createContext)({}), DO = /*#__PURE__*/ (0, B.createContext)(null), dse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { render: n } = (0, B.useContext)(DO);
+var wO = /*#__PURE__*/ (0, B.createContext)({}), TO = /*#__PURE__*/ (0, B.createContext)(null), pse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { render: n } = (0, B.useContext)(TO);
return /*#__PURE__*/ B.createElement(B.Fragment, null, n(e, t));
});
-function OO(e, t) {
+function EO(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, B.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(dse, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(pse, { target: e });
}, [
t?.target,
r,
@@ -20866,7 +20866,7 @@ function OO(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function kO(e, t, n) {
+function DO(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;
@@ -20889,14 +20889,14 @@ function kO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var AO = /*#__PURE__*/ (0, B.createContext)({}), fse = /*#__PURE__*/ (0, B.createContext)(null);
-function jO(e) {
+var OO = /*#__PURE__*/ (0, B.createContext)({}), mse = /*#__PURE__*/ (0, B.createContext)(null);
+function kO(e) {
let t = (0, B.useRef)({});
- return /*#__PURE__*/ B.createElement(fse.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ B.createElement(mse.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var MO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), NO = /*#__PURE__*/ (0, B.createContext)({}), pse = /*#__PURE__*/ tg(class extends tp {
+var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE__*/ (0, B.createContext)({}), hse = /*#__PURE__*/ tg(class extends tp {
static {
this.type = "separator";
}
@@ -20909,10 +20909,10 @@ var MO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), NO = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = bD(e, t, NO);
+ [e, t] = vD(e, t, jO);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = wD[c], { separatorProps: u } = $te({
+ let l = SD[c], { separatorProps: u } = ene({
...s,
elementType: n,
orientation: r
@@ -20928,13 +20928,13 @@ var MO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), NO = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function PO(e) {
+function MO(e) {
let t = B.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 FO = class {
+var NO = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -20978,20 +20978,20 @@ var FO = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, IO = class e extends Set {
+}, PO = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function mse(e, t) {
+function gse(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function LO(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => RO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => RO(e.defaultSelectedKeys, new IO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);
+function FO(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => IO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => IO(e.defaultSelectedKeys, new PO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, B.useRef)(i);
return (0, B.useEffect)(() => {
@@ -21018,18 +21018,18 @@ function LO(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !mse(e, d)) && f(e);
+ (r || !gse(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function RO(e, t) {
- return e ? e === "all" ? "all" : new IO(e) : t;
+function IO(e, t) {
+ return e ? e === "all" ? "all" : new PO(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var zO = class e {
+var LO = 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;
}
@@ -21085,7 +21085,7 @@ var zO = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Kv(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Gv(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -21093,7 +21093,7 @@ var zO = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Kv(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Gv(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -21112,10 +21112,10 @@ var zO = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new IO([t], t, t);
+ if (this.state.selectedKeys === "all") n = new PO([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new IO(e, r, t);
+ n = new PO(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);
}
@@ -21123,7 +21123,7 @@ var zO = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Kv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Gv(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);
@@ -21149,19 +21149,19 @@ var zO = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new IO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new PO(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 IO([t], t, t) : new IO();
+ let n = this.canSelectItem(t) ? new PO([t], t, t) : new PO();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new IO();
+ let t = new PO();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -21173,7 +21173,7 @@ var zO = 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(Uv(Hv(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Hv(Vv(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -21184,7 +21184,7 @@ var zO = 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 IO());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new PO());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -21225,9 +21225,9 @@ var zO = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, hse = class {
+}, _se = class {
build(e, t) {
- return this.context = t, BO(() => this.iterateCollection(e));
+ return this.context = t, RO(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -21309,10 +21309,10 @@ var zO = class e {
...a,
key: l,
index: s,
- wrapper: gse(e.wrapper, a.wrapper)
+ wrapper: vse(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 <${VO(t.type)}> in <${VO(r?.type ?? "unknown parent type")}>. Only <${VO(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 <${zO(t.type)}> in <${zO(r?.type ?? "unknown parent type")}>. Only <${zO(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -21334,7 +21334,7 @@ var zO = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: BO(function* () {
+ childNodes: RO(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -21353,7 +21353,7 @@ var zO = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function BO(e) {
+function RO(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -21361,18 +21361,18 @@ function BO(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function gse(e, t) {
+function vse(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function VO(e) {
+function zO(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function HO(e, t, n) {
- let r = (0, B.useMemo)(() => new hse(), []), { children: i, items: a, collection: o } = e;
+function BO(e, t, n) {
+ let r = (0, B.useMemo)(() => new _se(), []), { children: i, items: a, collection: o } = e;
return (0, B.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -21387,27 +21387,27 @@ function HO(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function UO(e) {
- let { filter: t, layoutDelegate: n } = e, r = LO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = HO(e, (0, B.useCallback)((e) => t ? new FO(t(e)) : new FO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new zO(a, r, { layoutDelegate: n }), [
+function VO(e) {
+ let { filter: t, layoutDelegate: n } = e, r = FO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = BO(e, (0, B.useCallback)((e) => t ? new NO(t(e)) : new NO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new LO(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return WO(a, o), {
+ return HO(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function _se(e, t) {
+function yse(e, t) {
let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return WO(n, r), {
+ return HO(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function WO(e, t) {
+function HO(e, t) {
let n = (0, B.useRef)(null);
(0, B.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -21435,7 +21435,7 @@ function WO(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function GO(e, t) {
+function UO(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, B.useRef)(null), s = ug((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -21459,42 +21459,42 @@ function GO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var KO = /*#__PURE__*/ (0, B.createContext)(null), qO = /*#__PURE__*/ (0, B.createContext)(null), vse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = bD(e, t, KO);
- let n = (0, B.useContext)(qO);
- return n ? /*#__PURE__*/ B.createElement(JO, {
+var WO = /*#__PURE__*/ (0, B.createContext)(null), GO = /*#__PURE__*/ (0, B.createContext)(null), bse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = vD(e, t, WO);
+ let n = (0, B.useContext)(GO);
+ return n ? /*#__PURE__*/ B.createElement(KO, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(yse, {
+ }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(xse, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function yse({ props: e, listBoxRef: t, collection: n }) {
+function xse({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, B.useContext)(AD), i = UO({
+ let { layoutDelegate: r } = (0, B.useContext)(OD), i = VO({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ B.createElement(JO, {
+ return /*#__PURE__*/ B.createElement(KO, {
state: i,
props: e,
listBoxRef: t
});
}
-function JO({ state: e, props: t, listBoxRef: n }) {
- [t, n] = bD(t, n, TD);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = _se(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Zv({
+function KO({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = vD(t, n, CD);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yse(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(AD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(OD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({
collection: c,
collator: h,
ref: n,
@@ -21515,7 +21515,7 @@ function JO({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Tte({
+ ]), { listBoxProps: x } = Ete({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -21547,7 +21547,7 @@ function JO({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = iy(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = ry(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -21555,7 +21555,7 @@ function JO({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = vD({
+ }, N = gD({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -21566,7 +21566,7 @@ function JO({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let ee = Eg(t, { global: !0 });
- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {
...U(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -21577,55 +21577,55 @@ function JO({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ B.createElement(_D, { values: [
- [KO, t],
- [qO, s],
- [EO, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [WO, t],
+ [GO, s],
+ [wO, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [NO, { elementType: "div" }],
- [DO, { render: Sse }],
- [DD, {
+ [jO, { elementType: "div" }],
+ [TO, { render: wse }],
+ [TD, {
name: "ListBoxSection",
- render: bse
+ render: Sse
}]
- ] }, /*#__PURE__*/ B.createElement(jO, null, /*#__PURE__*/ B.createElement(y, {
+ ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: kO(l, r, C),
- renderDropIndicator: OO(r, C)
+ persistedKeys: DO(l, r, C),
+ renderDropIndicator: EO(r, C)
}))), P, E));
}
-function bse(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, B.useContext)(qO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(EO), { CollectionBranch: s } = (0, B.useContext)(AD), [c, l] = xD(), { headingProps: u, groupProps: d } = Ete({
+function Sse(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, B.useContext)(GO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(wO), { CollectionBranch: s } = (0, B.useContext)(OD), [c, l] = yD(), { headingProps: u, groupProps: d } = Dte({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = vD({
+ }), f = gD({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = Eg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ B.createElement(wD.section, {
+ return delete p.id, /*#__PURE__*/ B.createElement(SD.section, {
...U(p, f, d),
ref: t
- }, /*#__PURE__*/ B.createElement(AO.Provider, { value: {
+ }, /*#__PURE__*/ B.createElement(OO.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ B.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: OO(a, o)
+ renderDropIndicator: EO(a, o)
})));
}
-var xse = /*#__PURE__*/ tg(ip, function(e, t, n) {
- let r = Nh(t), i = (0, B.useContext)(qO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(EO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Dte({
+var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
+ let r = Nh(t), i = (0, B.useContext)(GO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = cy({
+ }, i, r), { hoverProps: p, isHovered: m } = sy({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
@@ -21641,7 +21641,7 @@ var xse = /*#__PURE__*/ tg(ip, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = vD({
+ let y = o && o.isDragging(n.key), b = gD({
...e,
id: void 0,
children: e.children,
@@ -21659,7 +21659,7 @@ var xse = /*#__PURE__*/ tg(ip, function(e, t, n) {
(0, B.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? wD.a : wD.div, S = Eg(e, { global: !0 });
+ let x = e.href ? SD.a : SD.div, S = Eg(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ B.createElement(x, {
...U(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -21673,29 +21673,29 @@ var xse = /*#__PURE__*/ tg(ip, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ B.createElement(_D, { values: [[LD, { slots: {
- [gD]: u,
+ }, /*#__PURE__*/ B.createElement(hD, { values: [[FD, { slots: {
+ [mD]: u,
label: u,
description: d
- } }], [MO, { isSelected: f.isSelected }]] }, b.children));
+ } }], [AO, { isSelected: f.isSelected }]] }, b.children));
});
-function Sse(e, t) {
+function wse(e, t) {
t = Nh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(EO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ B.createElement(wse, {
+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ B.createElement(Ese, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Cse(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = vD({
+function Tse(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = gD({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
...n,
...a,
role: "option",
@@ -21703,10 +21703,10 @@ function Cse(e, t) {
"data-drop-target": r || void 0
}));
}
-var wse = /*#__PURE__*/ (0, B.forwardRef)(Cse);
+var Ese = /*#__PURE__*/ (0, B.forwardRef)(Tse);
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(qO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
- GO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(GO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
+ UO((0, B.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -21716,7 +21716,7 @@ tg(rp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = vD({
+ let l = gD({
...s,
id: void 0,
children: n.rendered,
@@ -21729,7 +21729,7 @@ tg(rp, function(e, t, n) {
width: 0,
height: 0
},
- inert: PO(!0)
+ inert: MO(!0)
}, /*#__PURE__*/ B.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -21738,7 +21738,7 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(wD.div, {
+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
...U(Eg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -21747,10 +21747,10 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Tse = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });
+var Dse = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function YO(e) {
+function qO(e) {
let [t, n] = L_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, B.useState)(null);
return {
isOpen: t,
@@ -21770,13 +21770,13 @@ function YO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function XO(e, t = !0) {
+function JO(e, t = !0) {
let [n, r] = (0, B.useState)(!0), i = n && t;
return Hp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), QO(e, i, (0, B.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), XO(e, i, (0, B.useCallback)(() => r(!1), [])), i;
}
-function ZO(e, t) {
+function YO(e, t) {
let [n, r] = (0, B.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -21786,11 +21786,11 @@ function ZO(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return QO(e, i, (0, B.useCallback)(() => {
+ return XO(e, i, (0, B.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function QO(e, t, n) {
+function XO(e, t, n) {
Hp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -21819,9 +21819,9 @@ function QO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var $O = /*#__PURE__*/ (0, B.createContext)(null), ek = /*#__PURE__*/ (0, B.createContext)(null), tk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = bD(e, t, $O);
- let n = (0, B.useContext)(dk), r = YO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ZO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();
+var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.createContext)(null), $O = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = vD(e, t, ZO);
+ let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -21832,7 +21832,7 @@ var $O = /*#__PURE__*/ (0, B.createContext)(null), ek = /*#__PURE__*/ (0, B.crea
defaultChildren: null
})), /*#__PURE__*/ B.createElement(B.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(Ese, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(Ose, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -21841,13 +21841,13 @@ var $O = /*#__PURE__*/ (0, B.createContext)(null), ek = /*#__PURE__*/ (0, B.crea
dir: c
});
});
-function Ese({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(ek), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = qte({
+function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(QO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = XO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = vD({
+ }, e), m = i.popoverRef, h = JO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = gD({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -21873,7 +21873,7 @@ function Ese({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, B.useState)(null), w = (0, B.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- Hp(w, [w]), Qy({
+ Hp(w, [w]), Zy({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -21882,7 +21882,7 @@ function Ese({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ B.createElement(wD.div, {
+ }, E = /*#__PURE__*/ B.createElement(SD.div, {
...U(Eg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
@@ -21898,17 +21898,17 @@ function Ese({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ B.createElement(Pb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Tse.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Dse.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ B.createElement(Pb, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ B.createElement(ny, {
+ } }, x), /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ B.createElement(ty, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ B.createElement(ny, {
+ }, E) : /*#__PURE__*/ B.createElement(ty, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -21923,15 +21923,15 @@ function Ese({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ B.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ B.createElement(ek.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ B.createElement(QO.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Dse = /*#__PURE__*/ (0, B.createContext)({});
+var kse = /*#__PURE__*/ (0, B.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function nk(e) {
- let t = YO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {
+function ek(e) {
+ let t = qO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -21957,7 +21957,7 @@ function nk(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Ose = class {
+var Ase = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -22001,8 +22001,8 @@ var Ose = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function kse(e) {
- let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = LO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = HO(e, (0, B.useCallback)((e) => new Ose(e, { expandedKeys: n }), [n]), null);
+function jse(e) {
+ let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = FO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = BO(e, (0, B.useCallback)((e) => new Ase(e, { expandedKeys: n }), [n]), null);
return (0, B.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -22010,32 +22010,32 @@ function kse(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Ase(n, e));
+ r(Mse(n, e));
},
setExpandedKeys: r,
- selectionManager: new zO(o, i)
+ selectionManager: new LO(o, i)
};
}
-function Ase(e, t) {
+function Mse(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var rk = /*#__PURE__*/ (0, B.createContext)(null), ik = /*#__PURE__*/ (0, B.createContext)(null), ak = /*#__PURE__*/ (0, B.createContext)(null), ok = /*#__PURE__*/ (0, B.createContext)(null);
-function jse(e) {
- let t = nk(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Lv({
+var tk = /*#__PURE__*/ (0, B.createContext)(null), nk = /*#__PURE__*/ (0, B.createContext)(null), rk = /*#__PURE__*/ (0, B.createContext)(null), ik = /*#__PURE__*/ (0, B.createContext)(null);
+function Nse(e) {
+ let t = ek(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({
...e,
type: "menu"
}, t, n), a = (0, B.useRef)(null);
- return Vh() ? null : /*#__PURE__*/ B.createElement(_D, { values: [
- [rk, {
+ return Vh() ? null : /*#__PURE__*/ B.createElement(hD, { values: [
+ [tk, {
...i,
ref: a
}],
- [dk, t],
- [ak, t],
- [$O, {
+ [lk, t],
+ [rk, t],
+ [ZO, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -22043,13 +22043,13 @@ function jse(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ B.createElement(fte, {
+ ] }, /*#__PURE__*/ B.createElement(pte, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Mse = /*#__PURE__*/ (0, B.createContext)(null);
+var Pse = /*#__PURE__*/ (0, B.createContext)(null);
(class extends tp {
static {
this.type = "submenutrigger";
@@ -22063,24 +22063,24 @@ var Mse = /*#__PURE__*/ (0, B.createContext)(null);
return null;
}
});
-var Nse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- return [e, t] = bD(e, t, rk), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Pse, {
+var Fse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ return [e, t] = vD(e, t, tk), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Ise, {
props: e,
collection: n,
menuRef: t
}));
});
-function Pse({ props: e, collection: t, menuRef: n }) {
- [e, n] = bD(e, n, TD);
- let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = kse({
+function Ise({ props: e, collection: t, menuRef: n }) {
+ [e, n] = vD(e, n, CD);
+ let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = jse({
...e,
collection: a,
children: void 0
- }), s = (0, B.useContext)(ak), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(AD), { menuProps: u } = Ote({
+ }), s = (0, B.useContext)(rk), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(OD), { menuProps: u } = kte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = vD({
+ }, o, n), d = gD({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -22091,35 +22091,35 @@ function Pse({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {
...U(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ B.createElement(_D, { values: [
- [ik, o],
- [NO, { elementType: "div" }],
- [DD, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [nk, o],
+ [jO, { elementType: "div" }],
+ [TD, {
name: "MenuSection",
- render: sk
+ render: ak
}],
- [Mse, {
+ [Pse, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [lk, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [TD, null],
- [ED, null],
- [ok, o.selectionManager],
- [ak, s ?? nk({})]
- ] }, /*#__PURE__*/ B.createElement(jO, null, /*#__PURE__*/ B.createElement(l, {
+ [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [CD, null],
+ [wD, null],
+ [ik, o.selectionManager],
+ [rk, s ?? ek({})]
+ ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(l, {
collection: o.collection,
- persistedKeys: jD(o.selectionManager.focusedKey),
+ persistedKeys: kD(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Fse = class extends zO {
+var Lse = class extends LO {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -22139,11 +22139,11 @@ var Fse = class extends zO {
return this.parent.childFocusStrategy;
}
};
-function sk(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, B.useContext)(ik), { CollectionBranch: a } = (0, B.useContext)(AD), [o, s] = xD(), { headingProps: c, groupProps: l } = Ate({
+function ak(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, B.useContext)(nk), { CollectionBranch: a } = (0, B.useContext)(OD), [o, s] = yD(), { headingProps: c, groupProps: l } = jte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = vD({
+ }), u = gD({
...e,
id: void 0,
children: void 0,
@@ -22151,31 +22151,31 @@ function sk(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, B.useContext)(ok), f = LO(e), p = e.selectionMode == null ? d : new Fse(d, f), m = yD(lk)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ B.createElement(wD.section, {
+ }), d = (0, B.useContext)(ik), f = FO(e), p = e.selectionMode == null ? d : new Lse(d, f), m = _D(sk)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ B.createElement(SD.section, {
...U(h, u, l),
ref: t
- }, /*#__PURE__*/ B.createElement(_D, { values: [
- [AO, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [OO, {
...c,
ref: o
}],
- [ok, p],
- [lk, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [ik, p],
+ [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ B.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var ck = /*#__PURE__*/ ng(ap, sk), lk = /*#__PURE__*/ (0, B.createContext)(null), uk = /*#__PURE__*/ tg(ip, function(e, t, n) {
- [e, t] = bD(e, t, lk);
- let r = yD(lk)?.id, i = (0, B.useContext)(ik), a = Nh(t), o = (0, B.useContext)(ok), { isVirtualized: s } = (0, B.useContext)(AD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = kte({
+var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ tg(ip, function(e, t, n) {
+ [e, t] = vD(e, t, sk);
+ let r = _D(sk)?.id, i = (0, B.useContext)(nk), a = Nh(t), o = (0, B.useContext)(ik), { isVirtualized: s } = (0, B.useContext)(OD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = cy({ isDisabled: f.isDisabled }), h = vD({
+ }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = gD({
...e,
id: void 0,
children: n.rendered,
@@ -22189,7 +22189,7 @@ var ck = /*#__PURE__*/ ng(ap, sk), lk = /*#__PURE__*/ (0, B.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? wD.a : wD.div, _ = Eg(e, { global: !0 });
+ }), g = e.href ? SD.a : SD.div, _ = Eg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(g, {
...U(_, h, c, p),
ref: a,
@@ -22202,19 +22202,19 @@ var ck = /*#__PURE__*/ ng(ap, sk), lk = /*#__PURE__*/ (0, B.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__*/ B.createElement(_D, { values: [
- [LD, { slots: {
- [gD]: l,
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [FD, { slots: {
+ [mD]: l,
label: l,
description: u
} }],
- [Dse, d],
- [MO, { isSelected: f.isSelected }]
+ [kse, d],
+ [AO, { isSelected: f.isSelected }]
] }, h.children));
});
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(ik), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
- GO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(nk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
+ UO((0, B.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -22224,7 +22224,7 @@ tg(rp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = vD({
+ let l = gD({
...s,
id: void 0,
children: n.rendered,
@@ -22237,7 +22237,7 @@ tg(rp, function(e, t, n) {
width: 0,
height: 0
},
- inert: PO(!0)
+ inert: MO(!0)
}, /*#__PURE__*/ B.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -22246,7 +22246,7 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(wD.div, {
+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
...U(Eg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -22255,56 +22255,56 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Ise = /*#__PURE__*/ (0, B.createContext)(null), dk = /*#__PURE__*/ (0, B.createContext)(null), fk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+var Rse = /*#__PURE__*/ (0, B.createContext)(null), lk = /*#__PURE__*/ (0, B.createContext)(null), uk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = bD(e, t, Ise);
- let { dialogProps: r, titleProps: i, contentProps: a } = mte({
+ [e, t] = vD(e, t, Rse);
+ let { dialogProps: r, titleProps: i, contentProps: a } = hte({
...e,
"aria-labelledby": n
- }, t), o = (0, B.useContext)(dk);
+ }, t), o = (0, B.useContext)(lk);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = vD({
+ let s = gD({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(wD.section, {
+ return /*#__PURE__*/ B.createElement(SD.section, {
...U(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ B.createElement(_D, { values: [
- [FD, { slots: {
- [gD]: {},
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [ND, { slots: {
+ [mD]: {},
title: {
...i,
level: 2
}
} }],
- [LD, { slots: {
- [gD]: {},
+ [FD, { slots: {
+ [mD]: {},
description: a
} }],
- [ND, { slots: {
- [gD]: {},
+ [jD, { slots: {
+ [mD]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), pk = typeof document < "u" && window.visualViewport;
-function Lse() {
+}), dk = typeof document < "u" && window.visualViewport;
+function zse() {
let e = Om(), [t, n] = (0, B.useState)(() => e ? {
width: 0,
height: 0
- } : mk());
+ } : fk());
return (0, B.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- pk && pk.scale > 1 || e(mk());
+ dk && dk.scale > 1 || e(fk());
}, r, i = (t) => {
- pk && pk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {
+ dk && dk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {
let t = kp();
(!t || !lg(t)) && e({
width: document.documentElement.clientWidth,
@@ -22312,26 +22312,26 @@ function Lse() {
});
}));
};
- return e(mk()), em() && nm() && window.addEventListener("blur", i, !0), pk ? pk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), pk ? pk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(fk()), em() && nm() && window.addEventListener("blur", i, !0), dk ? dk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), dk ? dk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function mk() {
+function fk() {
return {
- width: pk ? Math.min(pk.width * pk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: pk ? pk.height * pk.scale : document.documentElement.clientHeight
+ width: dk ? Math.min(dk.width * dk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: dk ? dk.height * dk.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Rse = /*#__PURE__*/ (0, B.createContext)(null), hk = /*#__PURE__*/ (0, B.createContext)(null), zse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- if ((0, B.useContext)(hk)) return /*#__PURE__*/ B.createElement(_k, {
+var Bse = /*#__PURE__*/ (0, B.createContext)(null), pk = /*#__PURE__*/ (0, B.createContext)(null), Vse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ if ((0, B.useContext)(pk)) return /*#__PURE__*/ B.createElement(hk, {
...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__*/ B.createElement(gk, {
+ return /*#__PURE__*/ B.createElement(mk, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -22341,15 +22341,15 @@ var Rse = /*#__PURE__*/ (0, B.createContext)(null), hk = /*#__PURE__*/ (0, B.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ B.createElement(_k, {
+ }, /*#__PURE__*/ B.createElement(hk, {
...f,
modalRef: t
}, s));
});
-function Bse(e, t) {
- [e, t] = bD(e, t, Rse);
- let n = (0, B.useContext)(dk), r = YO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = ZO(a, i.isOpen), c = ZO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Vse, {
+function Hse(e, t) {
+ [e, t] = vD(e, t, Bse);
+ let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = YO(a, i.isOpen), c = YO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Use, {
...e,
state: i,
isExiting: l,
@@ -22357,9 +22357,9 @@ function Bse(e, t) {
modalRef: o
});
}
-var gk = /*#__PURE__*/ (0, B.forwardRef)(Bse);
-function Vse({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Fte(t, r, n), o = XO(t.overlayRef) || t.isEntering || !1, s = vD({
+var mk = /*#__PURE__*/ (0, B.forwardRef)(Hse);
+function Use({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = JO(t.overlayRef) || t.isEntering || !1, s = gD({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -22367,7 +22367,7 @@ function Vse({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = Lse(), l, u;
+ }), c = zse(), l, u;
if (typeof document < "u") {
let e = m_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
@@ -22379,25 +22379,25 @@ function Vse({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ B.createElement(ny, {
+ return /*#__PURE__*/ B.createElement(ty, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ B.createElement(wD.div, {
+ }, /*#__PURE__*/ B.createElement(SD.div, {
...U(Eg(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ B.createElement(_D, { values: [[hk, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [[pk, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [dk, r]] }, s.children)));
+ }], [lk, r]] }, s.children)));
}
-function _k(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(hk), a = (0, B.useContext)(dk), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = XO(o), c = vD({
+function hk(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(pk), a = (0, B.useContext)(lk), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = JO(o), c = gD({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -22406,19 +22406,19 @@ function _k(e) {
state: a
}
});
- return /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(SD.div, {
...U(Eg(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ B.createElement(Pb, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ B.createElement(Nb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Hse = Math.round(Math.random() * 1e10), Use = 0;
-function Wse(e) {
- let t = (0, B.useMemo)(() => e.name || `radio-group-${Hse}-${++Use}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({
+var Wse = Math.round(Math.random() * 1e10), Gse = 0;
+function Kse(e) {
+ let t = (0, B.useMemo)(() => e.name || `radio-group-${Wse}-${++Gse}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({
...e,
value: n
}), c = (t) => {
@@ -22441,16 +22441,16 @@ function Wse(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Gse = /*#__PURE__*/ (0, B.createContext)(null), Kse = /*#__PURE__*/ (0, B.createContext)(null), vk = /*#__PURE__*/ (0, B.createContext)(null), yk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = bD(e, t, Gse);
- let { validationBehavior: n } = yD(zD) || {}, r = e.validationBehavior ?? n ?? "native", i = Wse({
+var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.createContext)(null), gk = /*#__PURE__*/ (0, B.createContext)(null), _k = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = vD(e, t, qse);
+ let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = Kse({
...e,
validationBehavior: r
- }), [a, o] = xD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Yte({
+ }), [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
...e,
label: o,
validationBehavior: r
- }, i), f = vD({
+ }, i), f = gD({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -22462,7 +22462,7 @@ var Gse = /*#__PURE__*/ (0, B.createContext)(null), Kse = /*#__PURE__*/ (0, B.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(SD.div, {
...U(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -22471,39 +22471,39 @@ var Gse = /*#__PURE__*/ (0, B.createContext)(null), Kse = /*#__PURE__*/ (0, B.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ B.createElement(_D, { values: [
- [vk, i],
- [MD, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [gk, i],
+ [AD, {
...c,
ref: a,
elementType: "span"
}],
- [LD, { slots: {
+ [FD, { slots: {
description: l,
errorMessage: u
} }],
- [RD, d]
- ] }, /*#__PURE__*/ B.createElement(jO, null, f.children)));
-}), bk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [ID, d]
+ ] }, /*#__PURE__*/ B.createElement(kO, null, f.children)));
+}), vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bD(r, t, Kse);
- let i = B.useContext(vk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Jte({
- ...SD(e),
+ [e, t] = vD(r, t, Jse);
+ let i = B.useContext(gk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
+ ...bD(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ B.createElement(xk.Provider, { value: {
+ return /*#__PURE__*/ B.createElement(yk.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ B.createElement(qse, {
+ } }, /*#__PURE__*/ B.createElement(Yse, {
...e,
ref: t
}));
-}), xk = /*#__PURE__*/ (0, B.createContext)(null), qse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(xk), l = B.useContext(vk), { isFocused: u, isFocusVisible: d, focusProps: f } = iy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = cy({
+}), yk = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(yk), l = B.useContext(gk), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({
...e,
isDisabled: p
- }), g = vD({
+ }), g = gD({
...e,
defaultClassName: s,
values: {
@@ -22518,7 +22518,7 @@ var Gse = /*#__PURE__*/ (0, B.createContext)(null), Kse = /*#__PURE__*/ (0, B.cr
isRequired: l.isRequired
}
}), _ = Eg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(wD.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(SD.label, {
...U(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -22537,8 +22537,8 @@ var Gse = /*#__PURE__*/ (0, B.createContext)(null), Kse = /*#__PURE__*/ (0, B.cr
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Jse(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = YO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Xse(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = qO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -22554,12 +22554,12 @@ function Jse(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = UO({
+ }, d = VO({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, B.useMemo)(() => Yse(l), [l]),
+ selectedKeys: (0, B.useMemo)(() => Zse(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -22596,16 +22596,16 @@ function Jse(e) {
setFocused: g
};
}
-function Yse(e) {
+function Zse(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function Xse(e) {
+function Qse(e) {
return e && e.__esModule ? e.default : e;
}
-var Sk = /*#__PURE__*/ (0, B.createContext)(null), Ck = /*#__PURE__*/ (0, B.createContext)(null), Zse = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = bD(e, t, Sk);
+var bk = /*#__PURE__*/ (0, B.createContext)(null), xk = /*#__PURE__*/ (0, B.createContext)(null), $se = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = vD(e, t, bk);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, B.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -22620,24 +22620,24 @@ var Sk = /*#__PURE__*/ (0, B.createContext)(null), Ck = /*#__PURE__*/ (0, B.crea
i,
a
]);
- return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement($se, {
+ return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(tce, {
props: e,
collection: n,
selectRef: t
}));
-}), Qse = [
- MD,
- ND,
- LD
+}), ece = [
+ AD,
+ jD,
+ FD
];
-function $se({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = yD(zD) || {}, i = e.validationBehavior ?? r ?? "native", a = Jse({
+function tce({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = _D(LD) || {}, i = e.validationBehavior ?? r ?? "native", a = Xse({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = iy({ within: !0 }), c = (0, B.useRef)(null), [l, u] = xD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Xte({
- ...SD(e),
+ }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = yD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
+ ...bD(e),
label: u,
validationBehavior: i
}, a, c), y = (0, B.useMemo)(() => ({
@@ -22654,48 +22654,48 @@ function $se({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = vD({
+ ]), b = gD({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), x = Eg(e, { global: !0 });
delete x.id;
let S = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(_D, { values: [
- [Sk, e],
- [Ck, a],
- [wk, p],
- [MD, {
+ return /*#__PURE__*/ B.createElement(hD, { values: [
+ [bk, e],
+ [xk, a],
+ [Sk, p],
+ [AD, {
...d,
ref: l,
elementType: "span"
}],
- [ND, {
+ [jD, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [dk, a],
- [$O, {
+ [lk, a],
+ [ZO, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Qse
+ clearContexts: ece
}],
- [KO, {
+ [WO, {
...m,
ref: S
}],
- [qO, a],
- [LD, { slots: {
+ [GO, a],
+ [FD, { slots: {
description: h,
errorMessage: g
} }],
- [RD, v]
- ] }, /*#__PURE__*/ B.createElement(wD.div, {
+ [ID, v]
+ ] }, /*#__PURE__*/ B.createElement(SD.div, {
...U(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -22705,14 +22705,14 @@ function $se({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ B.createElement(Qte, {
+ }, b.children, /*#__PURE__*/ B.createElement($te, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = bD(e, t, wk);
- let n = (0, B.useContext)(Ck), { placeholder: r } = yD(Sk), i = n.selectedItems.map((e) => {
+for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = vD(e, t, Sk);
+ let n = (0, B.useContext)(xk), { placeholder: r } = _D(bk), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -22724,7 +22724,7 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = hte(), o = (0, B.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, B.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = gte(), o = (0, B.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, B.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -22739,7 +22739,7 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
a,
o,
i
- ]), u = wg(Xse(TO), "react-aria-components"), d = vD({
+ ]), u = wg(Qse(CO), "react-aria-components"), d = gD({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -22751,32 +22751,32 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
state: n
}
}), f = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(wD.span, {
+ return /*#__PURE__*/ B.createElement(SD.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ B.createElement(LD.Provider, { value: void 0 }, d.children));
-}), tce = /*#__PURE__*/ (0, B.createContext)(null), Tk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ B.createElement(FD.Provider, { value: void 0 }, d.children));
+}), rce = /*#__PURE__*/ (0, B.createContext)(null), Ck = /*#__PURE__*/ (0, B.createContext)(null), ice = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bD(r, t, tce);
- let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = ene({
- ...SD(e),
+ [e, t] = vD(r, t, rce);
+ let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = tne({
+ ...bD(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ B.createElement(_D, { values: [[Tk, a], [Ek, {
+ return /*#__PURE__*/ B.createElement(hD, { values: [[Ck, a], [wk, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ B.createElement(rce, {
+ }]] }, /*#__PURE__*/ B.createElement(ace, {
...e,
ref: t
}));
-}), Ek = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, B.useContext)(Ek), { isFocused: f, isFocusVisible: p, focusProps: m } = iy(), h = a || o, g = (0, B.useContext)(Tk), { hoverProps: _, isHovered: v } = cy({
+}), wk = /*#__PURE__*/ (0, B.createContext)(null), ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, B.useContext)(wk), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(Ck), { hoverProps: _, isHovered: v } = sy({
...e,
isDisabled: h
- }), y = vD({
+ }), y = gD({
...e,
defaultClassName: u,
values: {
@@ -22792,7 +22792,7 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
state: g
}
}), b = Eg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(wD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {
...U(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -22809,7 +22809,7 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
...U(r, m),
ref: l
})), y.children);
-}), Dk = 10, Ok = 5, ice = class {
+}), Tk = 10, Ek = 5, oce = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -22819,7 +22819,7 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(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) > Ok && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Dk && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Ek && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Tk && (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);
@@ -22898,11 +22898,11 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Ok && i) {
+ if (Math.abs(r - c.lastSwitchY) > Ek && 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 > Dk && a) {
+ if (l > Tk && 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;
}
@@ -22917,7 +22917,7 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
boundaryContext: null
};
}
-}, ace = class {
+}, sce = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -22987,8 +22987,8 @@ for (var wk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, kk = "row-header-column-" + Math.random().toString(36).slice(2), Ak = "row-header-column-" + Math.random().toString(36).slice(2); kk === Ak;) Ak = "row-header-column-" + Math.random().toString(36).slice(2);
-function jk(e, t) {
+}, Dk = "row-header-column-" + Math.random().toString(36).slice(2), Ok = "row-header-column-" + Math.random().toString(36).slice(2); Dk === Ok;) Ok = "row-header-column-" + Math.random().toString(36).slice(2);
+function kk(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -23072,13 +23072,13 @@ function jk(e, t) {
textValue: ""
}));
}
-var oce = class extends ace {
+var cce = class extends sce {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: kk,
+ key: Dk,
value: null,
textValue: "",
level: 0,
@@ -23093,7 +23093,7 @@ var oce = class extends ace {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Ak,
+ key: Ok,
value: null,
textValue: "",
level: 0,
@@ -23120,7 +23120,7 @@ var oce = class extends ace {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = jk(s, a);
+ let l = kk(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -23146,10 +23146,10 @@ var oce = class extends ace {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return Uv(this.body.childNodes)?.key ?? null;
+ return Hv(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return Gv(this.body.childNodes)?.key ?? null;
+ return Wv(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -23181,19 +23181,19 @@ var oce = class extends ace {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function sce(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || LO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function lce(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || FO(e), i = (0, B.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 = Hv(n, t);
- e = r === "last" ? Gv(i)?.key ?? null : Uv(i)?.key ?? null;
+ let i = Vv(n, t);
+ e = r === "last" ? Wv(i)?.key ?? null : Hv(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, B.useMemo)(() => new zO(t, r), [t, r]), s = (0, B.useRef)(null);
+ let o = (0, B.useMemo)(() => new LO(t, r), [t, r]), s = (0, B.useRef)(null);
return (0, B.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;
@@ -23213,7 +23213,7 @@ function sce(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...Hv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...Vv(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);
}
@@ -23232,11 +23232,11 @@ function sce(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var cce = {
+var uce = {
ascending: "descending",
descending: "ascending"
};
-function lce(e) {
+function dce(e) {
let [t, n] = (0, B.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, B.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -23247,7 +23247,7 @@ function lce(e) {
i,
r,
a
- ]), c = HO(e, (0, B.useCallback)((e) => new oce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = sce({
+ ]), c = BO(e, (0, B.useCallback)((e) => new cce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = lce({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -23263,7 +23263,7 @@ function lce(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? cce[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? uce[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -23276,7 +23276,7 @@ function lce(e) {
treeColumn: o
};
}
-function uce(e, t) {
+function fce(e, t) {
let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -23286,7 +23286,7 @@ function uce(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var dce = class extends op {
+var pce = class extends op {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -23301,7 +23301,7 @@ var dce = class extends op {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new Rk(-2);
+ return new Ik(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -23327,7 +23327,7 @@ var dce = class extends op {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = jk(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 = kk(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;
@@ -23408,11 +23408,11 @@ var dce = class extends op {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Fk(-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 Nk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, fce = /*#__PURE__*/ (0, B.createContext)(null), pce = /*#__PURE__*/ (0, B.createContext)(null), Mk = /*#__PURE__*/ (0, B.createContext)(null), Nk = /*#__PURE__*/ (0, B.createContext)(null), mce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = bD(e, t, pce);
- let n = LO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({
+}, mce = /*#__PURE__*/ (0, B.createContext)(null), hce = /*#__PURE__*/ (0, B.createContext)(null), Ak = /*#__PURE__*/ (0, B.createContext)(null), jk = /*#__PURE__*/ (0, B.createContext)(null), gce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = vD(e, t, hce);
+ let n = FO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -23422,26 +23422,26 @@ var dce = class extends op {
i,
a,
o
- ]), c = /*#__PURE__*/ B.createElement(_ce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));
+ ]), c = /*#__PURE__*/ B.createElement(yce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));
return /*#__PURE__*/ B.createElement(qh, {
content: c,
- createCollection: () => new dce()
- }, (r) => /*#__PURE__*/ B.createElement(gce, {
+ createCollection: () => new pce()
+ }, (r) => /*#__PURE__*/ B.createElement(vce, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), hce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+}), _ce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.table, {
+ }) : /*#__PURE__*/ B.createElement(SD.table, {
...e,
ref: t
});
-}), Pk = {
+}), Mk = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -23451,26 +23451,26 @@ var dce = class extends op {
rtl: "ArrowRight"
}
};
-function gce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = bD(e, t, TD);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(fce);
+function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = vD(e, t, CD);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(mce);
t = Nh((0, B.useMemo)(() => mh(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, B.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = lce({
+ let d = dce({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = uce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(AD), { dragAndDropHooks: _ } = e, { gridProps: v } = one({
+ }), f = fce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(OD), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, B.useRef)(b), (0, B.useRef)(x), (0, B.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new ice());
+ let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new oce());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -23505,12 +23505,12 @@ function gce({ 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 === Pk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Pk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Mk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Mk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = iy(), N = vD({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ry(), N = gD({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -23527,18 +23527,18 @@ function gce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let I = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(_D, { values: [
- [Mk, f],
- [Nk, F],
- [EO, {
+ return /*#__PURE__*/ B.createElement(hD, { values: [
+ [Ak, f],
+ [jk, F],
+ [wO, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [DO, { render: Dce }],
- [TD, null],
- [ED, null]
- ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(hce, {
+ [TO, { render: kce }],
+ [CD, null],
+ [wD, null]
+ ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(_ce, {
...U(I, N, v, A, w?.collectionProps),
style: ee,
ref: t,
@@ -23548,45 +23548,45 @@ function gce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ B.createElement(jO, null, /*#__PURE__*/ B.createElement(g, {
+ }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: kO(y, _, C)
+ persistedKeys: DO(y, _, C)
})))), E);
}
-var _ce = /*#__PURE__*/ (0, B.createContext)(null), Fk = class extends tp {
+var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
static {
this.type = "tableheader";
}
-}, vce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+}, bce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.thead, {
+ }) : /*#__PURE__*/ B.createElement(SD.thead, {
...e,
ref: t
});
-}), Ik = /*#__PURE__*/ ng(Fk, (e, t) => {
- let n = (0, B.useContext)(Mk).collection, r = dp({
+}), Pk = /*#__PURE__*/ ng(Nk, (e, t) => {
+ let n = (0, B.useContext)(Ak).collection, r = dp({
items: n.headerRows,
children: (0, B.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ B.createElement(bce, { item: e });
+ case "headerrow": return /*#__PURE__*/ B.createElement(Sce, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = Zx(), { hoverProps: a, isHovered: o } = cy({
+ }), { rowGroupProps: i } = Xx(), { hoverProps: a, isHovered: o } = sy({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = vD({
+ }), s = gD({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ B.createElement(vce, {
+ return /*#__PURE__*/ B.createElement(bce, {
...U(Eg(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -23595,8 +23595,8 @@ var _ce = /*#__PURE__*/ (0, B.createContext)(null), Fk = class extends tp {
}, (e) => /*#__PURE__*/ B.createElement(ag, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), yce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
+}, e.children)), xce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
return n ? /*#__PURE__*/ B.createElement("div", {
...e,
ref: t
@@ -23605,41 +23605,41 @@ var _ce = /*#__PURE__*/ (0, B.createContext)(null), Fk = class extends tp {
ref: t
});
});
-function bce({ item: e }) {
- let t = (0, B.useRef)(null), n = (0, B.useContext)(Mk), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(AD), { rowProps: a } = une({
+function Sce({ item: e }) {
+ let t = (0, B.useRef)(null), n = (0, B.useContext)(Ak), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(OD), { rowProps: a } = dne({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = _ne(n);
- return /*#__PURE__*/ B.createElement(yce, {
+ }, n, t), { checkboxProps: o } = vne(n);
+ return /*#__PURE__*/ B.createElement(xce, {
...a,
ref: t
- }, /*#__PURE__*/ B.createElement(_D, { values: [[BD, { slots: { selection: o } }], [VD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [[RD, { slots: { selection: o } }], [zD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var xce = class extends tp {
+var Cce = class extends tp {
static {
this.type = "column";
}
-}, Sce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+}, wce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.th, {
+ }) : /*#__PURE__*/ B.createElement(SD.th, {
...e,
ref: t
});
-}), Lk = /*#__PURE__*/ tg(xce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Mk), { isVirtualized: a } = (0, B.useContext)(AD), { columnHeaderProps: o, isPressed: s } = lne({
+}), Fk = /*#__PURE__*/ tg(Cce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(Ak), { isVirtualized: a } = (0, B.useContext)(OD), { columnHeaderProps: o, isPressed: s } = une({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = iy(), d = (0, B.useContext)(Nk), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(jk), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = cy({ isDisabled: !e.allowsSorting }), h = vD({
+ let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = gD({
...e,
id: void 0,
children: n.rendered,
@@ -23666,7 +23666,7 @@ var xce = class extends tp {
width: d.getColumnWidth(n.key)
});
let _ = Eg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ B.createElement(Sce, {
+ return delete _.id, /*#__PURE__*/ B.createElement(wce, {
...U(_, o, u, p),
...h,
style: g,
@@ -23678,28 +23678,28 @@ var xce = class extends tp {
"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__*/ B.createElement(_D, { values: [[Cce, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [[Tce, {
column: n,
triggerRef: r
- }], [AD, OD]] }, h.children));
-}), Cce = /*#__PURE__*/ (0, B.createContext)(null), Rk = class extends np {
+ }], [OD, ED]] }, h.children));
+}), Tce = /*#__PURE__*/ (0, B.createContext)(null), Ik = class extends np {
static {
this.type = "tablebody";
}
-}, wce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+}, Ece = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.tbody, {
+ }) : /*#__PURE__*/ B.createElement(SD.tbody, {
...e,
ref: t
});
-}), zk = /*#__PURE__*/ ng(Rk, (e, t, n) => {
- let r = (0, B.useContext)(Mk), { isVirtualized: i } = (0, B.useContext)(AD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(AD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(EO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), Lk = /*#__PURE__*/ ng(Ik, (e, t, n) => {
+ let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(OD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(wO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = vD({
+ }, p = gD({
...e,
id: void 0,
children: void 0,
@@ -23708,25 +23708,25 @@ var xce = class extends tp {
}), 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__*/ B.createElement(Vk, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(zk, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ B.createElement(Uk, {
+ }, /*#__PURE__*/ B.createElement(Vk, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = Zx(), _ = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(wce, {
+ let { rowGroupProps: g } = Xx(), _ = Eg(e, { global: !0 });
+ return /*#__PURE__*/ B.createElement(Ece, {
...U(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ B.createElement(Mce, null), /*#__PURE__*/ B.createElement(o, {
+ }, l && /*#__PURE__*/ B.createElement(Pce, null), /*#__PURE__*/ B.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: OO(s, c)
+ renderDropIndicator: EO(s, c)
}), m);
});
(class extends np {
@@ -23734,7 +23734,7 @@ var xce = class extends tp {
this.type = "tablefooter";
}
});
-var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tce = class extends tp {
+var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dce = class extends tp {
static {
this.type = "item";
}
@@ -23746,26 +23746,26 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
}
return null;
}
-}, Vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+}, zk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.tr, {
+ }) : /*#__PURE__*/ B.createElement(SD.tr, {
...e,
ref: t
});
-}), Hk = /*#__PURE__*/ ng(Tce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Mk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(EO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(AD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({
+}), Bk = /*#__PURE__*/ ng(Dce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(Ak), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(OD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = iy(), { isFocusVisible: _, focusProps: v } = iy({ within: !0 }), { hoverProps: y, isHovered: b } = cy({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ry(), { isFocusVisible: _, focusProps: v } = ry({ within: !0 }), { hoverProps: y, isHovered: b } = sy({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = gne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = _ne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -23780,7 +23780,7 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
(0, B.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = vD({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = gD({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -23802,10 +23802,10 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
level: n.level + 1
}
}), N = Eg(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(Vk, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(zk, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(Uk, {
+ }, /*#__PURE__*/ B.createElement(Vk, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -23814,7 +23814,7 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ B.createElement(Vk, {
+ }))), /*#__PURE__*/ B.createElement(zk, {
...U(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -23830,17 +23830,17 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ B.createElement(_D, { values: [
- [BD, { slots: {
- [gD]: {},
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [RD, { slots: {
+ [mD]: {},
selection: x
} }],
- [VD, { slots: {
- [gD]: {},
+ [zD, { slots: {
+ [mD]: {},
selection: x
} }],
- [ND, { slots: {
- [gD]: {},
+ [jD, { slots: {
+ [mD]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -23848,8 +23848,8 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
style: { pointerEvents: "none" }
}
} }],
- [MO, { isSelected: p.isSelected }],
- [Bk, { isFocusVisibleWithinRow: _ }]
+ [AO, { isSelected: p.isSelected }],
+ [Rk, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ B.createElement(l, {
collection: i.collection,
parent: n
@@ -23862,29 +23862,29 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
items: e.columns,
idScope: e.id
}, e.children);
-}), Ece = class extends tp {
+}), Oce = class extends tp {
static {
this.type = "cell";
}
-}, Uk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+}, Vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.td, {
+ }) : /*#__PURE__*/ B.createElement(SD.td, {
...e,
ref: t
});
-}), Wk = /*#__PURE__*/ tg(Ece, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Mk), { dragState: a } = (0, B.useContext)(EO), { isVirtualized: o } = (0, B.useContext)(AD);
+}), Hk = /*#__PURE__*/ tg(Oce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(Ak), { dragState: a } = (0, B.useContext)(wO), { isVirtualized: o } = (0, B.useContext)(OD);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = sne({
+ let { gridCellProps: s, isPressed: c } = cne({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = iy(), { hoverProps: f, isHovered: p } = cy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(Bk), 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 = vD({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(Rk), 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 = gD({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -23904,7 +23904,7 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
isTreeColumn: n.column.key === i.treeColumn
}
}), S = Eg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ B.createElement(Uk, {
+ return delete S.id, /*#__PURE__*/ B.createElement(Vk, {
...U(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -23918,14 +23918,14 @@ var Bk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Tc
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ B.createElement(AD.Provider, { value: OD }, x.children));
+ }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, x.children));
});
-function Dce(e, t) {
+function kce(e, t) {
t = Nh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(EO), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), i = (0, B.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__*/ B.createElement(jce, {
+ return /*#__PURE__*/ B.createElement(Nce, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -23934,40 +23934,40 @@ function Dce(e, t) {
ref: t
});
}
-var Oce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+var Ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.tr, {
+ }) : /*#__PURE__*/ B.createElement(SD.tr, {
...e,
ref: t
});
-}), kce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(AD);
- return n ? /*#__PURE__*/ B.createElement(wD.div, {
+}), jce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(OD);
+ return n ? /*#__PURE__*/ B.createElement(SD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(wD.td, {
+ }) : /*#__PURE__*/ B.createElement(SD.td, {
...e,
ref: t
});
});
-function Ace(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(Mk), { visuallyHiddenProps: c } = V_(), l = vD({
+function Mce(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(Ak), { visuallyHiddenProps: c } = V_(), l = gD({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ B.createElement(Oce, {
+ return /*#__PURE__*/ B.createElement(Ace, {
...Eg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ B.createElement(kce, {
+ }, /*#__PURE__*/ B.createElement(jce, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -23978,14 +23978,14 @@ function Ace(e, t) {
ref: i
}), l.children));
}
-var jce = /*#__PURE__*/ (0, B.forwardRef)(Ace);
-function Mce() {
- let e = (0, B.useContext)(Mk), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(EO), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(Vk, {
+var Nce = /*#__PURE__*/ (0, B.forwardRef)(Mce);
+function Pce() {
+ let e = (0, B.useContext)(Ak), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(wO), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(zk, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(Uk, {
+ }, /*#__PURE__*/ B.createElement(Vk, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -23997,8 +23997,8 @@ function Mce() {
})));
}
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(Mk), { isVirtualized: i } = (0, B.useContext)(AD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
- GO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
+ UO((0, B.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -24008,7 +24008,7 @@ tg(rp, function(e, t, n) {
s,
r?.collection
]), u);
- let d = vD({
+ let d = gD({
...c,
id: void 0,
children: n.rendered,
@@ -24016,10 +24016,10 @@ tg(rp, 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__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(Vk, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zk, {
style: { height: 0 },
- inert: PO(!0)
- }, /*#__PURE__*/ B.createElement(Uk, { style: {
+ inert: MO(!0)
+ }, /*#__PURE__*/ B.createElement(Vk, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ B.createElement("div", {
@@ -24030,14 +24030,14 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ B.createElement(Vk, {
+ }))), a && d.children && /*#__PURE__*/ B.createElement(zk, {
...U(Eg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ B.createElement(Uk, {
+ }, /*#__PURE__*/ B.createElement(Vk, {
role: "rowheader",
...p,
style: m
@@ -24045,8 +24045,8 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Nce(e) {
- let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = UO({
+function Fce(e) {
+ let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = VO({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -24069,24 +24069,24 @@ function Nce(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Pce(e) {
- let t = Nce({
+function Ice(e) {
+ let t = Fce({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? Gk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? Uk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, B.useRef)(i);
return (0, B.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Gk(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 = Uk(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 Gk(e, t) {
+function Uk(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);
@@ -24096,24 +24096,24 @@ function Gk(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var Kk = /*#__PURE__*/ (0, B.createContext)(null), qk = /*#__PURE__*/ (0, B.createContext)(null), Jk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = bD(e, t, Kk);
+var Wk = /*#__PURE__*/ (0, B.createContext)(null), Gk = /*#__PURE__*/ (0, B.createContext)(null), Kk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = vD(e, t, Wk);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, B.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(Fce, {
+ }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(Lce, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Fce({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Pce({
+function Lce({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Ice({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = iy({ within: !0 }), c = (0, B.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ry({ within: !0 }), c = (0, B.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -24121,12 +24121,12 @@ function Fce({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = vD({
+ ]), l = gD({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(SD.div, {
...U(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -24134,20 +24134,20 @@ function Fce({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ B.createElement(_D, { values: [[Kk, e], [qk, i]] }, l.children));
+ }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, e], [Gk, i]] }, l.children));
}
-var Yk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- return (0, B.useContext)(qk) ? /*#__PURE__*/ B.createElement(Ice, {
+var qk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ return (0, B.useContext)(Gk) ? /*#__PURE__*/ B.createElement(Rce, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ B.createElement(ag, e);
});
-function Ice({ props: e, forwardedRef: t }) {
- let n = (0, B.useContext)(qk), { CollectionRoot: r } = (0, B.useContext)(AD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = yD(Kk), o = Nh(t), { tabListProps: s } = bne({
+function Rce({ props: e, forwardedRef: t }) {
+ let n = (0, B.useContext)(Gk), { CollectionRoot: r } = (0, B.useContext)(OD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = _D(Wk), o = Nh(t), { tabListProps: s } = xne({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = vD({
+ }, n, o), c = gD({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -24156,29 +24156,29 @@ function Ice({ props: e, forwardedRef: t }) {
state: n
}
}), l = Eg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ B.createElement(wD.div, {
+ return delete l.id, /*#__PURE__*/ B.createElement(SD.div, {
...U(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ B.createElement(jO, null, /*#__PURE__*/ B.createElement(r, {
+ }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(r, {
collection: n.collection,
- persistedKeys: jD(n.selectionManager.focusedKey)
+ persistedKeys: kD(n.selectionManager.focusedKey)
})));
}
-var Xk = /*#__PURE__*/ tg(class extends tp {
+var Jk = /*#__PURE__*/ tg(class extends tp {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, B.useContext)(qk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({
+ let r = (0, B.useContext)(Gk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = iy(), { hoverProps: f, isHovered: p } = cy({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ry(), { hoverProps: f, isHovered: p } = sy({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = vD({
+ }), m = gD({
...e,
id: void 0,
children: n.rendered,
@@ -24191,7 +24191,7 @@ var Xk = /*#__PURE__*/ tg(class extends tp {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? wD.a : wD.div, g = Eg(e, { global: !0 });
+ }), h = n.props.href ? SD.a : SD.div, g = Eg(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ B.createElement(h, {
...U(g, m, a, l, f),
ref: i,
@@ -24201,26 +24201,26 @@ var Xk = /*#__PURE__*/ tg(class extends tp {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ B.createElement(MO.Provider, { value: { isSelected: o } }, m.children));
-}), Zk = /*#__PURE__*/ Bh(function(e, t) {
- let n = (0, B.useContext)(qk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ B.createElement(AO.Provider, { value: { isSelected: o } }, m.children));
+}), Yk = /*#__PURE__*/ Bh(function(e, t) {
+ let n = (0, B.useContext)(Gk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = ZO(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(Lce, {
+ let s = YO(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(zce, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Lce(e) {
- let t = (0, B.useContext)(qk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = iy(), d = t.selectedKey === e.id, f = XO(r) && !i, p = vD({
+function zce(e) {
+ let t = (0, B.useContext)(Gk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = JO(r) && !i, p = gD({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: PO(!d),
+ isInert: MO(!d),
isEntering: f,
isExiting: a,
state: t
@@ -24228,31 +24228,31 @@ function Lce(e) {
}), m = Eg(o, { global: !0 });
delete m.id;
let h = d ? U(m, s, c, p) : U(m, p);
- return /*#__PURE__*/ B.createElement(wD.div, {
+ return /*#__PURE__*/ B.createElement(SD.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: PO(!d || e.inert),
+ inert: MO(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ B.createElement(_D, { values: [[Kk, null], [qk, null]] }, /*#__PURE__*/ B.createElement(AD.Provider, { value: OD }, p.children)));
+ }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, null], [Gk, null]] }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Rce = /*#__PURE__*/ (0, B.createContext)({}), zce = /*#__PURE__*/ (0, B.createContext)(null), Bce = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = bD(e, t, zce);
- let { validationBehavior: n } = yD(zD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);
- [e, i] = bD(e, i, ED);
- let [a, o] = xD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({
- ...SD(e),
+var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.createContext)(null), Hce = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = vD(e, t, Vce);
+ let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);
+ [e, i] = vD(e, i, wD);
+ let [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({
+ ...bD(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, B.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = vD({
+ }, [i]), h = gD({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -24262,7 +24262,7 @@ var Rce = /*#__PURE__*/ (0, B.createContext)({}), zce = /*#__PURE__*/ (0, B.crea
},
defaultClassName: "react-aria-TextField"
}), g = Eg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ B.createElement(wD.div, {
+ return delete g.id, /*#__PURE__*/ B.createElement(SD.div, {
...g,
...h,
ref: t,
@@ -24271,31 +24271,31 @@ var Rce = /*#__PURE__*/ (0, B.createContext)({}), zce = /*#__PURE__*/ (0, B.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ B.createElement(_D, { values: [
- [MD, {
+ }, /*#__PURE__*/ B.createElement(hD, { values: [
+ [AD, {
...l,
ref: a
}],
- [WD, {
+ [HD, {
...u,
ref: m
}],
- [Rce, {
+ [Bce, {
...u,
ref: m
}],
- [UD, {
+ [VD, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [LD, { slots: {
+ [FD, { slots: {
description: d,
errorMessage: f
} }],
- [RD, p]
+ [ID, p]
] }, h.children));
-}), Vce = {
+}), Uce = {
selection: {
type: ni,
duration: .16,
@@ -24307,7 +24307,7 @@ var Rce = /*#__PURE__*/ (0, B.createContext)({}), zce = /*#__PURE__*/ (0, B.crea
bounce: 0
}
};
-function Qk(e) {
+function Xk(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!t) return;
@@ -24328,7 +24328,7 @@ function Qk(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = Qf(n, { transform: [r, E] }, Vce[e]);
+ l = Qf(n, { transform: [r, E] }, Uce[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -24365,25 +24365,25 @@ function Qk(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function $k(e) {
- let t = Qk("selection");
- return /* @__PURE__ */ (0, V.jsx)(Yk, {
+function Zk(e) {
+ let t = Xk("selection");
+ return /* @__PURE__ */ (0, V.jsx)(qk, {
...e,
ref: t
});
}
-function eA(e) {
- let t = Qk("selection");
- return /* @__PURE__ */ (0, V.jsx)(yk, {
+function Qk(e) {
+ let t = Xk("selection");
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
...e,
ref: t
});
}
-var tA = "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", nA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Hce = "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", rA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", iA = "flex size-7.5 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)", Uce = { "text-aa": 1.435 }, aA = /* @__PURE__ */ new Map();
-function oA(e) {
- let t = aA.get(e);
+var $k = "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", eA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Wce = "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", tA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", nA = "flex size-7.5 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)", Gce = { "text-aa": 1.435 }, rA = /* @__PURE__ */ new Map();
+function iA(e) {
+ let t = rA.get(e);
if (t) return t;
- let n = Uce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+ let n = Gce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -24397,23 +24397,23 @@ function oA(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, aA.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, rA.set(e, r), r;
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Wce = (e) => e === "videos", sA = () => /* @__PURE__ */ (0, V.jsx)("span", {
+var Kce = (e) => e === "videos", aA = () => /* @__PURE__ */ (0, V.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Gce(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Wce(t), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = hD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = hD(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function qce(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Kce(t), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = pD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pD(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, B.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(cA, {
+ }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(oA, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, V.jsx)(fD, {
+ }), /* @__PURE__ */ (0, V.jsx)(uD, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -24433,13 +24433,13 @@ function Gce(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Kce, {
+ top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Jce, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, V.jsx)(sA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, V.jsx)(aA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -24459,11 +24459,11 @@ function Gce(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, V.jsx)(sA, {})]
+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(aA, {})]
}), /* @__PURE__ */ (0, V.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(pD, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(dD, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -24475,10 +24475,10 @@ function Gce(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, V.jsx)(qce, { ...e })
+ bottom: /* @__PURE__ */ (0, V.jsx)(Yce, { ...e })
})] });
}
-function Kce({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Jce({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -24520,7 +24520,7 @@ function Kce({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function cA({ items: e, hidden: t, actions: n }) {
+function oA({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -24540,7 +24540,7 @@ function cA({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function qce(e) {
+function Yce(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, V.jsxs)("button", {
@@ -24552,22 +24552,22 @@ function qce(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Jce, {
+ /* @__PURE__ */ (0, V.jsx)(Xce, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(Yce, {
+ t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(Zce, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)(Xce, {
+ t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)(Qce, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function Jce({ text: e, busy: t }) {
+function Xce({ text: e, busy: t }) {
return /* @__PURE__ */ (0, V.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, V.jsx)("span", {
@@ -24577,22 +24577,22 @@ function Jce({ text: e, busy: t }) {
}) : e
});
}
-function lA({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, V.jsx)(yk, {
+function sA({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: rA,
+ className: tA,
children: r.map(([e, t, n]) => {
- let r = oA(n);
- return /* @__PURE__ */ (0, V.jsx)(bk, {
+ let r = iA(n);
+ return /* @__PURE__ */ (0, V.jsx)(vk, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: iA,
+ className: nA,
children: /* @__PURE__ */ (0, V.jsx)("span", {
title: t,
className: "contents",
@@ -24602,7 +24602,7 @@ function lA({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function uA({ onPress: e, busy: t = !1 }) {
+function cA({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -24616,27 +24616,27 @@ function uA({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? Ke("正在换一批") : R("shuffle") }
});
}
-function Yce({ head: e, actions: t }) {
+function Zce({ head: e, actions: t }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(uA, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, V.jsx)(lA, {
+ /* @__PURE__ */ (0, V.jsx)(cA, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, V.jsx)(sA, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, V.jsx)(dA, {
+ /* @__PURE__ */ (0, V.jsx)(lA, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function dA({ sorts: e, onSort: t }) {
+function lA({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: e.map((e) => {
- let n = oA(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = iA(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -24648,20 +24648,20 @@ function dA({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function Xce({ head: e, actions: t, helpers: n }) {
+function Qce({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, B.useState)(!1), a = (0, B.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, B.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, V.jsx)(uA, {
+ e.shuffle ? /* @__PURE__ */ (0, V.jsx)(cA, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, V.jsx)(lA, {
+ /* @__PURE__ */ (0, V.jsx)(sA, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -24677,34 +24677,34 @@ function Xce({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var fA = "";
-function Zce(e) {
- let t = !e.tiers, n = ile(e.comboHost);
+var uA = "";
+function $ce(e) {
+ let t = !e.tiers, n = ole(e.comboHost);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(cA, {
+ n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(oA, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, V.jsx)(ele, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(Qce, { ...e })
+ /* @__PURE__ */ (0, V.jsx)(nle, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(ele, { ...e })
]
});
}
-function Qce(e) {
- let { actions: t, helpers: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = hD(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function ele(e) {
+ let { actions: t, helpers: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = pD(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, B.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = mA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = fA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, B.useLayoutEffect)(() => {
Le(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, V.jsx)(fD, {
+ }, [u]), /* @__PURE__ */ (0, V.jsx)(uD, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -24747,17 +24747,17 @@ function Qce(e) {
}), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(pA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)($ce, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)(tle, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(nle, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(ile, { ...e })
});
}
-function $ce({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, V.jsxs)(pD, {
+function tle({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, V.jsxs)(dD, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -24768,12 +24768,12 @@ function $ce({ tag: e, onPress: t }) {
})]
});
}
-function ele(e) {
+function nle(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = mA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = mA(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, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = fA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = fA(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, B.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -24786,7 +24786,7 @@ function ele(e) {
children: [u ? /* @__PURE__ */ (0, V.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, V.jsx)(pA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -24803,18 +24803,18 @@ function ele(e) {
}) : null, d ? /* @__PURE__ */ (0, V.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, V.jsx)(pA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.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, V.jsx)(tle, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, V.jsx)(rle, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function tle({ studio: e }) {
+function rle({ studio: e }) {
let [t, n] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsx)("span", {
"data-tier-mark": "",
@@ -24828,7 +24828,7 @@ function tle({ studio: e }) {
}) : e.fallback
});
}
-function pA({ kind: e }) {
+function dA({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -24844,32 +24844,32 @@ function pA({ kind: e }) {
children: [/* @__PURE__ */ (0, V.jsx)("span", {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function nle({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function ile({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, B.useState)(!1);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(rle, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ale, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(uA, {
+ /* @__PURE__ */ (0, V.jsx)(cA, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, V.jsx)(lA, {
+ n ? /* @__PURE__ */ (0, V.jsx)(sA, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, V.jsx)(dA, {
+ /* @__PURE__ */ (0, V.jsx)(lA, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function rle({ count: e }) {
+function ale({ count: e }) {
let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
return (0, B.useLayoutEffect)(() => {
if (!e) {
@@ -24877,7 +24877,7 @@ function rle({ count: e }) {
return;
}
let i = t.current;
- i && (fA && i.dataset.popCount === void 0 && (i.dataset.popCount = fA), fA = r, Re(i, r));
+ i && (uA && i.dataset.popCount === void 0 && (i.dataset.popCount = uA), uA = r, Re(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, V.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -24893,7 +24893,7 @@ function rle({ count: e }) {
})
}, "skeleton");
}
-function ile(e) {
+function ole(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!e) return;
@@ -24903,7 +24903,7 @@ function ile(e) {
};
}, [e]), t;
}
-function mA(e, t, n, r, i) {
+function fA(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -24949,7 +24949,7 @@ function mA(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function hA(e, t) {
+function pA(e, t) {
let [n, r] = (0, B.useState)(e ? "skeleton" : "none"), [i] = (0, B.useState)(() => e ? t() : ""), a = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
a.current && ke(a.current);
@@ -24975,7 +24975,7 @@ function hA(e, t) {
fading: n === "fade"
};
}
-function gA({ message: e, onRetry: t }) {
+function mA({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -24989,7 +24989,7 @@ function gA({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function _A({ artwork: e, identity: t = e.html, relayout: n }) {
+function hA({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, B.useState)({
identity: t,
artwork: e
@@ -25009,24 +25009,24 @@ function _A({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var ale = 9 / 16;
-function vA({ name: e }) {
+var sle = 9 / 16;
+function gA({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-var ole = {
+var cle = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
};
-function yA(e, t, n) {
- return t === "short" ? ale : o(n);
+function _A(e, t, n) {
+ return t === "short" ? sle : o(n);
}
-function sle(e) {
+function lle(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = E(e), s = i[0] || "", c = ee(e);
return {
avatar: r ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -25073,7 +25073,7 @@ function sle(e) {
})
};
}
-function cle() {
+function ule() {
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -25092,7 +25092,7 @@ function cle() {
})]
});
}
-function lle({ item: e, actions: t }) {
+function dle({ item: e, actions: t }) {
let [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-media-later": "",
@@ -25110,21 +25110,21 @@ function lle({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, V.jsx)(vA, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function bA(e, t) {
+function vA(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 ule({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
+function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
let l = (0, B.useRef)(null), u = (0, B.useRef)(e);
u.current = e;
let d = (0, B.useCallback)((e) => {
let t = u.current;
l.current && l.current !== e && re(l.current), l.current = e, e && (!t.medium || t.medium === "video") && oe(e, t);
- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = sle(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [
+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = lle(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -25158,9 +25158,9 @@ function ule({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
c(e, r);
}, k = /* @__PURE__ */ (0, V.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(yA(e, t, n)) },
+ style: { "--card-ratio": String(_A(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, V.jsx)(_A, {
+ g.html ? /* @__PURE__ */ (0, V.jsx)(hA, {
artwork: g,
identity: _,
relayout: (e) => ne(e, h)
@@ -25174,11 +25174,11 @@ function ule({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, V.jsx)(vA, { name: "check" })
+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "check" })
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, V.jsx)(vA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
}),
f ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-group": "",
@@ -25205,8 +25205,8 @@ function ule({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, V.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, V.jsx)(cle, {}),
- /* @__PURE__ */ (0, V.jsx)(lle, {
+ /* @__PURE__ */ (0, V.jsx)(ule, {}),
+ /* @__PURE__ */ (0, V.jsx)(dle, {
item: e,
actions: s
}),
@@ -25216,27 +25216,27 @@ function ule({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), bA(l.current, -a);
+ e.stopPropagation(), vA(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, V.jsx)(vA, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), bA(l.current, a);
+ e.stopPropagation(), vA(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, V.jsx)(vA, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, V.jsx)(vA, { name: "expand" })
+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "expand" })
})
]
})
@@ -25312,8 +25312,8 @@ function ule({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function dle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : ole[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
+function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : cle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
t.preventDefault(), t.stopPropagation(), !s && (c(!0), i.resourceOperation(e, p).catch(() => {}).finally(() => c(!1)));
}, g = (t) => {
if (o.current) {
@@ -25339,7 +25339,7 @@ function dle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, V.jsx)(vA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]
+ children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]
}),
l ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-art": "thumb",
@@ -25351,11 +25351,11 @@ function dle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, V.jsx)(vA, { name: "check" })
+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "check" })
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, V.jsx)(vA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -25365,7 +25365,7 @@ function dle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: h,
"aria-busy": s || void 0,
"aria-disabled": s || void 0,
- children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(vA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })
+ children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })
})
]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -25374,7 +25374,7 @@ function dle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(vA, { name: f })
+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: f })
}), /* @__PURE__ */ (0, V.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, V.jsx)("span", {
@@ -25403,17 +25403,17 @@ function dle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function fle(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(dle, { ...e }) : /* @__PURE__ */ (0, V.jsx)(ule, { ...e });
+function mle(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(ple, { ...e }) : /* @__PURE__ */ (0, V.jsx)(fle, { ...e });
}
-var xA = (0, B.memo)(fle), ple = 1100, mle = 340, hle = 5e3;
-function gle(e, t, n) {
+var yA = (0, B.memo)(mle), hle = 1100, gle = 340, _le = 5e3;
+function vle(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, hle);
+ }, s = () => o(!1), c = setTimeout(s, _le);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -25423,7 +25423,7 @@ function gle(e, t, n) {
}, i.src = e;
});
}
-function SA({ load: e, canFlip: t, referrerPolicy: n }) {
+function bA({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(0), [s, c] = (0, B.useState)(null), l = (0, B.useRef)({
live: !1,
generation: 0,
@@ -25465,11 +25465,11 @@ function SA({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => gle(t, e, n)));
+ let s = await Promise.all(a.map((t) => vle(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, ple);
+ p(), e.cycle = setInterval(p, hle);
}));
};
return (0, B.useEffect)(() => d, [d]), {
@@ -25478,7 +25478,7 @@ function SA({ 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(mle, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(gle, () => {
e.armed = null, m();
});
},
@@ -25489,8 +25489,8 @@ function SA({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var CA = oA("play");
-function _le({ src: e }) {
+var xA = iA("play");
+function yle({ src: e }) {
let [t, n] = (0, B.useState)(!1);
return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {
"data-mix-poster": "",
@@ -25503,8 +25503,8 @@ function _le({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var wA = "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 vle({ faces: e, fallback: t, onOpenEntity: n }) {
+var SA = "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 ble({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, V.jsx)("button", {
@@ -25512,18 +25512,18 @@ function vle({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${wA} cursor-pointer outline-none`,
+ className: `${SA} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: w(e.name, e, ae(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, V.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${wA} mt-0.5`,
+ className: `${SA} mt-0.5`,
children: t
});
}
-function TA({ 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 = SA({
+function CA({ 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 = bA({
load: i,
canFlip: a
}), x = (0, B.useRef)(b.onPointerLeave);
@@ -25550,11 +25550,11 @@ function TA({ 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, V.jsx)(_A, {
+ f?.html ? /* @__PURE__ */ (0, V.jsx)(hA, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, V.jsx)(_le, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, V.jsx)(yle, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -25584,7 +25584,7 @@ function TA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, V.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, V.jsx)(CA, {
+ children: [/* @__PURE__ */ (0, V.jsx)(xA, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n} 个视频`]
@@ -25597,8 +25597,8 @@ function TA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, V.jsx)(CA, {})
- }) : /* @__PURE__ */ (0, V.jsx)(vle, {
+ children: /* @__PURE__ */ (0, V.jsx)(xA, {})
+ }) : /* @__PURE__ */ (0, V.jsx)(ble, {
faces: o,
fallback: e.slice(0, 1),
onOpenEntity: s
@@ -25622,20 +25622,20 @@ function TA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function EA(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(ble, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${AC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, V.jsx)(xle, { ...e }, t);
+function wA(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(Sle, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${jC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, V.jsx)(TA, { ...e }, t);
}
-function yle({ name: e }) {
+function xle({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function ble(e) {
- let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(xA, {
+function Sle(e) {
+ let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(yA, {
item: i,
variant: r,
layout: e.layout,
@@ -25655,15 +25655,15 @@ function ble(e) {
children: i
});
}
-function xle(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Are(e) : jC(e), s = i && e.initial ? {
+function TA(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? kre(e) : MC(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
offset: 0
}],
pageParams: [0]
- } : void 0, c = kS({
+ } : void 0, c = OS({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -25676,7 +25676,7 @@ function xle(e) {
(0, B.useEffect)(() => {
c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
}, [c.isPending]);
- let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Pre(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Nre(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -25686,7 +25686,7 @@ function xle(e) {
e.mix,
a,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = hA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Sle(e, c.data, u, d, h);
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = pA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Cle(e, c.data, u, d, h);
(0, B.useLayoutEffect)(() => {
if (!c.data) return;
let t = !0;
@@ -25703,12 +25703,12 @@ function xle(e) {
let _ = (0, B.useCallback)((e, t) => n.open(e, t), [n]), v = (0, B.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, B.useCallback)((e) => n.openShort(e), [n]), b = (0, B.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(wle, {
+ }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(Tle, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(xA, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(yA, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -25725,7 +25725,7 @@ function xle(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, V.jsx)(gA, {
+ if (!c.data) return /* @__PURE__ */ (0, V.jsx)(mA, {
message: ye(c.error),
onRetry: () => void c.refetch()
});
@@ -25742,15 +25742,15 @@ function xle(e) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Lre(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
+ children: Ire(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(x)
- }), t.strip ? /* @__PURE__ */ (0, V.jsx)(Cle, {
+ }), t.strip ? /* @__PURE__ */ (0, V.jsx)(wle, {
cut: t.strip,
props: e,
onOpen: y
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(DA, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(EA, {
entity: i,
load: b,
enabled: () => e.canLoadMore?.() !== !1
@@ -25758,7 +25758,7 @@ function xle(e) {
})()]
});
}
-function DA({ entity: e, load: t, enabled: n, children: r }) {
+function EA({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, B.useRef)(null), a = (0, B.useRef)(!1), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)({
busy: !1,
error: ""
@@ -25819,12 +25819,12 @@ function DA({ entity: e, load: t, enabled: n, children: r }) {
...f,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: Pe("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, V.jsx)(gA, {
+ }), s.error ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function Sle(e, t, n, r, i) {
+function Cle(e, t, n, r, i) {
let [a, o] = (0, B.useState)([]), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(0), u = (0, B.useRef)(0), d = (0, B.useRef)([]);
return (0, B.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, B.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -25833,7 +25833,7 @@ function Sle(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- G(`/api/items?${Ire(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ G(`/api/items?${Fre(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
if (!t.length) {
l.current = 0;
@@ -25849,7 +25849,7 @@ function Sle(e, t, n, r, i) {
}, [t]), (0, B.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Fre(n.length - e, f, d);
+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Pre(n.length - e, f, d);
if (!p.length) return;
let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);
l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {
@@ -25859,7 +25859,7 @@ function Sle(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Cle({ cut: e, props: t, onOpen: n }) {
+function wle({ cut: e, props: t, onOpen: n }) {
let r = (0, B.useRef)(null), { wireDrag: i } = t;
return (0, B.useEffect)(() => {
r.current && i(r.current);
@@ -25875,12 +25875,12 @@ function Cle({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, V.jsx)(yle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(xle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, V.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(xA, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(yA, {
item: e,
variant: "short",
layout: t.layout,
@@ -25894,17 +25894,17 @@ function Cle({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function OA(e, t, n) {
+function DA(e, t, n) {
return N(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function wle({ seed: e, layout: t, helpers: n, actions: r }) {
+function Tle({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, B.useRef)(/* @__PURE__ */ new Map()), a = (0, B.useRef)(t);
a.current = t;
let o = P(e, n.tagLabel), s = (0, B.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => MC(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), OA(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = OA(e, t, !1);
- return /* @__PURE__ */ (0, V.jsx)(TA, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => NC(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), DA(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = DA(e, t, !1);
+ return /* @__PURE__ */ (0, V.jsx)(CA, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -25914,12 +25914,12 @@ function wle({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : OA(e, {
+ artworkIdentity: c === "small" ? l.html : DA(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => ne(e, c),
- ratio: yA(e, "grid", t),
+ ratio: _A(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -25931,31 +25931,31 @@ function wle({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-async function kA(e) {
+async function OA(e) {
await z.fetchQuery({
queryKey: et,
queryFn: () => nt(e)
});
}
-var Tle = [
+var Ele = [
"local",
"115",
"pikpak"
-], Ele = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Dle = "/api/duplicates?limit=120", AA = ["duplicates"], jA = "/api/batch", MA = (e) => G(Dle, e);
-async function Ole(e) {
+], Dle = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ole = "/api/duplicates?limit=120", kA = ["duplicates"], AA = "/api/batch", jA = (e) => G(Ole, e);
+async function kle(e) {
await Promise.all([z.fetchQuery({
- queryKey: AA,
- queryFn: () => MA(e)
- }), kA(e)]);
+ queryKey: kA,
+ queryFn: () => jA(e)
+ }), OA(e)]);
}
-var NA = {
+var MA = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, kle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), PA = (e, t) => kle(e, t).filter((t) => e.some((e) => e.location !== t)), Ale = (e, t) => t.filter((t) => e.some((e) => PA(e.files, [t]).length));
-function jle(e, t) {
+}, Ale = (e, t) => t.filter((t) => e.some((e) => e.location === t)), NA = (e, t) => Ale(e, t).filter((t) => e.some((e) => e.location !== t)), jle = (e, t) => t.filter((t) => e.some((e) => NA(e.files, [t]).length));
+function Mle(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -25974,47 +25974,47 @@ function jle(e, t) {
}
return n;
}
-function Mle(e, t) {
+function Nle(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function FA(e, t) {
- for (let n = 0; n < e.length; n += 200) await K(jA, {
+async function PA(e, t) {
+ for (let n = 0; n < e.length; n += 200) await K(AA, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var IA = "/api/library-processing", LA = ["library-processing"], RA = (e) => G(IA, e);
-async function zA(e) {
+var FA = "/api/library-processing", IA = ["library-processing"], LA = (e) => G(FA, e);
+async function RA(e) {
await z.fetchQuery({
- queryKey: LA,
- queryFn: () => RA(e)
+ queryKey: IA,
+ queryFn: () => LA(e)
});
}
-var Nle = 2e3, Ple = 1e4, BA = "连接中断,正在重新读取处理进度";
-function Fle(e, t) {
- return e?.status === "running" ? Nle : t ? Ple : !1;
+var Ple = 2e3, Fle = 1e4, zA = "连接中断,正在重新读取处理进度";
+function Ile(e, t) {
+ return e?.status === "running" ? Ple : t ? Fle : !1;
}
-var Ile = {
+var Lle = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, VA = {
+}, BA = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Lle(e) {
- let t = Object.entries(e).filter(([e, t]) => VA[e] && t > 0).map(([e, t]) => `${VA[e]} ${t} 部`);
+function Rle(e) {
+ let t = Object.entries(e).filter(([e, t]) => BA[e] && t > 0).map(([e, t]) => `${BA[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function HA(e) {
- let t = Ile[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function VA(e) {
+ let t = Lle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Rle(e) {
+function zle(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -26028,21 +26028,21 @@ function Rle(e) {
log: e.issues_log || ""
} : null;
}
-var UA = "peach.library-processing.announced", zle = 120;
-function Ble(e, t, n) {
+var HA = "peach.library-processing.announced", Ble = 120;
+function Vle(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < zle;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Ble;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(UA) === e.job_id) return;
- e.job_id && localStorage.setItem(UA, e.job_id);
+ if (e.job_id && localStorage.getItem(HA) === e.job_id) return;
+ e.job_id && localStorage.setItem(HA, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var WA = "/api/media-repair", GA = ["media-repair"], KA = ["media-repair", "libraries"], Vle = {
+var UA = "/api/media-repair", WA = ["media-repair"], GA = ["media-repair", "libraries"], Hle = {
status: "idle",
library: "",
stage: "",
@@ -26054,33 +26054,33 @@ var WA = "/api/media-repair", GA = ["media-repair"], KA = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, qA = (e) => G(WA, e), JA = async (e) => (await G("/api/libraries", e)).libraries || [];
-async function Hle(e) {
+}, KA = (e) => G(UA, e), qA = async (e) => (await G("/api/libraries", e)).libraries || [];
+async function Ule(e) {
await Promise.all([z.fetchQuery({
+ queryKey: WA,
+ queryFn: () => KA(e)
+ }), z.fetchQuery({
queryKey: GA,
queryFn: () => qA(e)
- }), z.fetchQuery({
- queryKey: KA,
- queryFn: () => JA(e)
})]);
}
-var YA = (e) => Number(e).toLocaleString();
-function Ule(e) {
+var JA = (e) => Number(e).toLocaleString();
+function Wle(e) {
if (e.status === "running") {
- let t = e.total ? `${YA(e.checked)} / ${YA(e.total)}` : "准备中";
+ let t = e.total ? `${JA(e.checked)} / ${JA(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${YA(e.repaired)} 部,${YA(e.failed)} 部修不了` : `修好 ${YA(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${JA(e.repaired)} 部,${JA(e.failed)} 部修不了` : `修好 ${JA(e.repaired)} 部` : "";
}
-var Wle = (e) => `${YA(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Gle = "/api/quality-goals?limit=200", XA = ["quality-goals"], ZA = (e) => G(Gle, e);
-async function Kle(e) {
+var Gle = (e) => `${JA(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Kle = "/api/quality-goals?limit=200", YA = ["quality-goals"], XA = (e) => G(Kle, e);
+async function qle(e) {
await z.fetchQuery({
- queryKey: XA,
- queryFn: () => ZA(e)
+ queryKey: YA,
+ queryFn: () => XA(e)
});
}
-var qle = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;
-function QA(e, t, n = 1) {
+var Jle = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;
+function ZA(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -26100,21 +26100,21 @@ function QA(e, t, n = 1) {
t
];
}
-function $A(e, t) {
+function QA(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function ej(e, t) {
+function $A(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function Jle(e, t, n, r, i, a = i || !e.has(r)) {
+function Yle(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/time.ts
-function tj(e) {
+function ej(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -26123,7 +26123,7 @@ function tj(e) {
}
//#endregion
//#region src/react/review/review.ts
-var Yle = "/api/review", Xle = "/api/review/decision", Zle = "/api/review/genre", nj = ["review"], rj = {
+var Xle = "/api/review", Zle = "/api/review/decision", Qle = "/api/review/genre", tj = ["review"], nj = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -26133,15 +26133,15 @@ var Yle = "/api/review", Xle = "/api/review/decision", Zle = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Qle = Object.keys(rj), $le = "metadata_fields", ij = (e) => typeof e == "string" && Object.hasOwn(rj, e), eue = {
+}, $le = Object.keys(nj), eue = "metadata_fields", rj = (e) => typeof e == "string" && Object.hasOwn(nj, e), tue = {
creator_tags: "creator",
western_identity: "creator"
};
-function tue(e, t) {
+function nue(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 aj(e, t) {
+function ij(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -26158,43 +26158,43 @@ function aj(e, t) {
}
return [...n.values()];
}
-function nue(e, t, n) {
- return n && aj(e, t).find((e) => e.key === n)?.rows || e;
+function rue(e, t, n) {
+ return n && ij(e, t).find((e) => e.key === n)?.rows || e;
}
-function rue(e, t) {
- let n = $A(e.length, 20), r = ej(t, n);
+function iue(e, t) {
+ let n = QA(e.length, 20), r = $A(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function iue(e) {
+function aue(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 aue(e, t, n, r, i, a) {
- return Jle(e, t, n, r, i, a);
+function oue(e, t, n, r, i, a) {
+ return Yle(e, t, n, r, i, a);
}
-function oj(e, t) {
+function aj(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function sj(e, t) {
+function oj(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var cj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function oue(e, t) {
- let n = sj(e, t), r = cj(e, t);
+var sj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function sue(e, t) {
+ let n = oj(e, t), r = sj(e, t);
return r ? `${n} · ${r}` : n;
}
-var sue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", cue = (e) => String(e.tags || "").split("|").filter(Boolean), lue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function uue(e) {
+var cue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", lue = (e) => String(e.tags || "").split("|").filter(Boolean), uue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function due(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function lj(e, t, n, r) {
+function cj(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -26210,19 +26210,19 @@ function lj(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var due = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", uj = (e) => G(Yle, e), dj = (e) => K(Xle, e), fue = (e, t) => K(Zle, {
+var fue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", lj = (e) => G(Xle, e), uj = (e) => K(Zle, e), pue = (e, t) => K(Qle, {
genre: e,
tag: t
});
-async function pue(e) {
+async function mue(e) {
await z.fetchQuery({
- queryKey: nj,
- queryFn: () => uj(e)
+ queryKey: tj,
+ queryFn: () => lj(e)
});
}
-function fj(e, t) {
+function dj(e, t) {
let n = new Set(t);
- n.size && z.setQueryData(nj, (t) => {
+ n.size && z.setQueryData(tj, (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 : {
@@ -26238,207 +26238,207 @@ function fj(e, t) {
};
});
}
-var mue = () => z.invalidateQueries({
- queryKey: nj,
+var hue = () => z.invalidateQueries({
+ queryKey: tj,
exact: !0
});
-function hue(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${tj(e.fetched_at)} 的缓存` : e?.error || t;
+function gue(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${ej(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var gue = "/api/links", pj = "/api/links/check", mj = "/api/links/prune", hj = ["links"], gj = ["links", "check"], _j = ["links", "prune"], vj = {
+var _ue = "/api/links", fj = "/api/links/check", pj = "/api/links/prune", mj = ["links"], hj = ["links", "check"], gj = ["links", "prune"], _j = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function yj(e) {
+async function vj(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var bj = (e) => G(gue, e), xj = (e) => K(pj, { status_only: !0 }, "POST", e), _ue = ({ retry: e, checkId: t }) => yj(K(pj, e ? {
+var yj = (e) => G(_ue, e), bj = (e) => K(fj, { status_only: !0 }, "POST", e), vue = ({ retry: e, checkId: t }) => vj(K(fj, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Sj = (e) => G(mj, e), vue = (e) => yj(K(mj, {
+} : { restart: !0 })), xj = (e) => G(pj, e), yue = (e) => vj(K(pj, {
confirm: !0,
check_id: e,
background: !0
-})), Cj = (e) => Number(e || 0).toLocaleString(), yue = (e) => `已删除 ${Cj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Cj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Cj(e.recovered)} 条未确认失效的链接。`;
-function bue(e) {
+})), Sj = (e) => Number(e || 0).toLocaleString(), bue = (e) => `已删除 ${Sj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Sj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Sj(e.recovered)} 条未确认失效的链接。`;
+function xue(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Cj(e.checked)} / ${Cj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Sj(e.checked)} / ${Sj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var wj = "/api/settings", Tj = "/api/follow/schedule", Ej = "/api/thumbnail-jobs", Dj = ["settings"], Oj = ["follow-schedule"], kj = ["thumbnail-jobs"], xue = (e) => G(wj, e), Aj = (e) => G(Tj, e), jj = (e) => G(Ej, e);
-function Sue(e = z) {
+var Cj = "/api/settings", wj = "/api/follow/schedule", Tj = "/api/thumbnail-jobs", Ej = ["settings"], Dj = ["follow-schedule"], Oj = ["thumbnail-jobs"], Sue = (e) => G(Cj, e), kj = (e) => G(wj, e), Aj = (e) => G(Tj, e);
+function Cue(e = z) {
return e.fetchQuery({
- queryKey: Oj,
- queryFn: ({ signal: e }) => Aj(e),
+ queryKey: Dj,
+ queryFn: ({ signal: e }) => kj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: kj,
- queryFn: ({ signal: e }) => jj(e),
+ queryKey: Oj,
+ queryFn: ({ signal: e }) => Aj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Dj,
- queryFn: ({ signal: e }) => xue(e),
+ queryKey: Ej,
+ queryFn: ({ signal: e }) => Sue(e),
staleTime: 0
}).catch(() => null);
}
-function Mj() {
- return OS({
- mutationFn: (e) => K(wj, e),
- onSuccess: (e) => z.setQueryData(Dj, e)
+function jj() {
+ return DS({
+ mutationFn: (e) => K(Cj, e),
+ onSuccess: (e) => z.setQueryData(Ej, e)
});
}
-function Cue() {
- return OS({
- mutationFn: (e) => K(Tj, {
+function wue() {
+ return DS({
+ mutationFn: (e) => K(wj, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => z.setQueryData(Oj, e)
+ onSuccess: (e) => z.setQueryData(Dj, e)
});
}
-function wue() {
- return OS({
- mutationFn: (e) => K(Ej, { mode: e }),
- onSuccess: (e) => z.setQueryData(kj, e)
+function Tue() {
+ return DS({
+ mutationFn: (e) => K(Tj, { mode: e }),
+ onSuccess: (e) => z.setQueryData(Oj, e)
});
}
-function Tue(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${tj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${tj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
-}
function Eue(e) {
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${ej(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${ej(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+}
+function Due(e) {
return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Due = "/api/organize", Oue = "/api/organize/preview", kue = "/api/organize/apply", Aue = "/api/organize/rollback", Nj = ["organize"], Pj = (e) => G(Due, e);
-async function jue(e) {
+var Oue = "/api/organize", kue = "/api/organize/preview", Aue = "/api/organize/apply", jue = "/api/organize/rollback", Mj = ["organize"], Nj = (e) => G(Oue, e);
+async function Mue(e) {
await z.fetchQuery({
- queryKey: Nj,
- queryFn: () => Pj(e)
+ queryKey: Mj,
+ queryFn: () => Nj(e)
});
}
-var Mue = (e) => K(Oue, e), Nue = (e) => e.kind === "apply" ? K(kue, {
+var Nue = (e) => K(kue, e), Pue = (e) => e.kind === "apply" ? K(Aue, {
...e.request,
confirm: !0
-}) : K(Aue, { confirm: !0 });
-async function Pue(e) {
- z.setQueryData(Nj, (t) => t && {
+}) : K(jue, { confirm: !0 });
+async function Fue(e) {
+ z.setQueryData(Mj, (t) => t && {
...t,
templates: e
});
try {
- await K(wj, { organizeTemplates: e });
+ await K(Cj, { organizeTemplates: e });
} catch {}
}
-var Fue = (e, t) => e && {
+var Iue = (e, t) => e && {
...e,
...t
-}, Iue = /目录模板|分隔符|盘符|`\.`/;
-function Fj(e) {
+}, Lue = /目录模板|分隔符|盘符|`\.`/;
+function Pj(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var Ij = (e) => Number(e || 0).toLocaleString();
-function Lue(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Ij(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Ij(e.counts.change)} 个文件会改名或移动,${Ij(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var Fj = (e) => Number(e || 0).toLocaleString();
+function Rue(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Fj(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${Fj(e.counts.change)} 个文件会改名或移动,${Fj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Lj(e) {
+function Ij(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${Ij(r)} 个文件${n ? `,${Ij(n)} 行未能退回` : ""}。` : `已整理 ${Ij(r)} 个文件${n ? `,${Ij(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${Fj(r)} 个文件${n ? `,${Fj(n)} 行未能退回` : ""}。` : `已整理 ${Fj(r)} 个文件${n ? `,${Fj(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var Rj = "/api/resource-sync/scan", zj = "/api/resource-sync/apply", Bj = ["resource-sync", "scan"], Vj = ["resource-sync", "apply"], Hj = (e) => K(Rj, {
+var Lj = "/api/resource-sync/scan", Rj = "/api/resource-sync/apply", zj = ["resource-sync", "scan"], Bj = ["resource-sync", "apply"], Vj = (e) => K(Lj, {
background: !0,
status_only: !0
-}, "POST", e), Rue = () => K(Rj, {
+}, "POST", e), zue = () => K(Lj, {
background: !0,
restart: !0
-}), Uj = (e) => G(zj, e), zue = (e) => K(zj, {
+}), Hj = (e) => G(Rj, e), Bue = (e) => K(Rj, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), Wj = (e) => (e?.sources ?? []).some((e) => Tle.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Bue(e) {
- Wj(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({
+}), Uj = (e) => (e?.sources ?? []).some((e) => Ele.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Vue(e) {
+ Uj(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({
+ queryKey: zj,
+ queryFn: () => Vj(e)
+ }), z.fetchQuery({
queryKey: Bj,
queryFn: () => Hj(e)
- }), z.fetchQuery({
- queryKey: Vj,
- queryFn: () => Uj(e)
})]);
}
-var Vue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Hue = {
+var Hue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Uue = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Gj = (e) => Number(e || 0).toLocaleString(), Uue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Kj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), qj = (e) => e.vanish ? `${Gj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", Jj = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Wue = (e) => `将永久删除文件已不在盘上的 ${Gj(Kj(e))} 条记录和 ${Gj(e.empty)} 个空文件夹,并清理 ${Gj(e.cache?.files)} 个闲置缓存。${Jj(e)}${qj(e)}`, Gue = (e) => `将永久删除文件已不在盘上的 ${Gj(Kj(e))} 条记录(含回收站里的)、${Gj(e.empty)} 个空文件夹,并清理 ${Gj(e.cache?.files)} 个闲置缓存。来源根目录保留。${Jj(e)}${qj(e)}`, Kue = (e) => e.online ? [
- `找不到文件 · 共 ${Gj(e.total)} 项`,
- e.vanish ? `${Gj(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${Gj(e.empty)} 个` : "",
- e.unreadable ? `${Gj(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${Gj(e.total)} 项`;
-function Yj(e) {
+}, Wj = (e) => Number(e || 0).toLocaleString(), Wue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Gj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), Kj = (e) => e.vanish ? `${Wj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", qj = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Gue = (e) => `将永久删除文件已不在盘上的 ${Wj(Gj(e))} 条记录和 ${Wj(e.empty)} 个空文件夹,并清理 ${Wj(e.cache?.files)} 个闲置缓存。${qj(e)}${Kj(e)}`, Kue = (e) => `将永久删除文件已不在盘上的 ${Wj(Gj(e))} 条记录(含回收站里的)、${Wj(e.empty)} 个空文件夹,并清理 ${Wj(e.cache?.files)} 个闲置缓存。来源根目录保留。${qj(e)}${Kj(e)}`, que = (e) => e.online ? [
+ `找不到文件 · 共 ${Wj(e.total)} 项`,
+ e.vanish ? `${Wj(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${Wj(e.empty)} 个` : "",
+ e.unreadable ? `${Wj(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${Wj(e.total)} 项`;
+function Jj(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 ? `${Gj(t.length)} 条记录没有删除(${o})` : "",
- n ? `${Gj(n)} 个文件夹没有删除` : "",
- r.length ? `${Gj(r.length)} 个缓存没有清理` : ""
+ t.length ? `${Wj(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${Wj(n)} 个文件夹没有删除` : "",
+ r.length ? `${Wj(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var que = (e, t) => {
- let { rest: n } = Yj(e), r = `已永久删除 ${Gj(e.purged)} 条失效记录和 ${Gj(e.dirs_removed)} 个空文件夹,清理 ${Gj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Gj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Gj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var Jue = (e, t) => {
+ let { rest: n } = Jj(e), r = `已永久删除 ${Wj(e.purged)} 条失效记录和 ${Wj(e.dirs_removed)} 个空文件夹,清理 ${Wj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Wj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Wj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Jue = "/api/review?counts=1", Xj = ["review", "counts"], Yue = "/api/ads?limit=1", Zj = ["junk-summary"], Qj = "/api/items?state=trash&limit=1", $j = ["trash-summary"], Xue = [
+}, Yue = "/api/review?counts=1", Yj = ["review", "counts"], Xue = "/api/ads?limit=1", Xj = ["junk-summary"], Zj = "/api/items?state=trash&limit=1", Qj = ["trash-summary"], Zue = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], eM = (e) => G(Jue, e), tM = (e) => G(Yue, e), nM = (e) => {
+], $j = (e) => G(Yue, e), eM = (e) => G(Xue, e), tM = (e) => {
let t = sessionStorage.getItem("peach.library");
- return G(t ? `${Qj}&library=${encodeURIComponent(t)}` : Qj, e);
-}, rM = (e) => Number(e || 0).toLocaleString();
-function Zue(e) {
- let t = rj, 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 G(t ? `${Zj}&library=${encodeURIComponent(t)}` : Zj, e);
+}, nM = (e) => Number(e || 0).toLocaleString();
+function Que(e) {
+ let t = nj, 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(" · ")
};
}
-function Que(e) {
+function $ue(e) {
if (!e) return "";
- let t = Xue.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${rM(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${rM(e.dismissed_total)}`), t.join(" · ");
-}
-var $ue = [
- [Xj, ({ signal: e }) => eM(e)],
- [XA, ({ signal: e }) => ZA(e)],
- [$j, ({ signal: e }) => nM(e)],
+ let t = Zue.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${nM(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${nM(e.dismissed_total)}`), t.join(" · ");
+}
+var ede = [
+ [Yj, ({ signal: e }) => $j(e)],
+ [YA, ({ signal: e }) => XA(e)],
+ [Qj, ({ signal: e }) => tM(e)],
+ [mj, ({ signal: e }) => yj(e)],
[hj, ({ signal: e }) => bj(e)],
- [gj, ({ signal: e }) => xj(e)],
- [_j, ({ signal: e }) => Sj(e)]
+ [gj, ({ signal: e }) => xj(e)]
];
-async function ede(e) {
- let t = location.hash === "#resource-sync", n = $ue.map(([n, r]) => {
+async function tde(e) {
+ let t = location.hash === "#resource-sync", n = ede.map(([n, r]) => {
if (t) return z.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -26451,49 +26451,49 @@ async function ede(e) {
await Promise.all([
...n,
z.fetchQuery({
- queryKey: Zj,
- queryFn: () => tM(e)
+ queryKey: Xj,
+ queryFn: () => eM(e)
}),
z.fetchQuery({
- queryKey: AA,
- queryFn: () => MA(e)
+ queryKey: kA,
+ queryFn: () => jA(e)
}),
- kA(e).then(() => Bue(e)),
- zA(e),
- Hle(e),
- jue(e)
+ OA(e).then(() => Vue(e)),
+ RA(e),
+ Ule(e),
+ Mue(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var tde = [
+var nde = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], nde = [
+], rde = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function iM(e = {}) {
- return `${wE({
+function rM(e = {}) {
+ return `${SE({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var aM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", rde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function oM({ interactive: e = !1 } = {}) {
- return wE({
+var iM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ide = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function aM({ interactive: e = !1 } = {}) {
+ return SE({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var ide = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function sM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var ade = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function oM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -26526,13 +26526,13 @@ function sM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function cM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function sM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, V.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${tde[n % 4]} ${nde[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${nde[n % 4]} ${rde[n % 4]}`,
children: /* @__PURE__ */ (0, V.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -26554,16 +26554,16 @@ function cM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function lM(e) {
- let t = Qk("hover");
- return /* @__PURE__ */ (0, V.jsx)(fk, {
+function cM(e) {
+ let t = Xk("hover");
+ return /* @__PURE__ */ (0, V.jsx)(uk, {
...e,
ref: t
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var uM = [
+var lM = [
"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",
@@ -26571,74 +26571,74 @@ var uM = [
"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(" "), ade = "w-[266px]", ode = "flex w-full flex-col gap-1 outline-none", dM = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), fM = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), ode = "w-[266px]", sde = "flex w-full flex-col gap-1 outline-none", uM = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), dM = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
({
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
}).medium;
//#endregion
//#region src/management.ts
-var sde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", cde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", lde = wE({
+var cde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", lde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", ude = SE({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), ude = {
+}), dde = {
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"
-}, dde = {
+}, fde = {
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"
-}, fde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", pde = {
+}, pde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", mde = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, mde = wE({
+}, hde = SE({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), pM = "border-t border-border-button-default p-4 first:border-t-0";
-function mM({ tone: e = "neutral", status: t, children: n }) {
+}), fM = "border-t border-border-button-default p-4 first:border-t-0";
+function pM({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: `${fde} ${pde[e]}`,
+ className: `${pde} ${mde[e]}`,
children: [t ? /* @__PURE__ */ (0, V.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
-function hM({ id: e, children: t }) {
+function mM({ id: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function gM({ id: e, gap: t = "none", children: n }) {
+function hM({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, V.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function _M({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function gM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, V.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${lde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${ude} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
- className: ude[e],
+ className: dde[e],
children: a
}), i ? /* @__PURE__ */ (0, V.jsx)("footer", {
- className: dde[e],
+ className: fde[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function vM() {
+function _M() {
let e = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
Ce(e.current);
@@ -26646,7 +26646,7 @@ function vM() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var yM = yE({
+var vM = _E({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -26667,21 +26667,21 @@ var yM = yE({
small: "size-4 shrink-0"
}
});
-function bM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function yM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
ref: i,
type: r,
- className: vE(yM.base, yM.size[t], n),
+ className: gE(vM.base, vM.size[t], n),
...a,
children: /* @__PURE__ */ (0, V.jsx)(e, {
- className: yM.icon[t],
+ className: vM.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function hde({ className: e }) {
+function gde({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -26694,8 +26694,8 @@ function hde({ className: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-folder-open" })
});
}
-var gde = "打开文件管理器失败,请重试";
-function xM({ path: e, prefix: t, className: n, onRevealed: r }) {
+var _de = "打开文件管理器失败,请重试";
+function bM({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(""), c = (0, B.useRef)(!0);
(0, B.useEffect)(() => () => {
c.current = !1;
@@ -26706,7 +26706,7 @@ function xM({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await K("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof jS ? e.message : gde);
+ c.current && s(e instanceof AS ? e.message : _de);
} finally {
c.current && a(!1);
}
@@ -26717,10 +26717,10 @@ function xM({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, V.jsxs)("p", {
- className: vE("min-w-0 break-all", n),
+ className: gE("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, V.jsx)(bM, {
- icon: hde,
+ }), /* @__PURE__ */ (0, V.jsx)(yM, {
+ icon: gde,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -26735,38 +26735,38 @@ function xM({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function SM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function xM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : wE({
+ className: r ? "flex flex-col gap-1.5" : SE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(kE, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(DE, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, V.jsx)(EE, { label: e })
+ })] }) : /* @__PURE__ */ (0, V.jsx)(wE, { label: e })
});
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function CM({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = TS({
- queryKey: LA,
- queryFn: ({ signal: e }) => RA(e),
- refetchInterval: (e) => Fle(e.state.data, r)
+function SM({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = wS({
+ queryKey: IA,
+ queryFn: ({ signal: e }) => LA(e),
+ refetchInterval: (e) => Ile(e.state.data, r)
}), [a, o] = (0, B.useState)(null), s = (0, B.useRef)(void 0), c = i.data;
return (0, B.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && Ble(c, e, r);
+ r && o(c), (r || t === "notice") && Vle(c, e, r);
}, [
c,
t,
@@ -26779,29 +26779,29 @@ function CM({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var _de = [
+var vde = [
{
label: "扫描并补全资料",
- icon: hT,
+ icon: mT,
command: {}
},
{
label: "只扫描",
- icon: yT,
+ icon: vT,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: lae,
+ icon: uae,
command: { stage: "collect" }
}
-], vde = vE(dM, fM, "text-body-2-medium"), yde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", bde = (e) => {
+], yde = gE(uM, dM, "text-body-2-medium"), bde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", xde = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, xde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + bde(e);
-function Sde({ busy: e, onRun: t }) {
+}, Sde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + xde(e);
+function Cde({ busy: e, onRun: t }) {
let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -26810,14 +26810,14 @@ function Sde({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: hT,
+ leadingIcon: mT,
onClick: () => a({}),
...X(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, V.jsx)(J, {
ref: n,
iconOnly: !0,
- leadingIcon: cT,
+ leadingIcon: sT,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -26826,19 +26826,19 @@ function Sde({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, V.jsx)(tk, {
+ }), /* @__PURE__ */ (0, V.jsx)($O, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: uM,
- children: /* @__PURE__ */ (0, V.jsx)(lM, {
+ className: lM,
+ children: /* @__PURE__ */ (0, V.jsx)(cM, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: _de.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: vde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
- className: vde,
+ className: yde,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, V.jsx)(t, {
"aria-hidden": !0,
@@ -26848,8 +26848,8 @@ function Sde({ busy: e, onRun: t }) {
})
})] });
}
-function Cde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Rle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Lle(e.notes || {}), c = vM();
+function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = zle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Rle(e.notes || {}), c = _M();
return /* @__PURE__ */ (0, V.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -26857,7 +26857,7 @@ function Cde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "处理较慢",
- children: yde
+ children: bde
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -26869,7 +26869,7 @@ function Cde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, V.jsxs)(GE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {
summary: a.label,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "relative",
@@ -26900,7 +26900,7 @@ function Cde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, V.jsx)(xM, {
+ children: /* @__PURE__ */ (0, V.jsx)(bM, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -26914,13 +26914,13 @@ function Cde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "success",
title: "处理完成",
- children: xde(n)
+ children: Sde(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, V.jsx)(xM, {
+ children: /* @__PURE__ */ (0, V.jsx)(bM, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -26932,38 +26932,38 @@ function Cde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function wM(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = CM(e), o = OS({
- mutationFn: (e) => K(IA, e),
+function CM(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = SM(e), o = DS({
+ mutationFn: (e) => K(FA, e),
onSuccess: (e) => {
- a(), z.setQueryData(LA, e), z.invalidateQueries({ queryKey: LA });
+ a(), z.setQueryData(IA, e), z.invalidateQueries({ queryKey: IA });
}
});
(0, B.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? BA : W(r.error) : "", l = o.isPending || s.status === "running", u = HA(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? zA : W(r.error) : "", l = o.isPending || s.status === "running", u = VA(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, V.jsx)(_M, {
+ children: [/* @__PURE__ */ (0, V.jsx)(gM, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(PE, {
+ /* @__PURE__ */ (0, V.jsx)(ME, {
href: "/scraping",
size: "small",
- trailingIcon: lT,
+ trailingIcon: cT,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, V.jsx)(PE, {
+ s.candidates ? /* @__PURE__ */ (0, V.jsx)(ME, {
href: "/review",
size: "small",
- trailingIcon: lT,
+ trailingIcon: cT,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Sde, {
+ /* @__PURE__ */ (0, V.jsx)(Cde, {
busy: l,
onRun: d
})
@@ -26971,12 +26971,12 @@ function wM(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(gM, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, V.jsx)(hM, { children: "扫描与采集" }),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: sde
+ children: cde
}),
- s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(SM, {
+ s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
label: u,
value: s.checked,
@@ -26984,7 +26984,7 @@ function wM(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, V.jsx)(Cde, {
+ }), /* @__PURE__ */ (0, V.jsx)(wde, {
state: s,
problem: c,
settled: i,
@@ -27000,7 +27000,7 @@ function wM(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function wde(e) {
+function Tde(e) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -27014,7 +27014,7 @@ function wde(e) {
})
});
}
-function Tde(e) {
+function Ede(e) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -27028,7 +27028,7 @@ function Tde(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Ede(e, t, n) {
+function Dde(e, t, n) {
(0, B.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -27042,7 +27042,7 @@ function Ede(e, t, n) {
n
]);
}
-function Dde(e, t) {
+function Ode(e, t) {
let n = (0, B.useRef)(!1);
return (0, B.useEffect)(() => {
if (!e) return;
@@ -27056,33 +27056,33 @@ function Dde(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var TM = (0, B.createContext)("md");
-function EM({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var wM = (0, B.createContext)("md");
+function TM({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, B.useRef)(null), u = (0, B.useRef)(null), [d, f] = (0, B.useState)(!1);
- Ede(d, () => f(!1), [l, u]);
- let p = Dde(d, l);
- return /* @__PURE__ */ (0, V.jsx)(Zse, {
+ Dde(d, () => f(!1), [l, u]);
+ let p = Ode(d, l);
+ return /* @__PURE__ */ (0, V.jsx)($se, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: vE("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(PD, {
+ className: gE("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(MD, {
ref: l,
- className: vE("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, V.jsx)(ece, {
- className: vE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: gE("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, V.jsx)(nce, {
+ className: gE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, V.jsx)(wde, { className: vE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, V.jsx)(tk, {
+ }), /* @__PURE__ */ (0, V.jsx)(Tde, { className: gE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, V.jsx)($O, {
ref: u,
isNonModal: !0,
offset: 4,
- className: vE(ade, uM, "p-2", n),
- children: /* @__PURE__ */ (0, V.jsx)(vse, {
+ className: gE(ode, lM, "p-2", n),
+ children: /* @__PURE__ */ (0, V.jsx)(bse, {
items: a,
- className: vE(ode, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, V.jsx)(TM.Provider, {
+ className: gE(sde, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, V.jsx)(wM.Provider, {
value: r,
children: i
})
@@ -27090,30 +27090,30 @@ function EM({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function DM({ className: e, children: t, ...n }) {
- let r = (0, B.useContext)(TM);
- return /* @__PURE__ */ (0, V.jsx)(xse, {
+function EM({ className: e, children: t, ...n }) {
+ let r = (0, B.useContext)(wM);
+ return /* @__PURE__ */ (0, V.jsx)(Cse, {
...n,
- className: (t) => vE(dM, 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) => gE(uM, 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/background-job.ts
-var OM = 2e3, Ode = (e) => e, kde = (e, t) => t;
-function kM(e) {
- let { queryKey: t, jobOf: n = Ode, withJob: r = kde, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);
+var DM = 2e3, kde = (e) => e, Ade = (e, t) => t;
+function OM(e) {
+ let { queryKey: t, jobOf: n = kde, withJob: r = Ade, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);
(0, B.useEffect)(() => {
l.current = e;
});
- let u = TS({
+ let u = wS({
queryKey: t,
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? OM : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? DM : i ?? !1;
}
- }), d = OS({
+ }), d = DS({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
o(!0), c(null), l.current.onStarted?.(e), z.setQueryData(t, (t) => r(t, e)), z.invalidateQueries({
@@ -27142,32 +27142,32 @@ function kM(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Ade = (e) => Se[e] || e, AM = (e) => z.setQueryData(GA, e);
-function jde() {
- let e = TS({
+var jde = (e) => Se[e] || e, kM = (e) => z.setQueryData(WA, e);
+function Mde() {
+ let e = wS({
+ queryKey: WA,
+ queryFn: ({ signal: e }) => KA(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && DM
+ }), t = wS({
queryKey: GA,
- queryFn: ({ signal: e }) => qA(e),
- refetchInterval: (e) => e.state.data?.status === "running" && OM
- }), t = TS({
- queryKey: KA,
- queryFn: ({ signal: e }) => JA(e)
- }), [n, r] = (0, B.useState)(""), i = AE(), a = e.data ?? Vle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ queryFn: ({ signal: e }) => qA(e)
+ }), [n, r] = (0, B.useState)(""), i = OE(), a = e.data ?? Hle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && Te({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => AM(await K(WA, {
+ onConfirm: async () => kM(await K(UA, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => K(WA, { stop: !0 }, "POST", e), AM), d = Ule(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => K(UA, { stop: !0 }, "POST", e), kM), d = Wle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, V.jsx)(_M, {
+ children: [/* @__PURE__ */ (0, V.jsx)(gM, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(EM, {
+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -27175,10 +27175,10 @@ function jde() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(DM, {
+ children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, V.jsx)(KE, { mark: Ade(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: jde(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: u,
@@ -27192,12 +27192,12 @@ function jde() {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(gM, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, V.jsx)(hM, { children: "媒体修复" }),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: cde
+ children: lde
}),
- s && a.total ? /* @__PURE__ */ (0, V.jsx)(kE, {
+ s && a.total ? /* @__PURE__ */ (0, V.jsx)(DE, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -27221,7 +27221,7 @@ function jde() {
f && a.missing_tool ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "缺少 untrunc",
- children: Wle(a)
+ children: Gle(a)
}) : null,
p ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -27233,7 +27233,7 @@ function jde() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var jM = {
+var AM = {
md: {
box: "size-4",
glyph: "size-4",
@@ -27247,11 +27247,11 @@ var jM = {
gap: "gap-1.5"
}
};
-function MM({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = jM[t], c = n || r, l = o && !a;
+function jM({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = AM[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
- className: vE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? vE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : vE("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: gE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gE("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, V.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -27275,36 +27275,36 @@ function MM({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function NM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = jM[n];
- return /* @__PURE__ */ (0, V.jsx)(ose, {
+function MM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = AM[n];
+ return /* @__PURE__ */ (0, V.jsx)(cse, {
ref: r,
...i,
- className: (t) => vE("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, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(MM, {
+ className: (t) => gE("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, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(jM, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: vE(a.label, "text-text-primary"),
+ className: gE(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function PM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function NM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: vE("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, V.jsx)(mce, {
+ className: gE("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, V.jsx)(gce, {
ref: r,
...i,
- className: vE("bui-table", e === "sm" && "bui-table-sm", t)
+ className: gE("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/row-click.ts
-var Mde = [
+var Nde = [
"a",
"button",
"input",
@@ -27317,15 +27317,15 @@ var Mde = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function FM(e, t) {
+function PM(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Mde);
+ let r = n.closest(Nde);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function IM({ children: e, follow: t = !1, onRowClick: n }) {
+function FM({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -27333,15 +27333,15 @@ function IM({ children: e, follow: t = !1, onRowClick: n }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && FM(e, r) && n(r.dataset.key);
+ r && PM(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Nde = oA("unlink"), LM = oA("rotate-cw"), Pde = "站点返回 404 或 410,确认这个地址不存在。", Fde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Ide = "删除前会逐条重验一次;此操作不可撤销。", Lde = "暂时无法读取进度,正在重新连接…", RM = (e) => Number(e || 0).toLocaleString();
-function zM({ label: e, value: t, note: n }) {
+var Pde = iA("unlink"), IM = iA("rotate-cw"), Fde = "站点返回 404 或 410,确认这个地址不存在。", Ide = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Lde = "删除前会逐条重验一次;此操作不可撤销。", Rde = "暂时无法读取进度,正在重新连接…", LM = (e) => Number(e || 0).toLocaleString();
+function RM({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -27360,11 +27360,11 @@ function zM({ label: e, value: t, note: n }) {
]
});
}
-function BM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: pM,
+ className: fM,
children: [
/* @__PURE__ */ (0, V.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -27377,13 +27377,13 @@ function BM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, V.jsx)(IM, { children: /* @__PURE__ */ (0, V.jsxs)(PM, {
+ /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Ik, { children: [
- i ? /* @__PURE__ */ (0, V.jsx)(Lk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
+ i ? /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "pick",
- children: /* @__PURE__ */ (0, V.jsx)(NM, {
+ children: /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -27391,44 +27391,44 @@ function BM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(zk, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(Hk, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)(NM, {
+ i ? /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: e.entity }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: vj[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: e.label || "" }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.entity }),
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: _j[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.label || "" }),
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -27438,7 +27438,7 @@ function BM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, V.jsx)(_T, {
+ }), /* @__PURE__ */ (0, V.jsx)(gT, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -27450,27 +27450,27 @@ function BM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Rde() {
- let e = TS({
- queryKey: hj,
- queryFn: ({ signal: e }) => bj(e)
- }), [t, n] = (0, B.useState)([]), r = kM({
- queryKey: _j,
- queryFn: ({ signal: e }) => Sj(e),
- start: vue,
+function zde() {
+ let e = wS({
+ queryKey: mj,
+ queryFn: ({ signal: e }) => yj(e)
+ }), [t, n] = (0, B.useState)([]), r = OM({
+ queryKey: gj,
+ queryFn: ({ signal: e }) => xj(e),
+ start: yue,
onFinish: () => {
z.invalidateQueries({
- queryKey: hj,
+ queryKey: mj,
exact: !0
}), z.invalidateQueries({
- queryKey: gj,
+ queryKey: hj,
exact: !0
});
}
- }), i = kM({
- queryKey: gj,
- queryFn: ({ signal: e }) => xj(e),
- start: _ue,
+ }), i = OM({
+ queryKey: hj,
+ queryFn: ({ signal: e }) => bj(e),
+ start: vue,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -27500,7 +27500,7 @@ function Rde() {
else if (_) b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "success",
title: "完成",
- children: yue(_)
+ children: bue(_)
});
else if (v) b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -27510,7 +27510,7 @@ function Rde() {
else if (i.query.isError && a) b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: Lde
+ children: Rde
});
else if (a?.status === "failed") b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -27518,12 +27518,12 @@ function Rde() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(SM, {
+ y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
- label: bue(a),
+ label: xue(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, V.jsx)(SM, {
+ }) : null, c ? /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -27531,38 +27531,38 @@ function Rde() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
b = l || u.length || d.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: mde,
+ className: hde,
children: [
- /* @__PURE__ */ (0, V.jsx)(BM, {
+ /* @__PURE__ */ (0, V.jsx)(zM, {
title: "地址已失效",
items: u,
- hint: Pde
+ hint: Fde
}),
- /* @__PURE__ */ (0, V.jsx)(BM, {
+ /* @__PURE__ */ (0, V.jsx)(zM, {
title: "本次未访问成功",
items: d,
- hint: Fde,
+ hint: Ide,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, V.jsxs)(mM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: LM,
+ children: /* @__PURE__ */ (0, V.jsxs)(pM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ leadingIcon: IM,
disabled: !t.length,
...X(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: LM,
+ leadingIcon: IM,
...X(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, V.jsx)(mM, {
+ l && u.length ? /* @__PURE__ */ (0, V.jsx)(pM, {
tone: "error",
- status: Ide,
+ status: Lde,
children: /* @__PURE__ */ (0, V.jsx)(J, {
variant: "danger",
...X(c),
@@ -27571,7 +27571,7 @@ function Rde() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, V.jsx)("p", {
- className: `${pM} text-body-regular text-notification-success-foreground`,
+ className: `${fM} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -27582,21 +27582,21 @@ function Rde() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, {
+ /* @__PURE__ */ (0, V.jsx)(mM, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, V.jsxs)(_M, {
+ /* @__PURE__ */ (0, V.jsxs)(gM, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: Nde,
+ leadingIcon: Pde,
...X(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, V.jsx)(gM, {
+ /* @__PURE__ */ (0, V.jsx)(hM, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -27607,13 +27607,13 @@ function Rde() {
children: W(e.error)
}) : p ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, V.jsx)(zM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(RM, {
label: "链接总数",
- value: RM(p.total),
- note: `分布在 ${RM(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(zM, {
- label: vj[e] || e,
- value: RM(t)
+ value: LM(p.total),
+ note: `分布在 ${LM(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(RM, {
+ label: _j[e] || e,
+ value: LM(t)
}, e))]
}), m ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -27642,11 +27642,11 @@ function Rde() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function zde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsxs)($oe, {
+function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, V.jsxs)(tse, {
"data-label": "true",
...a,
- className: vE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: gE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, V.jsx)("span", {
@@ -27654,7 +27654,7 @@ function zde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, V.jsx)(dae, {
+ n && /* @__PURE__ */ (0, V.jsx)(fae, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -27663,33 +27663,33 @@ function zde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Bde({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, V.jsx)(rse, {
+function Vde({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, V.jsx)(ase, {
slot: e ? "errorMessage" : "description",
...n,
- className: vE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: gE("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 VM = (0, B.createContext)({});
-function HM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsx)(VM.Provider, {
+var BM = (0, B.createContext)({});
+function VM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, V.jsx)(BM.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, V.jsx)(Bce, {
+ children: /* @__PURE__ */ (0, V.jsx)(Hce, {
...a,
"data-input-size": e,
- className: vE("group flex h-max w-full flex-col items-start gap-1", r),
+ className: gE("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-HM.displayName = "TextField";
-var UM = yE({
+VM.displayName = "TextField";
+var HM = _E({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -27718,44 +27718,44 @@ var UM = yE({
].join(" "),
icon: "size-5 shrink-0"
});
-function WM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, B.useContext)(VM), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, V.jsx)(cse, {
+function UM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, B.useContext)(BM), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, V.jsx)(use, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => vE(UM.field, d ? UM.fieldWithAddonSize[u] : UM.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 }) => gE(HM.field, d ? HM.fieldWithAddonSize[u] : HM.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, V.jsxs)("div", {
- className: UM.content,
+ className: HM.content,
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
- className: UM.leftSection,
+ className: HM.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, V.jsx)(t, {
- className: UM.icon,
+ className: HM.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, V.jsx)(use, {
+ }) : null, /* @__PURE__ */ (0, V.jsx)(fse, {
ref: o,
...c,
- className: vE(UM.input, l.inputClassName, a)
+ className: gE(HM.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, V.jsx)(n, {
- className: UM.icon,
+ className: HM.icon,
"aria-hidden": !0
}) : null]
})
});
}
-WM.displayName = "InputBase";
-function GM({ 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, V.jsx)(HM, {
+UM.displayName = "InputBase";
+function WM({ 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, V.jsx)(VM, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- e && /* @__PURE__ */ (0, V.jsx)(zde, {
+ e && /* @__PURE__ */ (0, V.jsx)(Bde, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(UM, {
ref: c,
groupRef: l,
placeholder: r,
@@ -27764,28 +27764,28 @@ function GM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, V.jsx)(Bde, {
+ t && /* @__PURE__ */ (0, V.jsx)(Vde, {
isInvalid: d,
children: t
})
] })
});
}
-GM.displayName = "Input";
+WM.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Vde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Hde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Ude = 8;
-function Wde({ plan: e }) {
+var Hde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Ude = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Wde = 8;
+function Gde({ plan: e }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Ude).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
+ children: e.rows.slice(0, Wde).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, V.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: Fj(e.current_path)
+ children: Pj(e.current_path)
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
@@ -27795,7 +27795,7 @@ function Wde({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: Fj(e.target_path)
+ children: Pj(e.target_path)
})
]
}, e.current_path))
@@ -27804,10 +27804,10 @@ function Wde({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Gde({ toast: e, failure: t }) {
- let n = TS({
- queryKey: Nj,
- queryFn: ({ signal: e }) => Pj(e)
+function Kde({ toast: e, failure: t }) {
+ let n = wS({
+ queryKey: Mj,
+ queryFn: ({ signal: e }) => Nj(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, B.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, B.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@ -27819,9 +27819,9 @@ function Gde({ toast: e, failure: t }) {
location: s,
file_template: d.file.trim(),
dir_template: d.dir.trim()
- }), v = OS({
- mutationFn: Mue,
- onSuccess: (e, t) => void Pue({
+ }), v = DS({
+ mutationFn: Nue,
+ onSuccess: (e, t) => void Fue({
...r?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -27829,29 +27829,29 @@ function Gde({ toast: e, failure: t }) {
}
}),
onError: (e) => {
- let t = Iue.test(W(e)) ? "dir" : "file";
+ let t = Lue.test(W(e)) ? "dir" : "file";
m(t), (t === "dir" ? g : h).current?.focus();
}
- }), y = kM({
- queryKey: Nj,
- queryFn: ({ signal: e }) => Pj(e),
- start: Nue,
+ }), y = OM({
+ queryKey: Mj,
+ queryFn: ({ signal: e }) => Nj(e),
+ start: Pue,
jobOf: (e) => e,
- withJob: Fue,
+ withJob: Iue,
onStarted: () => v.reset(),
onFinish: (n) => {
if (z.invalidateQueries({
- queryKey: Nj,
+ queryKey: Mj,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = Lj(n);
+ let { text: r, failed: i } = Ij(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
}), b = y.running || y.start.isPending, x = v.data, S = Number(x?.counts?.change || 0), C = se[s] || s, w = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), T = () => {
v.isPending || !s || (m(null), v.mutate(_()));
}, E = () => void Te({
title: "按模板整理文件",
- body: Vde(C),
+ body: Hde(C),
confirmLabel: "整理文件",
onConfirm: () => y.start.mutateAsync({
kind: "apply",
@@ -27859,13 +27859,13 @@ function Gde({ toast: e, failure: t }) {
})
}), D = () => void Te({
title: "回滚上一批整理",
- body: Hde,
+ body: Ude,
confirmLabel: "回滚整理",
onConfirm: () => y.start.mutateAsync({ kind: "rollback" })
}), O = null, k = y.job, A = y.outcome;
if (k?.status === "running") {
let e = k.message || k.stage || "正在整理文件…";
- O = /* @__PURE__ */ (0, V.jsx)(SM, {
+ O = /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
label: e,
value: k.checked,
@@ -27877,7 +27877,7 @@ function Gde({ toast: e, failure: t }) {
children: A.error || "请查看任务记录,核对已处理的文件。"
});
else if (A) {
- let { text: e, failed: t } = Lj(A);
+ let { text: e, failed: t } = Ij(A);
O = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -27887,7 +27887,7 @@ function Gde({ toast: e, failure: t }) {
tone: "error",
title: "整理失败",
children: W(y.start.error)
- }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(SM, {
+ }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
label: "正在按模板算计划…"
}) : v.isError ? O = /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -27897,9 +27897,9 @@ function Gde({ toast: e, failure: t }) {
}) : x && (O = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "预览结果",
- children: Lue(x)
- }), S ? /* @__PURE__ */ (0, V.jsx)(Wde, { plan: x }) : null] }));
- return /* @__PURE__ */ (0, V.jsxs)(_M, {
+ children: Rue(x)
+ }), S ? /* @__PURE__ */ (0, V.jsx)(Gde, { plan: x }) : null] }));
+ return /* @__PURE__ */ (0, V.jsxs)(gM, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -27923,7 +27923,7 @@ function Gde({ toast: e, failure: t }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, V.jsx)(gM, {
+ /* @__PURE__ */ (0, V.jsx)(hM, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -27943,20 +27943,20 @@ function Gde({ toast: e, failure: t }) {
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- i.length ? /* @__PURE__ */ (0, V.jsx)(EM, {
+ i.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: s || null,
onSelectionChange: (e) => {
e !== null && (o(String(e)), m(null), v.reset());
},
- children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(DM, {
+ children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {
id: e.location,
textValue: se[e.location] || e.location,
- children: [/* @__PURE__ */ (0, V.jsx)(KE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]
+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]
}, e.location))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: d.file,
@@ -27967,7 +27967,7 @@ function Gde({ toast: e, failure: t }) {
f({ file: e }), m(null);
}
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: d.dir,
@@ -28007,56 +28007,56 @@ function Gde({ toast: e, failure: t }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var Kde = "/api/orphan-records", qde = "/api/orphan-records/attach", KM = ["orphan-records"], Jde = [
+var qde = "/api/orphan-records", Jde = "/api/orphan-records/attach", GM = ["orphan-records"], Yde = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Yde = (e) => G(Kde, e), Xde = (e, t) => K(qde, {
+], Xde = (e) => G(qde, e), Zde = (e, t) => K(Jde, {
id: e,
target: t
-}), Zde = (e) => K(jA, {
+}), Qde = (e) => K(AA, {
ids: [e],
operation: "delete"
-}), Qde = (e) => [
+}), $de = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], qM = (e) => [...Jde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Qde(e)].filter(Boolean).join(" · "), $de = (e) => e ? `${Math.round(e / 60)} 分钟` : "", JM = (e) => [e.name, $de(e.duration)].filter(Boolean).join(" · "), efe = oA("play"), YM = () => z.invalidateQueries({
- queryKey: KM,
+], KM = (e) => [...Yde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...$de(e)].filter(Boolean).join(" · "), efe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", qM = (e) => [e.name, efe(e.duration)].filter(Boolean).join(" · "), tfe = iA("play"), JM = () => z.invalidateQueries({
+ queryKey: GM,
exact: !0
});
-function tfe({ item: e, toast: t }) {
- let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = OS({
- mutationFn: () => Xde(e.id, Number(n)),
+function nfe({ item: e, toast: t }) {
+ let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = DS({
+ mutationFn: () => Zde(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), YM();
+ t(`记录已接到新文件,批次 ${e.batch}`), JM();
},
onError: (e) => t(W(e))
- }), a = OS({
- mutationFn: () => Zde(e.id),
+ }), a = DS({
+ mutationFn: () => Qde(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), YM();
+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), JM();
}
}), o = () => {
Te({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${qM(e.records)})。此操作不可撤销。`,
+ body: `将删除「${e.name}」这一条和它带的记录(${KM(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => a.mutateAsync()
});
}, s = i.isPending || a.isPending;
- return /* @__PURE__ */ (0, V.jsxs)(Hk, {
+ return /* @__PURE__ */ (0, V.jsxs)(Bk, {
id: e.id,
children: [
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, V.jsx)(efe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(tfe, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, V.jsx)("img", {
@@ -28078,27 +28078,27 @@ function tfe({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "block min-w-44",
- children: qM(e.records)
+ children: KM(e.records)
}) }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(Number(e));
},
- children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e.id,
- textValue: JM(e),
- children: JM(e)
+ textValue: qM(e),
+ children: qM(e)
}, e.id))
}) : /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
@@ -28118,23 +28118,23 @@ function tfe({ item: e, toast: t }) {
]
});
}
-function nfe({ toast: e }) {
- let t = TS({
- queryKey: KM,
- queryFn: ({ signal: e }) => Yde(e)
+function rfe({ toast: e }) {
+ let t = wS({
+ queryKey: GM,
+ queryFn: ({ signal: e }) => Xde(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, V.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, V.jsx)(hM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(mM, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, V.jsxs)(_M, {
+ }), /* @__PURE__ */ (0, V.jsxs)(gM, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, V.jsx)(gM, {
+ /* @__PURE__ */ (0, V.jsx)(hM, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -28147,28 +28147,28 @@ function nfe({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: W(t.error)
- }) : /* @__PURE__ */ (0, V.jsx)(IM, { children: /* @__PURE__ */ (0, V.jsxs)(PM, {
+ }) : /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Ik, { children: [
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(zk, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(tfe, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(nfe, {
item: t,
toast: e
}, t.id)) })]
@@ -28179,99 +28179,99 @@ function nfe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var rfe = oA("git-compare"), ife = oA("rotate-cw"), afe = "暂时无法读取进度,正在重新连接…", XM = "清理失效条目", ZM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", QM = (e) => Number(e || 0).toLocaleString();
-function ofe({ scan: e }) {
+var ife = iA("git-compare"), afe = iA("rotate-cw"), ofe = "暂时无法读取进度,正在重新连接…", YM = "清理失效条目", XM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", ZM = (e) => Number(e || 0).toLocaleString();
+function sfe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
- className: ZM,
+ className: XM,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, V.jsx)("article", {
- className: oM(),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
- label: Hue[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, V.jsx)(KE, { mark: Se[e.location] ?? "database" }),
+ className: aM(),
+ children: /* @__PURE__ */ (0, V.jsx)(oM, {
+ label: Uue[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, V.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${QM(e.missing)} 项` : "—",
- meta: Kue(e),
+ figure: e.online ? `${ZM(e.missing)} 项` : "—",
+ meta: que(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, V.jsxs)("div", {
- className: ZM,
+ className: XM,
children: [
/* @__PURE__ */ (0, V.jsx)("article", {
- className: oM(),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
+ className: aM(),
+ children: /* @__PURE__ */ (0, V.jsx)(oM, {
label: "待永久删除",
- figure: `${QM(Kj(e))} 项`,
+ figure: `${ZM(Gj(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, V.jsx)("article", {
- className: oM(),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
+ className: aM(),
+ children: /* @__PURE__ */ (0, V.jsx)(oM, {
label: "将标为已消失",
- figure: `${QM(e.vanish)} 项`,
+ figure: `${ZM(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, V.jsx)("article", {
- className: oM(),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
+ className: aM(),
+ children: /* @__PURE__ */ (0, V.jsx)(oM, {
label: "空文件夹",
- figure: `${QM(e.empty)} 个`,
+ figure: `${ZM(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, V.jsx)("article", {
- className: oM(),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
+ className: aM(),
+ children: /* @__PURE__ */ (0, V.jsx)(oM, {
label: "可清理的缓存",
- figure: `${QM(t.files)} 个`,
+ figure: `${ZM(t.files)} 个`,
meta: t.files ? pe(t.bytes) : ""
})
})
]
})] });
}
-function sfe({ toast: e }) {
- let t = kM({
- queryKey: Vj,
- queryFn: ({ signal: e }) => Uj(e),
- start: zue,
+function cfe({ toast: e }) {
+ let t = OM({
+ queryKey: Bj,
+ queryFn: ({ signal: e }) => Hj(e),
+ start: Bue,
onFinish: (t) => {
if (z.invalidateQueries({
- queryKey: $j,
+ queryKey: Qj,
exact: !0
}), z.invalidateQueries({
- queryKey: Bj,
+ queryKey: zj,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = Yj(t);
- r ? e(`已完成 ${QM(n)} 项,${QM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = Jj(t);
+ r ? e(`已完成 ${ZM(n)} 项,${ZM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = kM({
- queryKey: Bj,
- queryFn: ({ signal: e }) => Hj(e),
- start: Rue,
+ }), n = OM({
+ queryKey: zj,
+ queryFn: ({ signal: e }) => Vj(e),
+ start: zue,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void Te({
- title: XM,
- body: Gue(e),
- confirmLabel: XM,
+ title: YM,
+ body: Kue(e),
+ confirmLabel: YM,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = Yj(e).left > 0;
+ let t = Jj(e).left > 0;
return /* @__PURE__ */ (0, V.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: que(e, pe)
+ children: Jue(e, pe)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -28280,7 +28280,7 @@ function sfe({ toast: e }) {
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(SM, {
+ else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -28292,11 +28292,11 @@ function sfe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: afe
+ children: ofe
});
else if (r?.status === "running") {
- let e = Uue(r);
- d = /* @__PURE__ */ (0, V.jsx)(SM, {
+ let e = Wue(r);
+ d = /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -28313,13 +28313,13 @@ function sfe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Vue(r);
+ let e = Hue(r);
f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(ofe, { scan: r }),
+ /* @__PURE__ */ (0, V.jsx)(sfe, { scan: r }),
e ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "清理内容",
- children: Wue(r)
+ children: Gue(r)
}) : null,
/* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -28327,7 +28327,7 @@ function sfe({ toast: e }) {
variant: "danger",
...X(a),
onClick: () => c(r),
- children: a ? "正在复核并清理…" : XM
+ children: a ? "正在复核并清理…" : YM
}) : /* @__PURE__ */ (0, V.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -28344,16 +28344,16 @@ function sfe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, {
+ /* @__PURE__ */ (0, V.jsx)(mM, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, V.jsxs)(_M, {
+ /* @__PURE__ */ (0, V.jsxs)(gM, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, V.jsx)(J, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? ife : rfe,
+ leadingIcon: o && !i ? afe : ife,
...X(i),
onClick: () => {
i || n.start.mutate();
@@ -28361,7 +28361,7 @@ function sfe({ toast: e }) {
children: s
}),
children: [
- /* @__PURE__ */ (0, V.jsx)(gM, {
+ /* @__PURE__ */ (0, V.jsx)(hM, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -28387,16 +28387,16 @@ function sfe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function $M(e, t) {
+function QM(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function eN({ section: e, label: t, icon: n, value: r, open: i }) {
+function $M({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
- className: oM({ interactive: !0 }),
+ className: aM({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
+ children: /* @__PURE__ */ (0, V.jsx)(oM, {
label: t,
icon: n,
figure: r.figure,
@@ -28404,80 +28404,80 @@ function eN({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var cfe = oA("square-check-big"), lfe = oA("sparkles"), ufe = oA("file-stack"), dfe = oA("file-archive"), ffe = oA("trash"), pfe = [
- Xj,
- XA,
- AA
-], mfe = () => {
- for (let e of pfe) z.invalidateQueries({
+var lfe = iA("square-check-big"), ufe = iA("sparkles"), dfe = iA("file-stack"), ffe = iA("file-archive"), pfe = iA("trash"), mfe = [
+ Yj,
+ YA,
+ kA
+], hfe = () => {
+ for (let e of mfe) z.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function hfe({ toast: e, failure: t, open: n }) {
- let r = TS({
+function gfe({ toast: e, failure: t, open: n }) {
+ let r = wS({
+ queryKey: Yj,
+ queryFn: ({ signal: e }) => $j(e)
+ }), i = wS({
+ queryKey: YA,
+ queryFn: ({ signal: e }) => XA(e)
+ }), a = wS({
+ queryKey: kA,
+ queryFn: ({ signal: e }) => jA(e)
+ }), o = wS({
queryKey: Xj,
queryFn: ({ signal: e }) => eM(e)
- }), i = TS({
- queryKey: XA,
- queryFn: ({ signal: e }) => ZA(e)
- }), a = TS({
- queryKey: AA,
- queryFn: ({ signal: e }) => MA(e)
- }), o = TS({
- queryKey: Zj,
+ }), s = wS({
+ queryKey: Qj,
queryFn: ({ signal: e }) => tM(e)
- }), s = TS({
- queryKey: $j,
- queryFn: ({ signal: e }) => nM(e)
- }), c = TS({
+ }), c = wS({
queryKey: tt,
queryFn: ({ signal: e }) => rt(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, V.jsxs)(DE, { children: [
+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: ide,
+ className: ade,
children: [
- /* @__PURE__ */ (0, V.jsx)(eN, {
+ /* @__PURE__ */ (0, V.jsx)($M, {
section: "review",
label: "人工复核",
- icon: cfe,
+ icon: lfe,
open: n,
- value: $M(r, Zue)
+ value: QM(r, Que)
}),
- /* @__PURE__ */ (0, V.jsx)(eN, {
+ /* @__PURE__ */ (0, V.jsx)($M, {
section: "quality",
label: "高清版",
- icon: lfe,
+ icon: ufe,
open: n,
- value: $M(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: QM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, V.jsx)(eN, {
+ /* @__PURE__ */ (0, V.jsx)($M, {
section: "duplicates",
label: "重复文件",
- icon: ufe,
+ icon: dfe,
open: n,
- value: $M(a, (e) => Number(e.total || 0) ? {
+ value: QM(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${pe(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, V.jsx)(eN, {
+ /* @__PURE__ */ (0, V.jsx)($M, {
section: "ads",
label: "垃圾文件",
- icon: dfe,
+ icon: ffe,
open: n,
- value: $M(o, (e) => ({
+ value: QM(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: Que(e)
+ meta: $ue(e)
}))
}),
- /* @__PURE__ */ (0, V.jsx)(eN, {
+ /* @__PURE__ */ (0, V.jsx)($M, {
section: "trash",
label: "回收站",
- icon: ffe,
+ icon: pfe,
open: n,
- value: $M(s, (e) => ({
+ value: QM(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${pe(e.bytes || 0)}` : ""
}))
@@ -28490,31 +28490,31 @@ function hfe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, V.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, V.jsx)(wM, {
+ children: /* @__PURE__ */ (0, V.jsx)(CM, {
toast: l,
monitor: !0,
- onComplete: mfe
+ onComplete: hfe
})
}),
/* @__PURE__ */ (0, V.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, V.jsx)(jde, {})
+ children: /* @__PURE__ */ (0, V.jsx)(Mde, {})
}),
- /* @__PURE__ */ (0, V.jsx)(Gde, {
+ /* @__PURE__ */ (0, V.jsx)(Kde, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Rde, {}),
- /* @__PURE__ */ (0, V.jsx)(nfe, { toast: l }),
- Wj(c.data) ? /* @__PURE__ */ (0, V.jsx)(sfe, { toast: e }) : null
+ /* @__PURE__ */ (0, V.jsx)(zde, {}),
+ /* @__PURE__ */ (0, V.jsx)(rfe, { toast: l }),
+ Uj(c.data) ? /* @__PURE__ */ (0, V.jsx)(cfe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var tN = (e) => ["feed-new", e ?? "home"], gfe = 8, _fe = 1500;
-function vfe(e, t, n) {
+var eN = (e) => ["feed-new", e ?? "home"], _fe = 8, vfe = 1500;
+function yfe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -28525,32 +28525,32 @@ function vfe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function yfe(e, t, n) {
+async function bfe(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
let i = await ce(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await vfe(s, gfe, _fe), {
+ return n && o.length && await yfe(s, _fe, vfe), {
items: o,
html: s
};
}
-var nN = (e, t, n = !1) => ({
- queryKey: tN(e),
- queryFn: () => yfe(e, t, n),
+var tN = (e, t, n = !1) => ({
+ queryKey: eN(e),
+ queryFn: () => bfe(e, t, n),
staleTime: Infinity
-}), rN = (e, t) => ce("/api/feeds/discovery", {
+}), nN = (e, t) => ce("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function bfe(e) {
- z.removeQueries({ queryKey: tN(null) }), await z.fetchQuery(nN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function xfe(e) {
+ z.removeQueries({ queryKey: eN(null) }), await z.fetchQuery(tN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var xfe = [
+var Sfe = [
"loc",
"creator",
"tag",
@@ -28560,51 +28560,51 @@ var xfe = [
"orient",
"sort",
"dir"
-], iN = {
+], rN = {
media: "videos",
set: 0
-}, aN = (e, t) => [
+}, iN = (e, t) => [
"entity",
e,
t
-], Sfe = (e, t, n, r) => [
+], Cfe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], oN = (e, t, n, r) => [
+], aN = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], sN = (e) => String(e || "").split(",").filter(Boolean), Cfe = (e, t) => sN(e).includes(t);
-function cN(e, t, n, r, i = 0) {
+], oN = (e) => String(e || "").split(",").filter(Boolean), wfe = (e, t) => oN(e).includes(t);
+function sN(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), 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 xfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of Sfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function lN(e, t, n, r, i, a) {
- return await ce(`/api/items?${cN(e, t, n, r, i)}`, a ? { signal: a } : {});
+async function cN(e, t, n, r, i, a) {
+ return await ce(`/api/items?${sN(e, t, n, r, i)}`, a ? { signal: a } : {});
}
-var uN = (e) => {
+var lN = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = cN(e.kind, e.name, e.filters, t).toString();
+ }, n = sN(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: Sfe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => lN(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: Cfe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => cN(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, dN = (e, t) => ({
- queryKey: aN(e, t),
+}, uN = (e, t) => ({
+ queryKey: iN(e, t),
queryFn: ({ signal: n }) => ce(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function wfe(e, t, n, r, i, a) {
+function Tfe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -28613,10 +28613,10 @@ function wfe(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 fN = (e, t, n, r) => ({
- queryKey: oN(e, t, n, r),
+var dN = (e, t, n, r) => ({
+ queryKey: aN(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await ce(wfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await ce(Tfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -28629,8 +28629,8 @@ var fN = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), pN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function Tfe(e) {
+}), fN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function Efe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -28642,51 +28642,51 @@ async function Tfe(e) {
n
] });
await Promise.all([
- z.fetchQuery(dN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: tN(Number(t.id)) }), z.fetchQuery(nN(Number(t.id), e.helpers.feedRowHtml, !0)))),
- z.fetchQuery(uN(e)),
- z.fetchInfiniteQuery(fN(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(fN(t, n, e.media.set, "")) : null
+ z.fetchQuery(uN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: eN(Number(t.id)) }), z.fetchQuery(tN(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ z.fetchQuery(lN(e)),
+ z.fetchInfiniteQuery(dN(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(dN(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Efe = "/api/follow/authors", Dfe = "/api/follow/tags", Ofe = (e) => [
+var Dfe = "/api/follow/authors", Ofe = "/api/follow/tags", kfe = (e) => [
"follow",
"authors",
e
-], kfe = (e, t) => [
+], Afe = (e, t) => [
"follow",
"tags",
e,
t
];
-function Afe(e, t, n) {
+function jfe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Efe}?${r}`;
+ return e && r.set("q", e), `${Dfe}?${r}`;
}
-function jfe(e, t, n, r) {
+function Mfe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Dfe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Ofe}?${i}`;
}
-var Mfe = (e, t, n, r) => G(Afe(e, t, n), r), Nfe = (e, t, n, r, i) => G(jfe(e, t, n, r), i), Pfe = "/api/index", mN = {
+var Nfe = (e, t, n, r) => G(jfe(e, t, n), r), Pfe = (e, t, n, r, i) => G(Mfe(e, t, n, r), i), Ffe = "/api/index", pN = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Ffe = {
+}, Ife = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, hN = [
+}, mN = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -28696,38 +28696,38 @@ var Mfe = (e, t, n, r) => G(Afe(e, t, n), r), Nfe = (e, t, n, r, i) => G(jfe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], gN = [
+], hN = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], _N = [
+], gN = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], vN = {
+], _N = {
people: 120,
tags: 180
-}, yN = (e) => e !== "tags", bN = (e) => e === "studios" || e === "agencies";
-function xN(e) {
- if (e.kind === "creators" && e.category === "animation") return xN({
+}, vN = (e) => e !== "tags", yN = (e) => e === "studios" || e === "agencies";
+function bN(e) {
+ if (e.kind === "creators" && e.category === "animation") return bN({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? gN : hN : e.kind === "performers" && t === "local" ? _N : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? hN : mN : e.kind === "performers" && t === "local" ? gN : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function SN(e) {
+function xN(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -28747,50 +28747,50 @@ function SN(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var CN = (e, t, n = "all") => [
+var SN = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function wN(e, t, n, r, i) {
+function CN(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Pfe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Ffe}?${a}`;
}
-function TN(e) {
- let t = e.what === "people" || e.what === "online-authors" ? vN.people : vN.tags, n = {
+function wN(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? _N.people : _N.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: CN(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: n, signal: r }) => G(wN(e.kind, e.q, e.category || "all", t, n), r)
+ queryKey: SN(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: n, signal: r }) => G(CN(e.kind, e.q, e.category || "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: CN("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => G(wN("tags", e.q, e.category, t, n), r)
+ queryKey: SN("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => G(CN("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: Ofe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => Mfe(e.q, t, n, r)
+ queryKey: kfe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Nfe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: kfe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Nfe(e.q, e.category, t, n, r)
+ queryKey: Afe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Pfe(e.q, e.category, t, n, r)
};
}
}
-async function Ife(e, t) {
- let n = TN(SN(xN(e)));
+async function Lfe(e, t) {
+ let n = wN(xN(bN(e)));
z.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -28804,13 +28804,13 @@ async function Ife(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Lfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Rfe = (e, t) => `${e}${t ? "+" : ""} 项`, EN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", zfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Bfe = {
+var Rfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], zfe = (e, t) => `${e}${t ? "+" : ""} 项`, TN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Bfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Vfe = {
numeric: !0,
sensitivity: "base"
};
-function Vfe(e, t) {
+function Hfe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Bfe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Vfe))) {
let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -28818,7 +28818,7 @@ function Vfe(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function DN({ html: e, face: t, company: n, big: r }) {
+function EN({ html: e, face: t, company: n, big: r }) {
let i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -28830,18 +28830,18 @@ function DN({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Hfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function ON({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Ufe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function DN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: wE({
+ className: SE({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Hfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Ufe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -28858,23 +28858,23 @@ function ON({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function kN({ kind: e, items: t, layout: n, props: r }) {
- let i = bN(e), a = n === "big";
+function ON({ kind: e, items: t, layout: n, props: r }) {
+ let i = yN(e), a = n === "big";
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || Ffe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, V.jsx)(ON, {
+ let n = t.entity_kind || Ife[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, V.jsx)(DN, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${zfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${Bfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, V.jsx)(DN, {
+ children: /* @__PURE__ */ (0, V.jsx)(EN, {
html: o.html,
face: o.face,
company: i,
@@ -28884,21 +28884,21 @@ function kN({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Ufe({ items: e, layout: t, props: n }) {
+function Wfe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(ON, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(DN, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, V.jsx)(DN, {
+ children: /* @__PURE__ */ (0, V.jsx)(EN, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -28908,7 +28908,7 @@ function Ufe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Wfe = /* @__PURE__ */ xt(((e) => {
+var Gfe = /* @__PURE__ */ xt(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -29107,10 +29107,10 @@ var Wfe = /* @__PURE__ */ xt(((e) => {
}
};
};
-})), Gfe = /* @__PURE__ */ xt(((e, t) => {
- t.exports = Wfe();
-})), Kfe = /* @__PURE__ */ xt(((e) => {
- var t = Gfe(), n = Ot(), r = At();
+})), Kfe = /* @__PURE__ */ xt(((e, t) => {
+ t.exports = Gfe();
+})), qfe = /* @__PURE__ */ xt(((e) => {
+ var t = Kfe(), n = Ot(), r = At();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -37520,7 +37520,7 @@ var Wfe = /* @__PURE__ */ xt(((e) => {
var n = !1, r = "", o = Tc, s = Ec, c = Dc;
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[bt] = t.current, ep(e), new $h(t);
};
-})), AN = (/* @__PURE__ */ xt(((e, t) => {
+})), kN = (/* @__PURE__ */ xt(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -37528,16 +37528,16 @@ var Wfe = /* @__PURE__ */ xt(((e) => {
console.error(e);
}
}
- n(), t.exports = Kfe();
+ n(), t.exports = qfe();
})))();
-function qfe(e) {
+function Jfe(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}%`);
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var jN = "/vendor/swiper/14.2.0/", MN = null, Jfe = () => MN ??= Promise.all([new Promise((e, t) => {
- let n = `${jN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var AN = "/vendor/swiper/14.2.0/", jN = null, Yfe = () => jN ??= Promise.all([new Promise((e, t) => {
+ let n = `${AN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -37551,11 +37551,11 @@ var jN = "/vendor/swiper/14.2.0/", MN = null, Jfe = () => MN ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${jN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${AN}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 MN = null, e;
+ throw jN = null, e;
});
-function Yfe(e, t, n) {
+function Xfe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -37576,48 +37576,48 @@ function Yfe(e, t, n) {
}
};
}
-var NN = (e) => {
+var MN = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : pe(t)).replace(" ", "\xA0") : "大小未知";
-}, Xfe = (e) => e.asset?.name || e.name || "未命名图片";
-function Zfe(e, t) {
+}, Zfe = (e) => e.asset?.name || e.name || "未命名图片";
+function Qfe(e, t) {
let n = e.asset;
- if (n) return [se[n.location ?? ""] || n.location || "来源未知", NN(n.size)].join(" · ");
+ if (n) return [se[n.location ?? ""] || n.location || "来源未知", MN(n.size)].join(" · ");
let r = (e.total ?? 0) > 1 ? `第 ${e.position} / ${e.total} 张` : "", i = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
i,
- e.size ? NN(e.size) : ""
+ e.size ? MN(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var PN = null, FN = null, Qfe = 0;
-function $fe() {
- return (!FN || !PN?.isConnected) && (FN?.unmount(), PN = document.createElement("div"), PN.className = "peach-react", PN.dataset.photoLightboxHost = "", document.body.append(PN), FN = (0, AN.createRoot)(PN)), FN;
+var NN = null, PN = null, $fe = 0;
+function epe() {
+ return (!PN || !NN?.isConnected) && (PN?.unmount(), NN = document.createElement("div"), NN.className = "peach-react", NN.dataset.photoLightboxHost = "", document.body.append(NN), PN = (0, kN.createRoot)(NN)), PN;
}
-async function IN(e, t, n) {
+async function FN(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Jfe();
+ r = await Yfe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = $fe();
- (0, $f.flushSync)(() => i.render(/* @__PURE__ */ (0, V.jsx)(epe, {
+ let i = epe();
+ (0, $f.flushSync)(() => i.render(/* @__PURE__ */ (0, V.jsx)(tpe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Qfe)));
+ }, ++$fe)));
}
-function LN() {
- FN && (0, $f.flushSync)(() => FN.render(null));
+function IN() {
+ PN && (0, $f.flushSync)(() => PN.render(null));
}
-function epe({ slides: e, index: t, Swiper: n, host: r }) {
+function tpe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, B.useId)(), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), [_, v] = (0, B.useState)(t), [y, b] = (0, B.useState)(100), [x, S] = (0, B.useState)({}), [C, w] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, B.useState)(!1), [D, O] = (0, B.useState)({
at: t,
text: ""
@@ -37660,7 +37660,7 @@ function epe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Yfe(e, a, b);
+ i(t, 0), h.current = Xfe(e, a, b);
let m = Ye(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -37677,13 +37677,13 @@ function epe({ 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) : LN());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : IN());
};
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, B.useLayoutEffect)(() => {
- m.current && qfe(m.current);
+ m.current && Jfe(m.current);
}, [y]);
let k = e[_], A = k.asset ?? null, j = async (e) => {
if (!A || !r || e.getAttribute("aria-busy") === "true") return;
@@ -37714,18 +37714,18 @@ function epe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), LN();
+ e.preventDefault(), IN();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && LN();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && IN();
},
children: [
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: LN,
+ onClick: IN,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -37858,10 +37858,10 @@ function epe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Xfe(k)
+ children: Zfe(k)
}, _), /* @__PURE__ */ (0, V.jsx)("span", {
"data-photo-detail-meta": "",
- children: Zfe(k, x[_])
+ children: Qfe(k, x[_])
})]
}),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -37900,33 +37900,33 @@ function epe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function tpe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, V.jsx)(npe, {
+function npe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, V.jsx)(rpe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, V.jsx)(rpe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, V.jsx)(ope, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, V.jsx)(ipe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, V.jsx)(spe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function npe({ roster: e, props: t }) {
+function rpe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, B.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, V.jsx)(kN, {
+ return /* @__PURE__ */ (0, V.jsx)(ON, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function rpe(e) {
- let t = hA(!e.items, e.skeletonHtml);
+function ipe(e) {
+ let t = pA(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(EA, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(wA, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -37945,16 +37945,16 @@ function rpe(e) {
}) : null]
});
}
-var ipe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var ape = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), RN = (e) => e.sample === !0, zN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, BN = (e) => RN(e) ? `/sample-thumb?${zN(e)}` : `/photo-thumb?id=${e.id}`, ape = (e) => RN(e) ? {
- src: `/sample-image?${zN(e)}`,
- thumb: BN(e),
+})), LN = (e) => e.sample === !0, RN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, zN = (e) => LN(e) ? `/sample-thumb?${RN(e)}` : `/photo-thumb?id=${e.id}`, ope = (e) => LN(e) ? {
+ src: `/sample-image?${RN(e)}`,
+ thumb: zN(e),
name: e.name,
asset: null,
source: e.source,
@@ -37962,18 +37962,18 @@ var ipe = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: BN(e),
+ thumb: zN(e),
name: e.name || "",
asset: e
};
-function ope({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(ipe), ...e.items], [e]), [s, c] = (0, B.useState)(() => /* @__PURE__ */ new Set()), l = (0, B.useCallback)((e) => c((t) => {
+function spe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(ape), ...e.items], [e]), [s, c] = (0, B.useState)(() => /* @__PURE__ */ new Set()), l = (0, B.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, B.useCallback)((e) => {
- IN(e, o.map(ape), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, V.jsx)(spe, {
+ FN(e, o.map(ope), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, V.jsx)(cpe, {
item: e,
index: t,
lost: s.has(t),
@@ -37991,7 +37991,7 @@ function ope({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(VN, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(BN, {
label: e.code,
title: e.name,
meta: [
@@ -38003,7 +38003,7 @@ function ope({ 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, V.jsx)(VN, {
+ m.length && e.total ? /* @__PURE__ */ (0, V.jsx)(BN, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -38012,14 +38012,14 @@ function ope({ 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, V.jsx)(DA, {
+ e.hasMore ? /* @__PURE__ */ (0, V.jsx)(EA, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function VN({ label: e, title: t, meta: n }) {
+function BN({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -38036,7 +38036,7 @@ function VN({ label: e, title: t, meta: n }) {
]
});
}
-function spe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function cpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -38045,7 +38045,7 @@ function spe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, V.jsx)("img", {
- src: BN(e),
+ src: zN(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -38054,7 +38054,7 @@ function spe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
})
});
}
-function HN(e) {
+function VN(e) {
return {
x0: 0,
y0: 0,
@@ -38062,7 +38062,7 @@ function HN(e) {
y1: e.height
};
}
-function UN(e) {
+function HN(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -38070,40 +38070,40 @@ function UN(e) {
y1: Math.round(e.y1)
};
}
-function WN(e) {
+function UN(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function GN(e, t) {
- if (!WN(e)) return {
+function WN(e, t) {
+ if (!UN(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return HN(e);
+ if (t == null || !(t > 0)) return VN(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 UN({
+ return HN({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function cpe(e, t) {
- if (!WN(e) || !(t > 0)) return HN(e);
+function lpe(e, t) {
+ if (!UN(e) || !(t > 0)) return VN(e);
let n = Math.min(e.width, e.height * t);
- return UN({
+ return HN({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function lpe(e, t, n) {
- if (!WN(t) || !(n > 0)) return HN(t);
- let r = KN(e, t), i = GN({
+function upe(e, t, n) {
+ if (!UN(t) || !(n > 0)) return VN(t);
+ let r = GN(e, t), i = WN({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -38114,8 +38114,8 @@ function lpe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function KN(e, t, n = null, r = "width") {
- if (!WN(t)) return {
+function GN(e, t, n = null, r = "width") {
+ if (!UN(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -38124,43 +38124,43 @@ function KN(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 UN({
+ return HN({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function qN(e, t, n, r) {
+function KN(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 UN({
+ return HN({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function JN(e, t, n, r = null) {
- if (!WN(n) || !(t > 0)) return e;
+function qN(e, t, n, r = null) {
+ if (!UN(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 KN({
+ return GN({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function upe(e, t, n, r, i = null) {
+function dpe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return KN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return GN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function dpe(e, t) {
- return WN(t) ? {
+function fpe(e, t) {
+ return UN(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -38172,8 +38172,8 @@ function dpe(e, t) {
height: 0
};
}
-function fpe(e, t) {
- if (!WN(t)) return {
+function ppe(e, t) {
+ if (!UN(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -38183,7 +38183,7 @@ function fpe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function ppe(e, t) {
+function mpe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -38192,29 +38192,29 @@ function ppe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function YN(e, t, n) {
+function JN(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var mpe = {
+var hpe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function XN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function YN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = Zm();
- return /* @__PURE__ */ (0, V.jsx)(gk, {
+ return /* @__PURE__ */ (0, V.jsx)(mk, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
"data-modal-motion": "",
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, V.jsx)(zse, {
+ children: /* @__PURE__ */ (0, V.jsx)(Vse, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${mpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, V.jsx)(fk, {
+ className: `flex max-h-full w-full ${hpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, V.jsx)(uk, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -38222,7 +38222,7 @@ function XN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function ZN({ children: e }) {
+function XN({ children: e }) {
return /* @__PURE__ */ (0, V.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",
@@ -38231,8 +38231,8 @@ function ZN({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var hpe = .02, QN = 1.08;
-function $N({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var gpe = .02, ZN = 1.08;
+function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, B.useRef)(null), c = (0, B.useRef)(null), [l, u] = (0, B.useState)(!1);
(0, B.useEffect)(() => {
u(!1);
@@ -38243,8 +38243,8 @@ function $N({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: YN(e, n.clientWidth, r.width),
- dy: YN(t, n.clientHeight, r.height)
+ dx: JN(e, n.clientWidth, r.width),
+ dy: JN(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -38262,29 +38262,29 @@ function $N({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(qN(n.box, o.dx, o.dy, r));
+ i(KN(n.box, o.dx, o.dy, r));
return;
}
- i(upe(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));
+ i(dpe(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 m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * hpe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * gpe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(qN(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(KN(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(JN(n, e.key === "-" ? 1 / QN : QN, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(qN(n, e.key === "-" ? 1 / ZN : ZN, r, t)));
}
- let g = n && r ? dpe(KN(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? fpe(GN(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -38303,7 +38303,7 @@ function $N({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- WN({
+ UN({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -38342,7 +38342,7 @@ function $N({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(JN(n, e.deltaY > 0 ? QN : 1 / QN, r, t));
+ !n || !r || i(qN(n, e.deltaY > 0 ? ZN : 1 / ZN, 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, V.jsx)("span", {
@@ -38364,20 +38364,20 @@ function $N({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var gpe = "/api/avatar-choices", eP = "/api/avatar-pick", _pe = "/api/avatar-code-cover", vpe = "/avatar-choice", tP = (e, t) => [
+var $N = "/api/avatar-choices", eP = "/api/avatar-pick", tP = "/api/avatar-code-cover", nP = "/avatar-choice", rP = (e, t) => [
"avatar-choices",
e,
t
-], nP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, rP = (e, t, n, r = "") => `${vpe}${nP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), iP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", ype = (e, t, n) => G(gpe + nP(e, t), n), bpe = (e) => K(_pe, { code: e });
-function aP(e, t, n) {
+], iP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, aP = (e, t, n, r = "") => `${nP}${iP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), oP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", _pe = (e, t, n) => G($N + iP(e, t), n), vpe = (e) => K(tP, { code: e });
+function sP(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? lpe(e.focus, t, n) : GN(t, n);
+ return e.focus && r ? upe(e.focus, t, n) : WN(t, n);
}
-var xpe = (e) => e.crop && WN({
+var ype = (e) => e.crop && UN({
width: e.width,
height: e.height
});
-async function Spe(e, t, n) {
+async function bpe(e, t, n) {
if (!("file" in n)) {
await K(eP, {
kind: e,
@@ -38386,39 +38386,39 @@ async function Spe(e, t, n) {
});
return;
}
- let r = n.file, i = await fetch(`${eP}${nP(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${eP}${iP(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new jS(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new AS(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function Cpe(e, t) {
+function xpe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var wpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Tpe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${wpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Spe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function Cpe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Spe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var oP = (e) => e.cast > 1, Epe = (e) => oP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Dpe = {
+var cP = (e) => e.cast > 1, wpe = (e) => cP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Tpe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function Ope(e) {
+function Epe(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var kpe = (e) => `${Dpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (oP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Ape = 8, jpe = 3 / 4;
-function Mpe({ kind: e, entityId: t, name: n, onPicked: r }) {
+var Dpe = (e) => `${Tpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (cP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Ope = 8, kpe = 3 / 4;
+function Ape({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -38428,17 +38428,17 @@ function Mpe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, V.jsx)(Zie, {
+ children: /* @__PURE__ */ (0, V.jsx)(Qie, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, V.jsx)(XN, {
+ }), /* @__PURE__ */ (0, V.jsx)(YN, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, V.jsx)(Npe, {
+ children: /* @__PURE__ */ (0, V.jsx)(jpe, {
kind: e,
entityId: t,
name: n,
@@ -38447,50 +38447,50 @@ function Mpe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, B.useRef)(null), o = vM(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = tP(e, t), g = (0, B.useRef)(!1), _ = TS({
+function jpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, B.useRef)(null), o = _M(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = rP(e, t), g = (0, B.useRef)(!1), _ = wS({
queryKey: h,
- queryFn: ({ signal: n }) => ype(e, t, n),
+ queryFn: ({ signal: n }) => _pe(e, t, n),
retryOnMount: !0
});
(0, B.useEffect)(() => () => {
- g.current && z.removeQueries({ queryKey: tP(e, t) });
+ g.current && z.removeQueries({ queryKey: rP(e, t) });
}, [e, t]);
- let v = OS({
- mutationFn: (n) => Spe(e, t, n),
+ let v = DS({
+ mutationFn: (n) => bpe(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
- }), y = OS({
- mutationFn: (e) => bpe(e),
+ }), y = DS({
+ mutationFn: (e) => vpe(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? W(v.error) : "") || (!p && y.error ? W(y.error) : "") || (_.error ? W(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Tpe(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? W(v.error) : "") || (!p && y.error ? W(y.error) : "") || (_.error ? W(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Cpe(x);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(ZN, { children: /* @__PURE__ */ (0, V.jsx)(DT, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(ET, { className: "size-6" }) }),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(ID, {
+ children: [/* @__PURE__ */ (0, V.jsx)(PD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(xE, {
+ }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(yE, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? Epe(p) : Cpe(n, x)
+ children: p ? wpe(p) : xpe(n, x)
}),
T ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
@@ -38502,14 +38502,14 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(bM, {
- icon: pT,
+ /* @__PURE__ */ (0, V.jsx)(yM, {
+ icon: fT,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, V.jsx)(Fpe, {
+ }), p ? /* @__PURE__ */ (0, V.jsx)(Npe, {
kind: e,
entityId: t,
choice: p,
@@ -38533,7 +38533,7 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: Ape }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: Ope }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -38546,15 +38546,15 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: kpe(n),
+ title: Dpe(n),
...X(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, V.jsx)(Ppe, {
- src: rP(e, t, n.ref, iP(n, n.ref)),
+ /* @__PURE__ */ (0, V.jsx)(Mpe, {
+ src: aP(e, t, n.ref, oP(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, V.jsx)("span", {
@@ -38563,15 +38563,15 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, V.jsx)(xE, {
+ children: /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- oP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {
+ cP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, V.jsxs)(xE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(yE, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -38590,7 +38590,7 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: /* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -38625,7 +38625,7 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: /* @__PURE__ */ (0, V.jsx)(WM, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -38645,7 +38645,7 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Ppe({ src: e, choice: t }) {
+function Mpe({ src: e, choice: t }) {
let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1);
(0, B.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -38653,7 +38653,7 @@ function Ppe({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = xpe(t) ? ppe(aP(t, a, jpe), a) : null, s = r ? !0 : void 0;
+ }, o = ype(t) ? mpe(sP(t, a, kpe), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, V.jsx)("img", {
@@ -38678,23 +38678,23 @@ function Ppe({ src: e, choice: t }) {
})]
});
}
-function Fpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, B.useState)(o[0]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = iP(n, s), m = rP(e, t, s, p), h = vM();
+function Npe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, B.useState)(o[0]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = oP(n, s), m = aP(e, t, s, p), h = _M();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? fpe(d, l) : null;
+ let _ = d && l ? ppe(d, l) : null;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.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: [/* @__PURE__ */ (0, V.jsx)($N, {
+ children: [/* @__PURE__ */ (0, V.jsx)(QN, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), WN(e) && f(s === n.ref ? aP(n, e, 1) : GN(e, 1));
+ u(e), UN(e) && f(s === n.ref ? sP(n, e, 1) : WN(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -38708,7 +38708,7 @@ function Fpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: Ope(e)
+ children: Epe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -38742,7 +38742,7 @@ function Fpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function sP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function lP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
let a = (0, B.useRef)(null), o = e?.items.length ? e.html : "";
(0, B.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
@@ -38776,12 +38776,12 @@ function sP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var Ipe = {
+var Ppe = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function cP({ name: e }) {
- let t = Ipe[e];
+function uP({ name: e }) {
+ let t = Ppe[e];
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -38791,19 +38791,19 @@ function cP({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function lP(e, t) {
+function dP(e, t) {
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;
t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;
}
-var uP = (e) => !!e?.isConnected && e.matches(":popover-open");
-function dP(e, t, n, r) {
+var fP = (e) => !!e?.isConnected && e.matches(":popover-open");
+function pP(e, t, n, r) {
let i = (0, B.useRef)(r);
i.current = r, (0, B.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && uP(n.current) ? lP(t.current, n.current) : i.current();
+ t.current && fP(n.current) ? dP(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -38817,17 +38817,17 @@ function dP(e, t, n, r) {
n
]);
}
-function fP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function mP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, B.useRef)(null), s = (0, B.useRef)(null), [c, l] = (0, B.useState)(!1), u = (0, B.useRef)(!1), d = (0, B.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, uP(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, fP(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || uP(s.current)) && (s.current.showPopover(), lP(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || fP(s.current)) && (s.current.showPopover(), dP(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 dP(c, o, s, f), (0, B.useEffect)(() => {
+ return pP(c, o, s, f), (0, B.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -38853,7 +38853,7 @@ function fP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && uP(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && fP(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -38871,16 +38871,16 @@ function fP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function Lpe({ following: e, busy: t, onToggle: n, tip: r }) {
+function Fpe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = (0, B.useRef)(!1), u = () => {
- uP(o.current) && o.current.hidePopover(), c(!1);
+ fP(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || uP(o.current) || (o.current.showPopover(), lP(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || fP(o.current) || (o.current.showPopover(), dP(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return dP(s, i, o, () => c(!1)), (0, B.useEffect)(() => {
- i.current && uP(o.current) && lP(i.current, o.current);
+ return pP(s, i, o, () => c(!1)), (0, B.useEffect)(() => {
+ i.current && fP(o.current) && dP(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, V.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -38889,7 +38889,7 @@ function Lpe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, V.jsx)(cP, { name: "rss" }),
+ /* @__PURE__ */ (0, V.jsx)(uP, { name: "rss" }),
/* @__PURE__ */ (0, V.jsx)("input", {
ref: a,
type: "checkbox",
@@ -38924,29 +38924,29 @@ function Lpe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function Rpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function Ipe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, V.jsxs)(jse, {
+ }, []), /* @__PURE__ */ (0, V.jsxs)(Nse, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, V.jsx)(PD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(MD, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, V.jsx)(cP, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, V.jsx)(tk, {
+ children: /* @__PURE__ */ (0, V.jsx)(uP, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, V.jsx)($O, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: uM,
+ className: lM,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, V.jsxs)(Nse, {
+ children: /* @__PURE__ */ (0, V.jsxs)(Fse, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(ck, {
+ /* @__PURE__ */ (0, V.jsx)(ok, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -38954,31 +38954,31 @@ function Rpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(uk, {
+ children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(ck, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(pse, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsxs)(uk, {
+ /* @__PURE__ */ (0, V.jsx)(hse, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, V.jsx)(ok, { children: /* @__PURE__ */ (0, V.jsxs)(ck, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "plus" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "plus" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var zpe = (e) => e === "studio" || e === "agency", pP = (e) => e === "performer" || e === "creator", Bpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function Vpe(e) {
+var Lpe = (e) => e === "studio" || e === "agency", hP = (e) => e === "performer" || e === "creator", Rpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function zpe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function mP(e) {
+function gP(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -38989,13 +38989,13 @@ function mP(e) {
linked: !1
} : null;
}
-function hP(e, t) {
+function _P(e, t) {
let n = _e(e, "performer"), r = me(t);
return r && [e.label, n].map(me).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var gP = (e) => ({ site: he(e) });
-function Hpe(e, t) {
- let n = mP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var vP = (e) => ({ site: he(e) });
+function Bpe(e, t) {
+ let n = gP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -39005,7 +39005,7 @@ function Hpe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${hP(e, n)} · ${t}`
+ title: `${_P(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -39013,11 +39013,11 @@ function Hpe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (pP(t) && e.link_kind !== "social") return {
+ if (hP(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: hP(e, n),
- mark: gP(e)
+ title: _P(e, n),
+ mark: vP(e)
};
if (e.link_kind === "social") {
let t = le(r);
@@ -39025,7 +39025,7 @@ function Hpe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : gP(e)
+ mark: t ? { brand: t } : vP(e)
};
}
return {
@@ -39033,13 +39033,13 @@ function Hpe(e, t) {
url: r,
title: e.label || "",
text: _e(e, t, i),
- mark: gP(e)
+ mark: vP(e)
};
});
return [...r, ...a];
}
-var _P = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Upe(e) {
+var yP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function Vpe(e) {
return [
[
"legal_name",
@@ -39095,7 +39095,7 @@ function Upe(e) {
}]
}] : []);
}
-function Wpe(e) {
+function Hpe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -39152,14 +39152,14 @@ function Wpe(e) {
tags: e.tags
}), t;
}
-function Gpe(e) {
+function Upe(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function Kpe(e) {
+function Wpe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -39170,7 +39170,7 @@ function Kpe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function qpe(e) {
+function Gpe(e) {
return A({
id: e.id,
hasImage: e.has_image,
@@ -39180,8 +39180,8 @@ function qpe(e) {
focus: e.avatar_focus
});
}
-function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = pP(e), c = zpe(e), l = s ? Wpe(n.profile) : c ? Upe(n.company_profile) : [], u = Hpe(n, e), d = _P(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);
+function Kpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = hP(e), c = Lpe(e), l = s ? Hpe(n.profile) : c ? Vpe(n.company_profile) : [], u = Bpe(n, e), d = yP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, B.useEffect)(() => {
@@ -39194,7 +39194,7 @@ function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, V.jsx)(Ype, {
+ children: [/* @__PURE__ */ (0, V.jsx)(qpe, {
kind: e,
name: t,
helpers: o,
@@ -39202,7 +39202,7 @@ function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, V.jsx)(Mpe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Ape, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -39215,14 +39215,14 @@ function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(Rpe, {
+ children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(Ipe, {
current: n.canonical_name,
- choices: Vpe(n),
+ choices: zpe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Xpe, {
+ /* @__PURE__ */ (0, V.jsx)(Jpe, {
kind: e,
entity: n,
actions: a
@@ -39243,9 +39243,9 @@ function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
u.length ? /* @__PURE__ */ (0, V.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(eme, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Qpe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(tme, {
+ d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)($pe, {
entity: n,
actions: a,
helpers: o
@@ -39254,11 +39254,11 @@ function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, V.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, V.jsx)(Qpe, {
+ children: l.map((e) => /* @__PURE__ */ (0, V.jsx)(Xpe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, V.jsx)($pe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, V.jsx)(Zpe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -39277,7 +39277,7 @@ function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${qpe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${Gpe(e)}` }
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -39285,14 +39285,14 @@ function Jpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(sP, {
+ }), i ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(lP, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function Ype({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function qpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, B.useState)(() => `${n.portraitImg()}<span>${L(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -39301,8 +39301,8 @@ function Ype({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function Xpe({ kind: e, entity: t, actions: n }) {
- let r = mP(t), i = (e, t) => (r) => {
+function Jpe({ kind: e, entity: t, actions: n }) {
+ let r = gP(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, V.jsx)("a", {
href: ue("agency", r.name),
@@ -39311,37 +39311,37 @@ function Xpe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = Kpe(t.name_groups);
+ let e = Wpe(t.name_groups);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, V.jsx)(vP, { entity: t }),
+ /* @__PURE__ */ (0, V.jsx)(bP, { entity: t }),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "film" }), /* @__PURE__ */ (0, V.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "film" }), /* @__PURE__ */ (0, V.jsx)("span", { children: o })]
}),
a ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, V.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, V.jsx)(cP, { name: "id-card" }),
+ /* @__PURE__ */ (0, V.jsx)(uP, { name: "id-card" }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, V.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, V.jsx)(fP, {
+ e.rest > 0 ? /* @__PURE__ */ (0, V.jsx)(mP, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(Zpe, {
+ children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(Ype, {
label: e.label,
names: e.names
}, t)) })
@@ -39363,21 +39363,21 @@ function Xpe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, V.jsx)(vP, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, V.jsx)(bP, { entity: t }) : null,
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "film" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "film" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "clapperboard" }), /* @__PURE__ */ (0, V.jsx)("a", {
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "clapperboard" }), /* @__PURE__ */ (0, V.jsx)("a", {
href: ue("studio", l.name),
"data-studio-link": l.name,
onClick: i("studio", l.name),
@@ -39387,7 +39387,7 @@ function Xpe({ kind: e, entity: t, actions: n }) {
s.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": e === "studio" || e === "agency" ? "" : void 0,
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "id-card" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "id-card" }), /* @__PURE__ */ (0, V.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: s.map((e, t) => /* @__PURE__ */ (0, V.jsx)("span", { children: e }, t))
@@ -39396,32 +39396,32 @@ function Xpe({ kind: e, entity: t, actions: n }) {
]
});
}
-function vP({ entity: e }) {
+function bP({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function Zpe({ label: e, names: t }) {
+function Ype({ label: e, names: t }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, V.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, V.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function Qpe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("dt", { children: [/* @__PURE__ */ (0, V.jsx)(cP, { name: e }), t] }), /* @__PURE__ */ (0, V.jsx)("dd", {
+function Xpe({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("dt", { children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: e }), t] }), /* @__PURE__ */ (0, V.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function $pe({ tags: e }) {
- let { shown: t, rest: n } = Gpe(e);
+function Zpe({ tags: e }) {
+ let { shown: t, rest: n } = Upe(e);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, V.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, V.jsx)(fP, {
+ }, e)), n ? /* @__PURE__ */ (0, V.jsx)(mP, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -39436,10 +39436,10 @@ function $pe({ tags: e }) {
})
}) : null] });
}
-function yP({ mark: e }) {
+function xP({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, V.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, V.jsx)(cP, { name: e.brand })
+ children: /* @__PURE__ */ (0, V.jsx)(uP, { name: e.brand })
});
let t = R("globe") + ("site" in e ? `<img src="${L(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, V.jsx)("span", {
@@ -39447,7 +39447,7 @@ function yP({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function eme({ link: e }) {
+function Qpe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, V.jsx)("a", {
"data-link": "icon",
@@ -39456,19 +39456,19 @@ function eme({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, V.jsx)(yP, { mark: e.mark })
+ children: /* @__PURE__ */ (0, V.jsx)(xP, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, V.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, V.jsx)(yP, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, V.jsx)(xP, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, V.jsxs)("span", {
"data-link": "private",
title: e.label,
- children: [/* @__PURE__ */ (0, V.jsx)(yP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(xP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -39479,14 +39479,14 @@ function eme({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, V.jsx)(yP, { mark: e.mark }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(xP, { mark: e.mark }), /* @__PURE__ */ (0, V.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function tme({ entity: e, actions: t, helpers: n }) {
+function $pe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, B.useState)(!!e.feed?.following), [a, o] = (0, B.useState)(!1), s = (0, B.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -39504,34 +39504,34 @@ function tme({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entry-marks": "",
- children: [_P(e).map((e, t) => /* @__PURE__ */ (0, V.jsxs)("a", {
+ children: [yP(e).map((e, t) => /* @__PURE__ */ (0, V.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, V.jsx)(cP, { name: e.mark }) : /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, V.jsx)(uP, { name: e.mark }) : /* @__PURE__ */ (0, V.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Lpe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Fpe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Bpe(r)
+ tip: Rpe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function nme(e) {
- let { kind: t, name: n } = e, r = TS(dN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
+function eme(e) {
+ let { kind: t, name: n } = e, r = wS(uN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
return (0, B.useLayoutEffect)(() => {
i && o.missing();
}, [o, i]), (0, B.useLayoutEffect)(() => {
@@ -39546,17 +39546,17 @@ function nme(e) {
o,
a?.kind,
a?.name
- ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(gA, {
+ ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: W(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(ame, {
+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(rme, {
...e,
entity: r.data
});
}
-function bP(e) {
+function SP(e) {
let [t, n] = (0, B.useState)({
key: e,
n: 1
@@ -39568,14 +39568,14 @@ function bP(e) {
};
return n(r), r.n;
}
-var rme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function ime(e, t) {
+var tme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function nme(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function ame(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 = kS(fN(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 || pN(p).length > 0, g = a.media === "photos" && h ? a : iN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);
+function rme(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 = OS(dN(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 || fN(p).length > 0, g = a.media === "photos" && h ? a : rN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);
b !== y && (x(y), v("videos"));
- let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = uN(e), E = TS(T), D = bP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
+ let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = lN(e), E = wS(T), D = SP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
(0, B.useLayoutEffect)(() => {
s.javContext(O);
}, [s, O]);
@@ -39585,26 +39585,26 @@ function ame(e) {
}, [e.layout, O]), A = {
jav: e.jav,
seed: e.seed
- }, j = (0, B.useCallback)((e, r) => lN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = kS({
- ...fN(t, n, P, ee),
+ }, j = (0, B.useCallback)((e, r) => cN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = OS({
+ ...dN(t, n, P, ee),
enabled: S === "photos"
- }), I = F.data?.pages[0], te = bP(JSON.stringify(oN(t, n, P, ee))), ne = (0, B.useMemo)(() => {
+ }), I = F.data?.pages[0], te = SP(JSON.stringify(aN(t, n, P, ee))), ne = (0, B.useMemo)(() => {
let e = F.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: te,
- codeSets: t.id ? [] : pN(t),
+ codeSets: t.id ? [] : fN(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = TS({
- ...nN(d, o.feedRowHtml),
+ }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = wS({
+ ...tN(d, o.feedRowHtml),
enabled: !!d
}), oe = (0, B.useRef)(e.feedRevision);
(0, B.useEffect)(() => {
- oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: tN(d) }));
+ oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: eN(d) }));
}, [d, e.feedRevision]);
let se = !!E.data;
(0, B.useEffect)(() => {
@@ -39621,12 +39621,12 @@ function ame(e) {
le.current = !1;
}, []);
let ue = (0, B.useCallback)(async () => {
- await z.invalidateQueries({ queryKey: aN(t, n) }), await z.invalidateQueries({ queryKey: [
+ await z.invalidateQueries({ queryKey: iN(t, n) }), await z.invalidateQueries({ queryKey: [
"entity-items",
t,
n
] });
- }, [t, n]), L = OS({
+ }, [t, n]), L = DS({
mutationFn: (e) => ce("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
@@ -39636,14 +39636,14 @@ function ame(e) {
})
}),
onSuccess: () => ue()
- }), de = OS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {
+ }), de = DS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: t,
name: e,
canonical: n
})
- }) }), fe = OS({
+ }) }), fe = DS({
mutationFn: (e) => ce("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
@@ -39652,7 +39652,7 @@ function ame(e) {
enabled: e
})
}),
- onSuccess: (e, r) => z.setQueryData(aN(t, n), (e) => e && {
+ onSuccess: (e, r) => z.setQueryData(iN(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -39700,10 +39700,10 @@ function ame(e) {
let e = await ce("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- le.current && await z.invalidateQueries({ queryKey: tN(d) });
+ le.current && await z.invalidateQueries({ queryKey: eN(d) });
})();
},
- feedAction: rN,
+ feedAction: nN,
avatarPicked: () => {
s.avatarChanged(), ue().then(() => {
le.current && w((e) => e + 1);
@@ -39734,19 +39734,19 @@ function ame(e) {
e === S && !g.set || (v(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {
media: "photos",
set: 0
- } : iN));
+ } : rN));
},
setState: (e) => s.route({
...i,
state: e
- }, iN),
+ }, rN),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (S !== "photos") {
- let r = s.reshuffleVideos(), a = uN({
+ let r = s.reshuffleVideos(), a = lN({
kind: t,
name: n,
filters: {
@@ -39760,7 +39760,7 @@ function ame(e) {
await z.fetchQuery(a).catch(() => null);
return;
}
- let r = rme(), a = await z.fetchInfiniteQuery(fN(t, n, P, r)).catch(() => null);
+ let r = tme(), a = await z.fetchInfiniteQuery(dN(t, n, P, r)).catch(() => null);
!le.current || !a?.pages[0] || a.pages[0].error || N((e) => ({
...e,
[P]: r
@@ -39793,7 +39793,7 @@ function ame(e) {
k: e.k,
label: ot(e.k),
n: e.n,
- selected: Cfe(i.tag, e.k)
+ selected: wfe(i.tag, e.k)
})), _e = m || u.length ? {
label: u.length ? "页面视图" : "媒体类型",
people: u.length ? {
@@ -39819,9 +39819,9 @@ function ame(e) {
if (S === "people") xe = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (S === "videos") {
Se = !E.data;
- let e = sN(i.tag).map((e) => ot(e));
+ let e = oN(i.tag).map((e) => ot(e));
xe = `视频 · ${(E.data?.work_total ?? E.data?.total ?? 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : ime(I, pN(I).length) : Se = F.isPending;
+ } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : nme(I, fN(I).length) : Se = F.isPending;
let Ce = (0, B.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -39838,7 +39838,7 @@ function ame(e) {
u
]);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(Jpe, {
+ /* @__PURE__ */ (0, V.jsx)(Kpe, {
kind: t,
name: n,
entity: r,
@@ -39848,7 +39848,7 @@ function ame(e) {
actions: pe,
helpers: me
}, C),
- (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(Gce, {
+ (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(qce, {
kind: t,
name: n,
view: S,
@@ -39864,12 +39864,12 @@ function ame(e) {
actions: R,
helpers: he
}), c.filter),
- (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(gA, {
+ (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: W(E.error),
onRetry: () => {
E.refetch();
}
- }) : /* @__PURE__ */ (0, V.jsx)(tpe, {
+ }) : /* @__PURE__ */ (0, V.jsx)(npe, {
kind: t,
name: n,
view: S,
@@ -39895,7 +39895,7 @@ function ame(e) {
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function xP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function CP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, V.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
@@ -39922,29 +39922,29 @@ function xP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var ome = oA("play"), sme = oA("file-stack"), cme = wE({
+var ime = iA("play"), ame = iA("file-stack"), ome = SE({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), SP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", CP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", wP = "font-mono text-caption-1-regular leading-5 text-text-secondary", TP = () => {
+}), wP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", TP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", EP = "font-mono text-caption-1-regular leading-5 text-text-secondary", DP = () => {
z.invalidateQueries({
- queryKey: AA,
+ queryKey: kA,
exact: !0
}), z.invalidateQueries({
- queryKey: $j,
+ queryKey: Qj,
exact: !0
});
};
-function lme(e) {
+function sme(e) {
return e.identical ? /* @__PURE__ */ (0, V.jsx)("span", {
- className: `${CP} text-(--keep)`,
+ className: `${TP} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, V.jsx)("span", {
- className: `${CP} text-text-secondary`,
+ className: `${TP} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function ume({ file: e, openItem: t }) {
+function cme({ file: e, openItem: t }) {
let n = () => t(e.id);
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -39954,7 +39954,7 @@ function ume({ file: e, openItem: t }) {
onClick: n,
"aria-label": `预览 ${e.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, V.jsx)(ome, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ime, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, V.jsx)("img", {
@@ -39978,55 +39978,55 @@ function ume({ file: e, openItem: t }) {
}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex flex-none gap-1",
children: [e.is_largest ? /* @__PURE__ */ (0, V.jsx)("i", {
- className: `${SP} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${wP} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, e.is_longest ? /* @__PURE__ */ (0, V.jsx)("i", {
- className: `${SP} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${wP} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
- className: `${wP} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, V.jsx)(KE, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ className: `${EP} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {
className: "whitespace-nowrap",
children: se[e.location] || e.location || e.drive
})]
}),
/* @__PURE__ */ (0, V.jsx)("span", {
- className: wP,
+ className: EP,
children: pe(e.size || 0)
}),
/* @__PURE__ */ (0, V.jsx)("span", {
- className: wP,
+ className: EP,
children: fe(e.duration)
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-middle-truncate": !0,
title: e.path ?? "",
- className: `${wP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${EP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
-function dme({ openItem: e, toast: t, failure: n }) {
- let r = TS({
- queryKey: AA,
- queryFn: ({ signal: e }) => MA(e)
- }), i = TS({
+function lme({ openItem: e, toast: t, failure: n }) {
+ let r = wS({
+ queryKey: kA,
+ queryFn: ({ signal: e }) => jA(e)
+ }), i = wS({
queryKey: tt,
queryFn: ({ signal: e }) => rt(e)
- }), [a, o] = (0, B.useState)(""), s = OS({
- mutationFn: (e) => FA(e, "dispose"),
+ }), [a, o] = (0, B.useState)(""), s = DS({
+ mutationFn: (e) => PA(e, "dispose"),
onSuccess: (e, r) => {
- TP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
+ DP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await FA(r, "restore");
+ await PA(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- TP();
+ DP();
}
} });
},
@@ -40040,12 +40040,12 @@ function dme({ openItem: e, toast: t, failure: n }) {
children: r.error ? W(r.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let l = c.groups ?? [], u = Ele(i.data), d = ({ groups: e, keep: t, key: n }) => {
+ let l = c.groups ?? [], u = Dle(i.data), d = ({ groups: e, keep: t, key: n }) => {
if (s.isPending) return;
- let r = jle(e, t);
+ let r = Mle(e, t);
r.length && Te({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${NA[t] ?? NA.largest}。文件共 ${pe(Mle(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${MA[t] ?? MA.largest}。文件共 ${pe(Nle(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (o(n), s.mutateAsync(r))
});
@@ -40053,15 +40053,15 @@ function dme({ openItem: e, toast: t, failure: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, V.jsx)(xP, {
+ /* @__PURE__ */ (0, V.jsx)(CP, {
label: "重复内容",
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${c.files} 个文件 · 可回收 ${pe(c.reclaimable)}`
}),
- l.length ? /* @__PURE__ */ (0, V.jsxs)(qoe, {
+ l.length ? /* @__PURE__ */ (0, V.jsxs)(Yoe, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, V.jsx)(mD, {
+ /* @__PURE__ */ (0, V.jsx)(fD, {
busy: a === "all:largest",
onPress: () => d({
groups: l,
@@ -40070,7 +40070,7 @@ function dme({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, V.jsx)(mD, {
+ /* @__PURE__ */ (0, V.jsx)(fD, {
busy: a === "all:longest",
onPress: () => d({
groups: l,
@@ -40079,7 +40079,7 @@ function dme({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- Ale(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(mD, {
+ jle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(fD, {
busy: a === `all:${e}`,
onPress: () => d({
groups: l,
@@ -40102,7 +40102,7 @@ function dme({ openItem: e, toast: t, failure: n }) {
let r = [t], i = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": t.code,
- className: cme,
+ className: ome,
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -40114,9 +40114,9 @@ function dme({ openItem: e, toast: t, failure: n }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${t.count} 个 · 可回收 ${pe(t.reclaimable)}`
}),
- lme(t),
+ sme(t),
t.cross_drive ? /* @__PURE__ */ (0, V.jsx)("span", {
- className: `${CP} text-text-secondary`,
+ className: `${TP} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, V.jsxs)("span", {
@@ -40144,7 +40144,7 @@ function dme({ openItem: e, toast: t, failure: n }) {
}),
children: "留最长"
}),
- PA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {
+ NA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
...f(i(e)),
@@ -40169,13 +40169,13 @@ function dme({ openItem: e, toast: t, failure: n }) {
]
})
]
- }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(ume, {
+ }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(cme, {
file: t,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: sme,
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: ame,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -40184,23 +40184,23 @@ function dme({ openItem: e, toast: t, failure: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var EP = ["diagnostics"], DP = (e) => G("/api/diagnostics", e);
-async function fme(e) {
+var OP = ["diagnostics"], kP = (e) => G("/api/diagnostics", e);
+async function ume(e) {
await z.fetchQuery({
- queryKey: EP,
- queryFn: () => DP(e),
+ queryKey: OP,
+ queryFn: () => kP(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/diagnostics/diagnostics-page.tsx
-var OP = {
+var AP = {
ok: "正常",
warning: "需检查",
failed: "需处理",
unknown: "未取得",
disabled: "未配置"
-}, pme = [
+}, dme = [
["媒体库与挂载", ["media_mounts", "data_root"]],
["数据库与迁移", ["database", "schema"]],
["工具", ["ffmpeg"]],
@@ -40211,8 +40211,8 @@ var OP = {
"version"
]],
["后台任务", ["tasks"]]
-], kP = (e) => new Date(e).toLocaleString();
-function mme({ name: e, check: t, navigate: n, configure: r }) {
+], jP = (e) => new Date(e).toLocaleString();
+function fme({ name: e, check: t, navigate: n, configure: r }) {
let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",
@@ -40224,7 +40224,7 @@ function mme({ name: e, check: t, navigate: n, configure: r }) {
children: t.label
}), /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: OP[t.status] ?? "未取得"
+ children: AP[t.status] ?? "未取得"
})]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
@@ -40244,14 +40244,14 @@ function mme({ name: e, check: t, navigate: n, configure: r }) {
]
});
}
-function hme({ group: e, openItem: t, receipt: n }) {
- let r = AE(), i = vM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, V.jsx)(GE, {
+function pme({ group: e, openItem: t, receipt: n }) {
+ let r = OE(), i = _M(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+ return /* @__PURE__ */ (0, V.jsx)(UE, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
children: "清单未取得,请重新检查。"
- }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [e.truncated ? /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -40286,20 +40286,20 @@ function hme({ group: e, openItem: t, receipt: n }) {
}) }, e.id))
})
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: sae,
+ ] }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: cae,
title: "清单为空",
shell: "plain",
children: "没有需要处理的作品。"
})
});
}
-function gme(e) {
- let t = TS({
- queryKey: EP,
- queryFn: ({ signal: e }) => DP(e),
+function mme(e) {
+ let t = wS({
+ queryKey: OP,
+ queryFn: ({ signal: e }) => kP(e),
staleTime: 1e4
- }), n = AE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {
+ }), n = OE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
if (e.error) throw e.error;
return e.data;
@@ -40320,27 +40320,27 @@ function gme(e) {
tone: "error",
children: r
}) : null,
- /* @__PURE__ */ (0, V.jsx)(FE, {
+ /* @__PURE__ */ (0, V.jsx)(NE, {
title: "库健康",
- children: /* @__PURE__ */ (0, V.jsxs)(LE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {
+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ["处理记录 · ", kP(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(hme, {
+ children: ["处理记录 · ", jP(o.library.issue_at)]
+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(pme, {
group: n,
...e
}, t))] })
}),
- pme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(FE, {
+ dme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(NE, {
title: t,
- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(mme, {
+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(fme, {
name: t,
check: o.checks[t],
...e
}, t) : null)
}, t)),
- /* @__PURE__ */ (0, V.jsx)(FE, {
+ /* @__PURE__ */ (0, V.jsx)(NE, {
title: "来源会话",
- children: /* @__PURE__ */ (0, V.jsxs)(LE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, V.jsxs)("h3", {
@@ -40348,19 +40348,19 @@ function gme(e) {
children: [
e.label,
" · ",
- OP[e.status]
+ AP[e.status]
]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e.reason
}),
- /* @__PURE__ */ (0, V.jsxs)(UE, { children: [/* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {
term: "上次解析成功",
- children: e.last_success_at ? kP(e.last_success_at) : "未取得"
- }), /* @__PURE__ */ (0, V.jsx)(WE, {
+ children: e.last_success_at ? jP(e.last_success_at) : "未取得"
+ }), /* @__PURE__ */ (0, V.jsx)(HE, {
term: "冷却截止",
- children: e.cooldown_until ? kP(e.cooldown_until) : "未在冷却"
+ children: e.cooldown_until ? jP(e.cooldown_until) : "未在冷却"
})] })
]
}, e.source)), /* @__PURE__ */ (0, V.jsx)("div", { children: /* @__PURE__ */ (0, V.jsx)(J, {
@@ -40388,21 +40388,21 @@ function gme(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function _me({ host: e, revision: t, helpers: n, actions: r }) {
- let i = TS(nN(null, n.feedRowHtml)), a = (0, B.useRef)(t);
+function hme({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = wS(tN(null, n.feedRowHtml)), a = (0, B.useRef)(t);
return (0, B.useEffect)(() => {
- a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: tN(null) }));
- }, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(sP, {
+ a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: eN(null) }));
+ }, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(lP, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: rN,
+ act: nN,
settled: r.settled
}), e);
}
//#endregion
//#region src/follow-sort.ts
-var AP = [
+var MP = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -40410,7 +40410,7 @@ var AP = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], vme = "checked", jP = {
+], gme = "checked", NP = {
checked: "desc",
added: "desc",
name: "asc",
@@ -40418,32 +40418,32 @@ var AP = [
source: "asc",
provider: "asc",
status: "asc"
-}, yme = (e) => AP.some(([t]) => t === e);
-function MP(e, t) {
- let n = yme(e) ? e : vme;
+}, _me = (e) => MP.some(([t]) => t === e);
+function PP(e, t) {
+ let n = _me(e) ? e : gme;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : jP[n]
+ dir: t === "asc" || t === "desc" ? t : NP[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var NP = "/api/follow", PP = "/api/follow/credentials", FP = "/api/follow/check", IP = "/api/follow/source", LP = "/api/follow/resolve", bme = "/api/follow/suggest", RP = "/api/follow/author-alias", xme = "/api/follow/credential", zP = "/api/follow/status", Sme = "/api/feeds", BP = "/api/feeds/source", Cme = "/api/feeds/check", wme = "/api/feeds/lookup", VP = ["follow-manage"], HP = ["follow-manage", "credentials"], Tme = ["follow-manage", "check"], Eme = ["follow-manage", "resolve"], UP = ["follow-manage", "feeds"], Dme = (e) => [
+var FP = "/api/follow", IP = "/api/follow/credentials", LP = "/api/follow/check", RP = "/api/follow/source", zP = "/api/follow/resolve", vme = "/api/follow/suggest", BP = "/api/follow/author-alias", yme = "/api/follow/credential", VP = "/api/follow/status", bme = "/api/feeds", HP = "/api/feeds/source", xme = "/api/feeds/check", Sme = "/api/feeds/lookup", UP = ["follow-manage"], WP = ["follow-manage", "credentials"], Cme = ["follow-manage", "check"], wme = ["follow-manage", "resolve"], GP = ["follow-manage", "feeds"], Tme = (e) => [
"follow-manage",
"suggest",
e
-], WP = [["default", "默认视图"], ["table", "表格视图"]], GP = [
+], KP = [["default", "默认视图"], ["table", "表格视图"]], qP = [
10,
20,
50,
100
-], Ome = Object.fromEntries(AP), KP = {
+], Eme = Object.fromEntries(MP), JP = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, kme = (e) => WP.some(([t]) => t === e), Ame = (e) => GP.includes(Number(e)) ? Number(e) : 20, jme = {
+}, Dme = (e) => KP.some(([t]) => t === e), Ome = (e) => qP.includes(Number(e)) ? Number(e) : 20, kme = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -40451,25 +40451,25 @@ var NP = "/api/follow", PP = "/api/follow/credentials", FP = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Mme = (e, t) => `按${Ome[e]}${jme[e][t === "asc" ? 0 : 1]}排序`;
-function qP(e) {
+}, Ame = (e, t) => `按${Eme[e]}${kme[e][t === "asc" ? 0 : 1]}排序`;
+function YP(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Nme(e) {
+function jme(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var JP = (e) => e.last_status === "error" || e.last_status === "unauthorized", YP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), XP = {
- source: YP,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || YP(e, t),
- status: (e, t) => qP(e) - qP(t) || YP(e, t)
-}, ZP = (e) => Date.parse(e || "") || 0, QP = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function $P(e, t = []) {
+var XP = (e) => e.last_status === "error" || e.last_status === "unauthorized", ZP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), QP = {
+ source: ZP,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || ZP(e, t),
+ status: (e, t) => YP(e) - YP(t) || ZP(e, t)
+}, $P = (e) => Date.parse(e || "") || 0, eF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function tF(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || QP(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || eF(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return QP(i.canonical_name);
+ if (i) return eF(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -40477,18 +40477,18 @@ function $P(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function eF(e) {
+function nF(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function tF(e) {
+function rF(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function nF(e) {
+function iF(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -40496,32 +40496,32 @@ function nF(e) {
}
return t.map((e) => n.get(e));
}
-function Pme(e, t, n, r = []) {
- let i = nF(e), a = n === jP[t] ? 1 : -1, o = (e) => $P(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = XP[t];
+function Mme(e, t, n, r = []) {
+ let i = iF(e), a = n === NP[t] ? 1 : -1, o = (e) => tF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = QP[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => ZP(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ZP(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => $P(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => $P(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function Fme(e, t, n, r = []) {
+function Nme(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = $P(e, r);
+ let t = tF(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = XP[t];
+ }), a = QP[t];
if (a) {
- let e = n === jP[t] ? 1 : -1;
+ let e = n === NP[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function rF(e, t, n) {
- let r = $A(e, t), i = ej(n, r), a = (i - 1) * t;
+function aF(e, t, n) {
+ let r = QA(e, t), i = $A(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -40530,91 +40530,91 @@ function rF(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Ime(e, t) {
+function Pme(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function iF(e, t) {
+function oF(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function aF(e, t, n) {
+function sF(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var oF = (e) => G(`${NP}?summary=1`, e), sF = (e) => G(PP, e), Lme = (e) => G(FP, e), Rme = (e) => G(LP, e), zme = (e, t) => G(`${bme}?q=${encodeURIComponent(e)}`, t), cF = (e) => K(FP, {
+var cF = (e) => G(`${FP}?summary=1`, e), lF = (e) => G(IP, e), Fme = (e) => G(LP, e), Ime = (e) => G(zP, e), Lme = (e, t) => G(`${vme}?q=${encodeURIComponent(e)}`, t), uF = (e) => K(LP, {
...e?.length ? { sources: e } : {},
background: !0
-}), Bme = (e) => K(LP, {
+}), Rme = (e) => K(zP, {
lines: e,
background: !0
-}), lF = (e, t) => K(IP, {
+}), dF = (e, t) => K(RP, {
action: "enabled",
id: e,
enabled: t
-}), uF = (e) => K(IP, {
+}), fF = (e) => K(RP, {
action: "remove",
id: e
-}), Vme = (e) => K(IP, {
+}), zme = (e) => K(RP, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), dF = (e, t) => K(RP, {
+}), pF = (e, t) => K(BP, {
action: "add",
canonical: e,
alias: t
-}), Hme = (e) => K(RP, {
+}), Bme = (e) => K(BP, {
action: "remove",
alias: e
-}), Ume = (e, t) => K(xme, {
+}), Vme = (e, t) => K(yme, {
provider: e,
values: t
-}), Wme = (e, t) => K(zP, {
+}), Hme = (e, t) => K(VP, {
item: e,
to: t
-}), Gme = () => G(`${NP}?status=new&limit=1000`);
-async function fF(e) {
- let t = await G(Sme, e);
+}), Ume = () => G(`${FP}?status=new&limit=1000`);
+async function mF(e) {
+ let t = await G(bme, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var pF = (e, t, n) => K(BP, {
+var hF = (e, t, n) => K(HP, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), mF = (e, t) => K(BP, {
+}, "POST", n), gF = (e, t) => K(HP, {
action: "remove",
id: e
-}, "POST", t), hF = (e, t) => K(Cme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Kme = (e, t) => G(`${wme}?q=${encodeURIComponent(e)}`, t), qme = (e, t, n) => K(BP, {
+}, "POST", t), _F = (e, t) => K(xme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Wme = (e, t) => G(`${Sme}?q=${encodeURIComponent(e)}`, t), Gme = (e, t, n) => K(HP, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Jme(e, t = "") {
+async function Kme(e, t = "") {
await Promise.all([
z.fetchQuery({
- queryKey: VP,
- queryFn: () => oF(e)
+ queryKey: UP,
+ queryFn: () => cF(e)
}),
z.fetchQuery({
- queryKey: HP,
- queryFn: () => sF(e)
+ queryKey: WP,
+ queryFn: () => lF(e)
}),
t === "feeds" ? z.fetchQuery({
- queryKey: UP,
- queryFn: () => fF(e)
+ queryKey: GP,
+ queryFn: () => mF(e)
}) : null
]);
}
-function gF(e, t) {
- z.setQueryData(VP, (n) => n && {
+function vF(e, t) {
+ z.setQueryData(UP, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -40622,24 +40622,24 @@ function gF(e, t) {
} : n)
});
}
-function _F(e) {
+function yF(e) {
let t = new Set(e);
- z.setQueryData(VP, (e) => e && {
+ z.setQueryData(UP, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var vF = () => z.invalidateQueries({
- queryKey: VP,
+var bF = () => z.invalidateQueries({
+ queryKey: UP,
exact: !0
});
-function Yme(e) {
+function qme(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Xme = (e) => (e?.results || []).filter((e) => !e.ok), Zme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", yF = (e) => e.last_checked_at ? tj(e.last_checked_at) : "未检查", Qme = /* @__PURE__ */ new Set([
+var Jme = (e) => (e?.results || []).filter((e) => !e.ok), Yme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", xF = (e) => e.last_checked_at ? ej(e.last_checked_at) : "未检查", Xme = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -40652,50 +40652,50 @@ var Xme = (e) => (e?.results || []).filter((e) => !e.ok), Zme = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), bF = (e) => Qme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", $me = {
+]), SF = (e) => Xme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Zme = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, xF = (e) => !!e.present && !e.missing.length, ehe = [
+}, CF = (e) => !!e.present && !e.missing.length, Qme = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], the = [
+], $me = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], SF = {
+], wF = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function CF(e, t) {
+function TF(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-function wF(e, t) {
+function EF(e, t) {
return {
queryKey: [
"follow-feed",
- CF(e, 0),
+ TF(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => G(CF(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => G(TF(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: AS.keepPreviousData
+ placeholderData: kS.keepPreviousData
};
}
-var TF = ["follow-feed", "credentials"], EF = (e) => G(PP, e).catch(() => ({ providers: [] }));
-async function nhe(e, t) {
- let n = wF(e.view, e.revision);
+var DF = ["follow-feed", "credentials"], OF = (e) => G(IP, e).catch(() => ({ providers: [] }));
+async function ehe(e, t) {
+ let n = EF(e.view, e.revision);
z.removeQueries({
queryKey: n.queryKey,
exact: !0
}), z.removeQueries({
- queryKey: TF,
+ queryKey: DF,
exact: !0
}), await Promise.all([z.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -40706,11 +40706,11 @@ async function nhe(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), z.fetchQuery({
- queryKey: TF,
- queryFn: () => EF(t)
+ queryKey: DF,
+ queryFn: () => OF(t)
})]);
}
-function DF(e) {
+function kF(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -40719,10 +40719,10 @@ function DF(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function OF(e, t, n) {
+function AF(e, t, n) {
return [...e].sort((e, r) => be(n, t(e)) - be(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function kF(e) {
+function jF(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -40730,14 +40730,14 @@ function kF(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function rhe(e) {
+function the(e) {
let t = z.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
for (let n of t) {
let t = n.state.data;
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let r = t.pages[t.pages.length - 1];
for (let n of t.pages) for (let t of n.groups || []) {
- let n = kF(t).find((t) => t.id === e);
+ let n = jF(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -40748,7 +40748,7 @@ function rhe(e) {
}
return null;
}
-function ihe(e) {
+function nhe(e) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -40758,7 +40758,7 @@ function ihe(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return kF(t).some((t) => t.id === e.id) ? {
+ return jF(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -40768,39 +40768,39 @@ function ihe(e) {
}))
});
}
-function ahe(e, t) {
+function rhe(e, t) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && LF(n, null, e, t));
+ }, (n) => n && zF(n, null, e, t));
}
-function AF(e) {
- return kF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function MF(e) {
+ return jF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function jF(e) {
+function NF(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function MF(e) {
+function PF(e) {
let t = /* @__PURE__ */ new Set();
- return kF(e).forEach((e) => jF(e).forEach((e) => t.add(e))), t;
+ return jF(e).forEach((e) => NF(e).forEach((e) => t.add(e))), t;
}
-function NF(e, t) {
+function FF(e, t) {
let n = t === "images" ? "image" : "video";
- return AF(e).find((e) => jF(e).has(n)) || e.primary;
+ return MF(e).find((e) => NF(e).has(n)) || e.primary;
}
-function PF(e) {
- return AF(e).filter((e) => e.playable && e.media_kind === "video");
+function IF(e) {
+ return MF(e).filter((e) => e.playable && e.media_kind === "video");
}
-var FF = {
+var LF = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function ohe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${FF[s] || FF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function ihe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${LF[s] || LF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -40809,14 +40809,14 @@ function ohe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function she(e) {
+function ahe(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function IF(e, t, n) {
- return e === t ? SF[e] ? {
+function RF(e, t, n) {
+ return e === t ? wF[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -40824,13 +40824,13 @@ function IF(e, t, n) {
dir: "desc"
};
}
-function che(e, t, n, r) {
- let i = IF(e, n, r);
+function ohe(e, t, n, r) {
+ let i = RF(e, n, r);
if (!i) return "";
- let a = SF[i.sort];
+ let a = wF[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function LF(e, t, n, r) {
+function zF(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -40860,7 +40860,7 @@ function LF(e, t, n, r) {
})
};
}
-function lhe(e, t) {
+function she(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -40880,7 +40880,7 @@ function lhe(e, t) {
label: e
})), n;
}
-function uhe(e, t) {
+function che(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -40895,7 +40895,7 @@ function uhe(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function dhe(e, t) {
+function lhe(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -40904,7 +40904,7 @@ function dhe(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var fhe = [
+var uhe = [
"",
"follow",
"jav",
@@ -40913,7 +40913,7 @@ var fhe = [
"studios",
"flagged",
"manage"
-], phe = [
+], dhe = [
"playlists",
"immerse",
"stats",
@@ -40923,77 +40923,77 @@ var fhe = [
"follow-manage",
"quality"
];
-[...fhe, ...phe];
-function mhe(e) {
+[...uhe, ...dhe];
+function fhe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var RF = (e) => typeof e == "string" ? e : "", zF = (e) => e.aliases;
-function BF(e, t = "") {
- let n = bF(e);
+var BF = (e) => typeof e == "string" ? e : "", VF = (e) => e.aliases;
+function HF(e, t = "") {
+ let n = SF(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${L(t)}"${t ? ` title="${L(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var VF = (e, t) => $P(e, zF(t));
-function HF(e, t) {
- let { src: n, fallback: r } = tF(e), i = eF(t);
+var UF = (e, t) => tF(e, VF(t));
+function WF(e, t) {
+ let { src: n, fallback: r } = rF(e), i = nF(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${L(i)}</span>`;
let a = r ? ` data-fallbacks="${L(r)}"` : "";
return `<img class="favatar" src="${L(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${L(i)}" data-drop-class="favatar none">`;
}
-function UF(e, t, n) {
- let r = zF(n), i = e.credit, a = i?.poster;
+function GF(e, t, n) {
+ let r = VF(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = $P(t, r);
+ let n = tF(t, r);
return {
- author: n || RF(e.author) || RF(e.source_label) || "创作者未取得",
- avatar: HF(t, n),
+ author: n || BF(e.author) || BF(e.source_label) || "创作者未取得",
+ avatar: WF(t, n),
credited: ""
};
}
- 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 && $P(c, r) || a;
+ 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 && tF(c, r) || a;
return {
author: l,
- avatar: HF(c, l),
+ avatar: WF(c, l),
credited: i.credited || ""
};
}
-function WF(e, t = e.primary) {
+function KF(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 = RF(e.primary.version);
+ let i = BF(e.primary.version);
i && n.push(r("version", L(i)));
- let a = RF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = BF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function GF(e, t = e.primary) {
+function qF(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]) => BF(e, t) || `<span>${L(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => HF(e, t) || `<span>${L(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${L([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function KF(e, t) {
- let n = RF(e.media_error);
+function JF(e, t) {
+ let n = BF(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var qF = (e) => e.published_at ? tj(e.published_at) : "时间未取得", JF = /* @__PURE__ */ new Set(), YF = [], XF = null;
-function ZF() {
- if (XF = null, !YF.length) return;
- let e = YF.splice(0, 200);
+var YF = (e) => e.published_at ? ej(e.published_at) : "时间未取得", XF = /* @__PURE__ */ new Set(), ZF = [], QF = null;
+function $F() {
+ if (QF = null, !ZF.length) return;
+ let e = ZF.splice(0, 200);
ce("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), YF.length && (XF = setTimeout(ZF, 800));
+ }).catch(() => {}), ZF.length && (QF = setTimeout($F, 800));
}
-function hhe(e, t, n, r) {
+function phe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- JF.has(i) || (JF.add(i), YF.push(t === null ? {
+ XF.has(i) || (XF.add(i), ZF.push(t === null ? {
item: e,
width: n,
height: r
@@ -41002,15 +41002,15 @@ function hhe(e, t, n, r) {
width: n,
height: r,
media: t
- }), XF ||= setTimeout(ZF, 800));
+ }), QF ||= setTimeout($F, 800));
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var ghe = (e) => Number(e) > 0;
-function _he(e) {
+var mhe = (e) => Number(e) > 0;
+function hhe(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function vhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
+function ghe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
let [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1);
return a ? null : /* @__PURE__ */ (0, V.jsx)("img", {
src: s ? t : e,
@@ -41028,8 +41028,8 @@ function vhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
} : void 0
});
}
-function yhe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = NF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => hhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? PF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ohe({
+function _he(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = FF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => phe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? IF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ihe({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -41037,7 +41037,7 @@ function yhe(e) {
limit: 9
}), S = (0, B.useRef)(x.faces);
S.current = x.faces;
- let C = SA({
+ let C = bA({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -41045,7 +41045,7 @@ function yhe(e) {
w.current = C.onPointerLeave;
let T = (0, B.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = UF(u, n, i), D = qF(u), O = (u.tags || []).slice(0, 3), k = KF(u, i), A = GF(t, u), j = u.status === "saved", M = (e) => {
+ }, []), E = GF(u, n, i), D = YF(u), O = (u.tags || []).slice(0, 3), k = JF(u, i), A = qF(t, u), j = u.status === "saved", M = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (o || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), l.toggleSelection(u.id, e.shiftKey);
@@ -41078,7 +41078,7 @@ function yhe(e) {
}), /* @__PURE__ */ (0, V.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, V.jsx)(vhe, {
+ p ? /* @__PURE__ */ (0, V.jsx)(ghe, {
src: p,
fallback: m,
width: _?.width,
@@ -41086,7 +41086,7 @@ function yhe(e) {
onLearn: v
}, p) : /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: BF(u.resource_provider || u.provider) }
+ dangerouslySetInnerHTML: { __html: HF(u.resource_provider || u.provider) }
}),
x.faces.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-mix-faces": "",
@@ -41105,7 +41105,7 @@ function yhe(e) {
"data-media-badge": "",
title: u.provider_label,
"aria-label": `来源:${u.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: BF(u.provider) }
+ dangerouslySetInnerHTML: { __html: HF(u.provider) }
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-media-check": "",
@@ -41114,7 +41114,7 @@ function yhe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}),
- ghe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {
+ mhe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-duration": "",
children: fe(u.duration)
}) : null,
@@ -41196,7 +41196,7 @@ function yhe(e) {
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: WF(t, u) + L(u.title) }
+ dangerouslySetInnerHTML: { __html: KF(t, u) + L(u.title) }
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
"data-follow-byline": "",
@@ -41207,7 +41207,7 @@ function yhe(e) {
}), /* @__PURE__ */ (0, V.jsx)("time", {
dateTime: u.published_at || "",
title: D,
- children: _he(D)
+ children: hhe(D)
})]
}),
E.credited ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -41243,10 +41243,10 @@ function yhe(e) {
]
});
}
-var bhe = (0, B.memo)(yhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {
+var vhe = (0, B.memo)(_he), eI = () => /* @__PURE__ */ (0, V.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), xhe = oA("settings"), She = oA("chevron-down"), Che = oA("history"), whe = [[
+}), yhe = iA("settings"), bhe = iA("chevron-down"), xhe = iA("history"), She = [[
"fixed",
"固定比例",
"layout-grid"
@@ -41255,19 +41255,19 @@ var bhe = (0, B.memo)(yhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function The(e, t, n) {
+function Che(e, t, n) {
return (0, B.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = OF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = OF(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = AF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = AF(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = OF([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = AF([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -41275,7 +41275,7 @@ function The(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => MF(e).forEach((e) => {
+ r.forEach((e) => PF(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -41290,7 +41290,7 @@ function The(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => MF(e).has(_)),
+ visible: r.filter((e) => PF(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -41303,15 +41303,15 @@ function The(e, t, n) {
n
]);
}
-function Ehe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = wF(t, r), o = kS(a), s = TS({
- queryKey: TF,
- queryFn: ({ signal: e }) => EF(e)
- }), c = (0, B.useMemo)(() => DF(o.data), [o.data]), l = (0, B.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, B.useMemo)(() => ({
+function whe(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = EF(t, r), o = OS(a), s = wS({
+ queryKey: DF,
+ queryFn: ({ signal: e }) => OF(e)
+ }), c = (0, B.useMemo)(() => kF(o.data), [o.data]), l = (0, B.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, B.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = The(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => mhe(d.visible.flatMap(kF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = Che(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => fhe(d.visible.flatMap(jF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
(0, B.useEffect)(() => {
p && i.loaded(m);
}, [
@@ -41319,20 +41319,20 @@ function Ehe(e) {
m,
i
]);
- let h = Dhe(e, !!c);
- if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(gA, {
+ let h = The(e, !!c);
+ if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: ye(o.error),
onRetry: () => void o.refetch()
}) : null;
let g = (e) => i.route({
...t,
...e
- }), _ = lhe({
+ }), _ = she({
...t,
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, VF(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, UF(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);
@@ -41352,7 +41352,7 @@ function Ehe(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
- leadingIcon: xhe,
+ leadingIcon: yhe,
"data-follow-manage": "",
onClick: i.openManage,
children: "管理关注"
@@ -41369,20 +41369,20 @@ function Ehe(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Ohe, {
+ /* @__PURE__ */ (0, V.jsx)(Ehe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, V.jsx)(khe, {
+ /* @__PURE__ */ (0, V.jsx)(Dhe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, V.jsx)(Ahe, {
+ /* @__PURE__ */ (0, V.jsx)(Ohe, {
facets: d,
view: t,
total: v,
@@ -41390,9 +41390,9 @@ function Ehe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, V.jsx)(jhe, {
+ /* @__PURE__ */ (0, V.jsx)(khe, {
conditions: _,
- onDrop: (e) => i.route(uhe(t, e)),
+ onDrop: (e) => i.route(che(t, e)),
onClear: () => g({
author: "",
provider: "",
@@ -41400,11 +41400,11 @@ function Ehe(e) {
tags: []
})
}),
- d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Mhe, {
+ d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Ahe, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Nhe, {
+ /* @__PURE__ */ (0, V.jsx)(jhe, {
pending: f,
facets: d,
data: c,
@@ -41415,19 +41415,19 @@ function Ehe(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, V.jsxs)(DA, {
+ children: /* @__PURE__ */ (0, V.jsxs)(EA, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, V.jsx)(She, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, V.jsx)(bhe, { className: "size-3.5" }), "加载更多"]
}, o.data?.pages.length)
}) : null, y ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : Che,
+ leadingIcon: h.olderBusy ? void 0 : xhe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -41437,14 +41437,14 @@ function Ehe(e) {
}), /* @__PURE__ */ (0, V.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-backfill": "",
- children: she(d.sources)
+ children: ahe(d.sources)
})]
}) : null]
}) : null
]
})] });
}
-function Dhe(e, t) {
+function The(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, B.useState)(0), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), f = (0, B.useRef)(!1), p = (0, B.useRef)(null), m = (0, B.useRef)({
helpers: n,
actions: r
@@ -41459,7 +41459,7 @@ function Dhe(e, t) {
return m.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => G(FP, e),
+ read: (e) => G(LP, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -41484,7 +41484,7 @@ function Dhe(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await K(FP, e ? {
+ let n = await K(LP, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -41502,7 +41502,7 @@ function Dhe(e, t) {
olderBusy: c === "older" || u && o
};
}
-function Ohe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function Ehe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -41519,16 +41519,16 @@ function Ohe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
onClick: () => i(r),
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: HF(a, VF(a, n)) }
+ dangerouslySetInnerHTML: { __html: WF(a, UF(a, n)) }
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-name": "",
- children: VF(a, n)
+ children: UF(a, n)
})]
}, r);
})
}) : null;
}
-function khe({ rows: e, pressed: t, props: n, onPick: r }) {
+function Dhe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -41549,13 +41549,13 @@ function khe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function Ahe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = hD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = hD(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function Ohe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = pD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pD(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, B.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, V.jsx)(fD, {
+ return /* @__PURE__ */ (0, V.jsx)(uD, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -41607,7 +41607,7 @@ function Ahe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, V.jsx)(QF, {})] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {
+ }), /* @__PURE__ */ (0, V.jsx)(eI, {})] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -41616,7 +41616,7 @@ function Ahe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [ehe.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {
+ children: [Qme.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -41627,7 +41627,7 @@ function Ahe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, V.jsx)(QF, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, V.jsx)(eI, {}) : null]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -41640,13 +41640,13 @@ function Ahe({ 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: BF(t) }
+ dangerouslySetInnerHTML: { __html: HF(t) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, V.jsx)(QF, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(pD, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, V.jsx)(eI, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${dhe(e.groups, n)}`,
+ "data-tag-cat": `r34-${lhe(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [ot(n), r ? /* @__PURE__ */ (0, V.jsx)("span", {
@@ -41664,11 +41664,11 @@ function Ahe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(uA, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(lA, {
+ /* @__PURE__ */ (0, V.jsx)(cA, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(sA, {
label: "图片布局",
value: i.photoLayout,
- options: whe,
+ options: She,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -41685,17 +41685,17 @@ function Ahe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- the.map(([e, n]) => {
- let r = t.sort === e, i = oA(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ $me.map(([e, n]) => {
+ let r = t.sort === e, i = iA(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-entity-sort": e,
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": che(e, n, t.sort, t.dir) || void 0,
+ "aria-label": ohe(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = IF(e, t.sort, t.dir);
+ let n = RF(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, V.jsx)(i, { className: "size-3.5" }) : null]
@@ -41705,7 +41705,7 @@ function Ahe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function jhe({ conditions: e, onDrop: t, onClear: n }) {
+function khe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -41730,7 +41730,7 @@ function jhe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Mhe({ count: e, onManage: t }) {
+function Ahe({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -41739,12 +41739,12 @@ function Mhe({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function Nhe({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = hA(e, () => o.listSkeletonHtml(a.media));
+function jhe({ pending: e, facets: t, data: n, context: r, props: i }) {
+ let { view: a, helpers: o } = i, s = a.media === "images", c = pA(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Phe, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Mhe, {
facets: t,
data: n,
context: r,
@@ -41753,38 +41753,38 @@ function Nhe({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Phe({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, actions: o } = r, s = Lhe(r), c = i ? {
+function Mhe({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, actions: o } = r, s = Fhe(r), c = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, l;
return l = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;
- return /* @__PURE__ */ (0, V.jsx)(bhe, {
+ return /* @__PURE__ */ (0, V.jsx)(vhe, {
group: t,
authorSources: c,
media: a.media,
context: n,
- selected: r.selected.has($F(t, a)),
+ selected: r.selected.has(tI(t, a)),
selectMode: r.selectMode,
- busy: s.busy.get($F(t, a)) || "",
- failure: s.failures.get($F(t, a)) || "",
+ busy: s.busy.get(tI(t, a)) || "",
+ failure: s.failures.get(tI(t, a)) || "",
actions: o,
onStatus: s.status,
onSave: s.save
}, `${l}:${a.media}`);
- }) : /* @__PURE__ */ (0, V.jsx)(Fhe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {
+ }) : /* @__PURE__ */ (0, V.jsx)(Nhe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...c,
children: l
});
}
-function $F(e, t) {
- return NF(e, t.media).id;
+function tI(e, t) {
+ return FF(e, t.media).id;
}
-function Fhe({ data: e }) {
+function Nhe({ data: e }) {
let t = (e.groups || []).length ? Oe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Oe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Oe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-empty": "",
@@ -41792,36 +41792,36 @@ function Fhe({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var Ihe = {
+var Phe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function Lhe(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, B.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, B.useState)(() => /* @__PURE__ */ new Map()), c = wF(t, n).queryKey, l = (e, t, n) => n((n) => {
+function Fhe(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, B.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, B.useState)(() => /* @__PURE__ */ new Map()), c = EF(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- z.setQueryData(c, (r) => r && LF(r, t, e, n));
+ z.setQueryData(c, (r) => r && zF(r, t, e, n));
}, d = () => void z.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = DF(z.getQueryData(c));
+ let t = kF(z.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
...n.duplicates
]) if (t.id === e) return t.status;
return "new";
- }, p = OS({
- mutationFn: ({ id: e, to: t }) => K(zP, {
+ }, p = DS({
+ mutationFn: ({ id: e, to: t }) => K(VP, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Ihe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await K(zP, {
+ u(t, n), d(), r.toast(Phe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await K(VP, {
item: t,
to: i
}), u(t, i), d();
@@ -41831,7 +41831,7 @@ function Lhe(e) {
l(t, ye(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), m = OS({
+ }), m = DS({
mutationFn: (e) => K("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
@@ -41866,8 +41866,8 @@ function Lhe(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function eI({ provider: e, label: t }) {
- let n = bF(e), [r, i] = (0, B.useState)(!1);
+function nI({ provider: e, label: t }) {
+ let n = SF(e), [r, i] = (0, B.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: t }) : null : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("img", {
src: n,
alt: "",
@@ -41878,8 +41878,8 @@ function eI({ provider: e, label: t }) {
className: "size-3.5 shrink-0 rounded-sm object-contain"
}), t ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : null] });
}
-function tI({ group: e, name: t }) {
- let { src: n, fallback: r } = tF(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];
+function rI({ group: e, name: t }) {
+ let { src: n, fallback: r } = rF(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, V.jsx)("img", {
src: o,
alt: "",
@@ -41892,18 +41892,18 @@ function tI({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, V.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: eF(t)
+ children: nF(t)
});
}
-function nI({ source: e }) {
- let t = JP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, V.jsx)(xE, {
+function iI({ source: e }) {
+ let t = XP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: t,
- children: Nme(e)
+ children: jme(e)
});
}
-function rI({ source: e }) {
+function aI({ source: e }) {
return /* @__PURE__ */ (0, V.jsx)("a", {
href: e.url,
target: "_blank",
@@ -41915,11 +41915,11 @@ function rI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var iI = vE(dM, fM, "text-body-2-medium"), Rhe = "粘贴来源链接,或输入创作者名、id…", zhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Bhe = "识别中…", Vhe = "站内没有查到来源", aI = (e, t) => `${e}:${t.url}`;
-function Hhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var oI = gE(uM, dM, "text-body-2-medium"), Ihe = "粘贴来源链接,或输入创作者名、id…", Lhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Rhe = "识别中…", zhe = "站内没有查到来源", sI = (e, t) => `${e}:${t.url}`;
+function Bhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, B.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, V.jsxs)(tk, {
+ }, [t, r]), /* @__PURE__ */ (0, V.jsxs)($O, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -41931,17 +41931,17 @@ function Hhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: vE(uM, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: gE(lM, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, V.jsx)(EE, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, V.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? vE(iI, "bg-background-secondary-default") : iI,
+ className: t === r ? gE(oI, "bg-background-secondary-default") : oI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -41961,7 +41961,7 @@ function Hhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function Uhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Vhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -41969,20 +41969,20 @@ function Uhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
ref: i,
variant: "secondary",
- leadingIcon: cae,
+ leadingIcon: lae,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, V.jsx)(tk, {
+ }), /* @__PURE__ */ (0, V.jsx)($O, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: uM,
- children: /* @__PURE__ */ (0, V.jsxs)(fk, {
+ className: lM,
+ children: /* @__PURE__ */ (0, V.jsxs)(uk, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -41998,16 +41998,16 @@ function Uhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, V.jsx)(zE, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(NM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, V.jsx)(eI, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, V.jsx)(nI, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "ghost",
@@ -42023,7 +42023,7 @@ function Uhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Whe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Hhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: e.line,
@@ -42031,7 +42031,7 @@ function Whe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -42042,15 +42042,15 @@ function Whe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = aI(t, e);
- return /* @__PURE__ */ (0, V.jsx)(NM, {
+ let n = sI(t, e);
+ return /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, V.jsx)(eI, { provider: e.provider }),
+ /* @__PURE__ */ (0, V.jsx)(nI, { provider: e.provider }),
/* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -42066,22 +42066,22 @@ function Whe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, V.jsx)(zE, { children: Vhe }),
+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: zhe }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, V.jsx)(HE, {
+ }), /* @__PURE__ */ (0, V.jsx)(BE, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, V.jsx)(zE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(!1), [p, m] = (0, B.useState)(null), [h, g] = (0, B.useState)(-1), _ = (0, B.useRef)(null), v = (0, B.useRef)(null), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, B.useState)(""), [T, E] = (0, B.useState)(0);
(0, B.useEffect)(() => {
let e = a.trim();
@@ -42092,19 +42092,19 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = TS({
- queryKey: Dme(l),
- queryFn: ({ signal: e }) => zme(l, e),
+ let D = wS({
+ queryKey: Tme(l),
+ queryFn: ({ signal: e }) => Lme(l, e),
enabled: l.length > 0 && d
}), O = (0, B.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = kM({
- queryKey: Eme,
- queryFn: ({ signal: e }) => Rme(e),
- start: (e) => Bme([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = OM({
+ queryKey: wme,
+ queryFn: ({ signal: e }) => Ime(e),
+ start: (e) => Rme([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(W(e)),
onFinish: (e) => {
@@ -42138,14 +42138,14 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: aI(t, e)
- })).filter((e) => !x.has(e.key))), ie = OS({
+ key: sI(t, e)
+ })).filter((e) => !x.has(e.key))), ie = DS({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await Vme(r.candidate);
+ let e = await zme(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${W(e)}`);
@@ -42153,7 +42153,7 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await cF(n);
+ await uF(n);
} catch (e) {
t.push(W(e));
}
@@ -42163,7 +42163,7 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (vF(), e.failures.length) {
+ if (bF(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -42172,7 +42172,7 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => w(W(e))
}), ae = e.suggestions || [], oe = !s.includes("/");
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42192,15 +42192,15 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, V.jsx)(GM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "来源链接、名字或 id",
- placeholder: Rhe,
+ placeholder: Ihe,
value: a,
- leadingIcon: TT,
+ leadingIcon: wT,
isDisabled: n,
onChange: o,
onKeyDown: te
- }), F ? /* @__PURE__ */ (0, V.jsx)(Hhe, {
+ }), F ? /* @__PURE__ */ (0, V.jsx)(Bhe, {
field: _,
menu: v,
options: O,
@@ -42210,7 +42210,7 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: I
}) : null]
}),
- /* @__PURE__ */ (0, V.jsx)(Uhe, {
+ /* @__PURE__ */ (0, V.jsx)(Vhe, {
credentials: t,
hidden: y,
onHidden: b,
@@ -42228,9 +42228,9 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, V.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(SM, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? zhe : Bhe),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Lhe : Rhe),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -42242,8 +42242,8 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
ne.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: "查找结果" }),
- ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Whe, {
+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "查找结果" }),
+ ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Hhe, {
row: e,
at: t,
hidden: y,
@@ -42298,16 +42298,16 @@ function Ghe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Khe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, oI = (e) => e.alias;
-function qhe(e, t, n) {
+var Whe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, cI = (e) => e.alias;
+function Ghe(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function sI({ sources: e, name: t, canonicalKey: n }) {
+function lI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(tI, {
- group: qhe(e, t, n),
+ children: [/* @__PURE__ */ (0, V.jsx)(rI, {
+ group: Ghe(e, t, n),
name: t
}), /* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium",
@@ -42315,15 +42315,15 @@ function sI({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = OS({
+function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+ let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = DS({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await dF(n.canonical, n.alias);
+ await pF(n.canonical, n.alias);
} catch (n) {
- throw t && vF(), Error(`${W(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && bF(), Error(`${W(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -42333,19 +42333,19 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), vF(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), bF(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(W(e))
- }), m = OS({
- mutationFn: (e) => dF(e.canonical, e.alias),
+ }), m = DS({
+ mutationFn: (e) => pF(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), vF(), i("已保存创作者别名");
+ c(""), u(""), f(""), bF(), i("已保存创作者别名");
},
onError: (e) => c(W(e))
- }), h = OS({
- mutationFn: (e) => Hme(e),
+ }), h = DS({
+ mutationFn: (e) => Bme(e),
onSuccess: () => {
- c(""), vF(), i("已移除创作者别名");
+ c(""), bF(), i("已移除创作者别名");
},
onError: (e) => c(W(e))
}), g = (e, t) => {
@@ -42355,9 +42355,9 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(oI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
+ }, _ = t.filter((e) => a.has(cI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42368,10 +42368,10 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -42379,7 +42379,7 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -42400,13 +42400,13 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, V.jsx)(BE, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, V.jsx)(RE, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: "待合并" }),
+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "待合并" }),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -42428,44 +42428,44 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, V.jsx)(IM, { children: /* @__PURE__ */ (0, V.jsxs)(PM, {
+ }), /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Ik, { children: [
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "select",
- children: /* @__PURE__ */ (0, V.jsx)(NM, {
+ children: /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(oI)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(cI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, V.jsx)(Lk, {
+ /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(zk, { children: t.map((e) => {
- let t = oI(e);
- return /* @__PURE__ */ (0, V.jsxs)(Hk, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => {
+ let t = cI(e);
+ return /* @__PURE__ */ (0, V.jsxs)(Bk, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)(NM, {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -42474,16 +42474,16 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(lI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: e.alias }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.alias }),
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
disabled: r,
@@ -42500,27 +42500,27 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, V.jsx)(IM, { children: /* @__PURE__ */ (0, V.jsxs)(PM, {
+ }), e.length ? /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Ik, { children: [/* @__PURE__ */ (0, V.jsx)(Lk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [/* @__PURE__ */ (0, V.jsx)(Fk, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, V.jsx)(Lk, {
+ }), /* @__PURE__ */ (0, V.jsx)(Fk, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, V.jsx)(zk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(Hk, {
+ })] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(lI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, V.jsx)(Wk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -42528,13 +42528,13 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: pT,
+ leadingIcon: fT,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...X(h.isPending),
onClick: () => void Te({
title: "移除创作者别名",
- body: Khe(e.name),
+ body: Whe(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -42542,9 +42542,9 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: DT,
+ icon: ET,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -42554,33 +42554,33 @@ function Jhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var Yhe = "这些账号信息存在哪里", Xhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Zhe = "将清除这个来源在本机和共享副本中的登录凭据。", Qhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function $he(e, t) {
+var qhe = "这些账号信息存在哪里", Jhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Yhe = "将清除这个来源在本机和共享副本中的登录凭据。", Xhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function Zhe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function ege({ row: e }) {
- if (xF(e)) return /* @__PURE__ */ (0, V.jsx)(xE, {
+function Qhe({ row: e }) {
+ if (CF(e)) return /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, V.jsx)(xE, {
+ return /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: t,
- children: $me[e.requirement] || ""
+ children: Zme[e.requirement] || ""
});
}
-function tge({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = xF(e), c = OS({
- mutationFn: (t) => Ume(e.provider, t),
+function $he({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = CF(e), c = DS({
+ mutationFn: (t) => Vme(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), z.invalidateQueries({
- queryKey: HP,
+ queryKey: WP,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -42596,17 +42596,17 @@ function tge({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsxs)(zE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(BE, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, V.jsx)(zE, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.howto }) : null,
/* @__PURE__ */ (0, V.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(WM, {
type: "password",
label: n,
- placeholder: $he(e, n),
+ placeholder: Zhe(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -42634,7 +42634,7 @@ function tge({ row: e, readOnly: t, toast: n }) {
...X(c.isPending),
onClick: () => void Te({
title: "清除来源凭据",
- body: Zhe,
+ body: Yhe,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -42642,9 +42642,9 @@ function tge({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, V.jsx)(BE, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(zE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, V.jsx)(xM, {
+ a ? /* @__PURE__ */ (0, V.jsx)(RE, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, V.jsx)(bM, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -42652,25 +42652,25 @@ function tge({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: Qhe
+ children: Xhe
}) : null
]
});
}
-function nge({ row: e, readOnly: t, toast: n }) {
+function ege({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, V.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, V.jsx)(eI, { provider: e.provider })
+ children: /* @__PURE__ */ (0, V.jsx)(nI, { provider: e.provider })
}),
/* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, V.jsx)(ege, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, V.jsx)(xE, {
+ /* @__PURE__ */ (0, V.jsx)(Qhe, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -42679,13 +42679,13 @@ function nge({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(zE, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, V.jsx)(GE, {
- summary: xF(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !xF(e),
- children: /* @__PURE__ */ (0, V.jsx)(tge, {
+ children: [r, /* @__PURE__ */ (0, V.jsx)(UE, {
+ summary: CF(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !CF(e),
+ children: /* @__PURE__ */ (0, V.jsx)($he, {
row: e,
readOnly: t,
toast: n
@@ -42693,10 +42693,10 @@ function nge({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function rge({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !xF(e));
+function tge({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !CF(e));
return r.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42731,12 +42731,12 @@ function rge({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, V.jsx)("div", {
- className: wE({
+ className: SE({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(nge, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(ege, {
row: e,
readOnly: t,
toast: n
@@ -42748,13 +42748,13 @@ function rge({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: Yhe
+ children: qhe
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Xhe
+ children: Jhe
}),
- /* @__PURE__ */ (0, V.jsx)(xM, {
+ /* @__PURE__ */ (0, V.jsx)(bM, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -42763,16 +42763,16 @@ function rge({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: pae,
+ icon: mae,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function cI() {
+function uI() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -42785,24 +42785,24 @@ function cI() {
group: (e) => e
};
}
-function lI(e, t) {
+function dI(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function uI(e, t) {
+function fI(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: lI(n, t[e])
+ [e]: dI(n, t[e])
}));
};
}
-function dI(e) {
+function pI(e) {
return e instanceof Function;
}
-function ige(e) {
+function nge(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function age(e, t) {
+function rge(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -42812,7 +42812,7 @@ function age(e, t) {
};
return r(e), n;
}
-function fI(e, t, n) {
+function mI(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -42834,21 +42834,21 @@ function fI(e, t, n) {
return i;
};
}
-function pI(e, t, n, r) {
+function hI(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function oge(e, t, n, r) {
+function ige(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: fI(() => [
+ getContext: mI(() => [
e,
n,
t,
@@ -42860,13 +42860,13 @@ function oge(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), pI(e.options, "debugCells", "cell.getContext"))
+ }), hI(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function sge(e, t, n, r) {
+function age(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -42883,17 +42883,17 @@ function sge(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: fI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], pI(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: fI(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: mI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], hI(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: mI(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, pI(e.options, "debugColumns", "column.getLeafColumns"))
+ }, hI(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var mI = "debugHeaders";
-function hI(e, t, n) {
+var gI = "debugHeaders";
+function _I(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -42921,42 +42921,42 @@ function hI(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var cge = { createTable: (e) => {
- e.getHeaderGroups = fI(() => [
+var oge = { createTable: (e) => {
+ e.getHeaderGroups = mI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return gI(t, [
+ return vI(t, [
...a,
...s,
...o
], e);
- }, pI(e.options, mI, "getHeaderGroups")), e.getCenterHeaderGroups = fI(() => [
+ }, hI(e.options, gI, "getHeaderGroups")), e.getCenterHeaderGroups = mI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), gI(t, n, e, "center")), pI(e.options, mI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = fI(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), vI(t, n, e, "center")), hI(e.options, gI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = mI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => gI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), pI(e.options, mI, "getLeftHeaderGroups")), e.getRightHeaderGroups = fI(() => [
+ ], (t, n, r) => vI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), hI(e.options, gI, "getLeftHeaderGroups")), e.getRightHeaderGroups = mI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => gI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), pI(e.options, mI, "getRightHeaderGroups")), e.getFooterGroups = fI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), pI(e.options, mI, "getFooterGroups")), e.getLeftFooterGroups = fI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), pI(e.options, mI, "getLeftFooterGroups")), e.getCenterFooterGroups = fI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), pI(e.options, mI, "getCenterFooterGroups")), e.getRightFooterGroups = fI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), pI(e.options, mI, "getRightFooterGroups")), e.getFlatHeaders = fI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), pI(e.options, mI, "getFlatHeaders")), e.getLeftFlatHeaders = fI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), pI(e.options, mI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = fI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), pI(e.options, mI, "getCenterFlatHeaders")), e.getRightFlatHeaders = fI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), pI(e.options, mI, "getRightFlatHeaders")), e.getCenterLeafHeaders = fI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => vI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), hI(e.options, gI, "getRightHeaderGroups")), e.getFooterGroups = mI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), hI(e.options, gI, "getFooterGroups")), e.getLeftFooterGroups = mI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), hI(e.options, gI, "getLeftFooterGroups")), e.getCenterFooterGroups = mI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), hI(e.options, gI, "getCenterFooterGroups")), e.getRightFooterGroups = mI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), hI(e.options, gI, "getRightFooterGroups")), e.getFlatHeaders = mI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hI(e.options, gI, "getFlatHeaders")), e.getLeftFlatHeaders = mI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hI(e.options, gI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = mI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hI(e.options, gI, "getCenterFlatHeaders")), e.getRightFlatHeaders = mI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hI(e.options, gI, "getRightFlatHeaders")), e.getCenterLeafHeaders = mI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), pI(e.options, mI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = fI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), hI(e.options, gI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = mI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), pI(e.options, mI, "getLeftLeafHeaders")), e.getRightLeafHeaders = fI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), hI(e.options, gI, "getLeftLeafHeaders")), e.getRightLeafHeaders = mI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), pI(e.options, mI, "getRightLeafHeaders")), e.getLeafHeaders = fI(() => [
+ }), hI(e.options, gI, "getRightLeafHeaders")), e.getLeafHeaders = mI(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -42964,9 +42964,9 @@ var cge = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), pI(e.options, mI, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), hI(e.options, gI, "getLeafHeaders"));
} };
-function gI(e, t, n, r) {
+function vI(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -42984,7 +42984,7 @@ function gI(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = hI(n, c, {
+ let i = _I(n, c, {
id: [
r,
t,
@@ -43001,7 +43001,7 @@ function gI(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => hI(n, e, {
+ s(t.map((e, t) => _I(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -43019,7 +43019,7 @@ function gI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var lge = (e, t, n, r, i, a, o) => {
+var sge = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -43040,7 +43040,7 @@ var lge = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => age(s.subRows, (e) => e.subRows),
+ getLeafRows: () => rge(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -43051,95 +43051,95 @@ var lge = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: fI(() => [e.getAllLeafColumns()], (t) => t.map((t) => oge(e, s, t, t.id)), pI(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: fI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), pI(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: mI(() => [e.getAllLeafColumns()], (t) => t.map((t) => ige(e, s, t, t.id)), hI(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: mI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), hI(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, uge = { createColumn: (e, t) => {
+}, cge = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, _I = (e, t, n) => {
+} }, yI = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-_I.autoRemove = (e) => DI(e);
-var vI = (e, t, n) => {
+yI.autoRemove = (e) => kI(e);
+var bI = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-vI.autoRemove = (e) => DI(e);
-var yI = (e, t, n) => {
+bI.autoRemove = (e) => kI(e);
+var xI = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-yI.autoRemove = (e) => DI(e);
-var bI = (e, t, n) => e.getValue(t)?.includes(n);
-bI.autoRemove = (e) => DI(e);
-var xI = (e, t, n) => !n.some((n) => {
+xI.autoRemove = (e) => kI(e);
+var SI = (e, t, n) => e.getValue(t)?.includes(n);
+SI.autoRemove = (e) => kI(e);
+var CI = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-xI.autoRemove = (e) => DI(e) || !(e != null && e.length);
-var SI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-SI.autoRemove = (e) => DI(e) || !(e != null && e.length);
-var CI = (e, t, n) => e.getValue(t) === n;
-CI.autoRemove = (e) => DI(e);
-var wI = (e, t, n) => e.getValue(t) == n;
-wI.autoRemove = (e) => DI(e);
-var TI = (e, t, n) => {
+CI.autoRemove = (e) => kI(e) || !(e != null && e.length);
+var wI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+wI.autoRemove = (e) => kI(e) || !(e != null && e.length);
+var TI = (e, t, n) => e.getValue(t) === n;
+TI.autoRemove = (e) => kI(e);
+var EI = (e, t, n) => e.getValue(t) == n;
+EI.autoRemove = (e) => kI(e);
+var DI = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-TI.resolveFilterValue = (e) => {
+DI.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, TI.autoRemove = (e) => DI(e) || DI(e[0]) && DI(e[1]);
-var EI = {
- includesString: _I,
- includesStringSensitive: vI,
- equalsString: yI,
- arrIncludes: bI,
- arrIncludesAll: xI,
- arrIncludesSome: SI,
- equals: CI,
- weakEquals: wI,
- inNumberRange: TI
+}, DI.autoRemove = (e) => kI(e) || kI(e[0]) && kI(e[1]);
+var OI = {
+ includesString: yI,
+ includesStringSensitive: bI,
+ equalsString: xI,
+ arrIncludes: SI,
+ arrIncludesAll: CI,
+ arrIncludesSome: wI,
+ equals: TI,
+ weakEquals: EI,
+ inNumberRange: DI
};
-function DI(e) {
+function kI(e) {
return e == null || e === "";
}
-var dge = {
+var lge = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: uI("columnFilters", e),
+ onColumnFiltersChange: fI("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? EI.includesString : typeof n == "number" ? EI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? EI.equals : Array.isArray(n) ? EI.arrIncludes : EI.weakEquals;
- }, e.getFilterFn = () => dI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? EI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? OI.includesString : typeof n == "number" ? OI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? OI.equals : Array.isArray(n) ? OI.arrIncludes : OI.weakEquals;
+ }, e.getFilterFn = () => pI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? OI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = lI(n, i ? i.value : void 0);
- if (OI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = dI(n, i ? i.value : void 0);
+ if (AI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -43154,19 +43154,19 @@ var dge = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => lI(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => dI(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && OI(t.getFilterFn(), e.value, t));
+ return !(t && AI(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function OI(e, t, n) {
+function AI(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var kI = {
+var jI = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -43202,7 +43202,7 @@ var kI = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!ige(n)) return;
+ if (!nge(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -43210,7 +43210,7 @@ var kI = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, fge = {
+}, uge = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -43223,7 +43223,7 @@ var kI = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: uI("grouping", e),
+ onGroupingChange: fI("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -43236,11 +43236,11 @@ var kI = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return kI.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return kI.extent;
+ if (typeof n == "number") return jI.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return jI.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return dI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? kI[e.columnDef.aggregationFn];
+ return pI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? jI[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -43262,27 +43262,27 @@ var kI = {
};
}
};
-function pge(e, t, n) {
+function dge(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var mge = {
+var fge = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: uI("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: fI("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = fI((e) => [FI(t, e)], (t) => t.findIndex((t) => t.id === e.id), pI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => FI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = FI(t, n);
+ e.getIndex = mI((e) => [LI(t, e)], (t) => t.findIndex((t) => t.id === e.id), hI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => LI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = LI(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = fI(() => [
+ }, e._getOrderColumnsFn = mI(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -43297,18 +43297,18 @@ var mge = {
}
i = [...i, ...n];
}
- return pge(i, t, n);
- }, pI(e.options, "debugTable", "_getOrderColumnsFn"));
+ return dge(i, t, n);
+ }, hI(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, AI = () => ({
+}, MI = () => ({
left: [],
right: []
-}), hge = {
+}), pge = {
getInitialState: (e) => ({
- columnPinning: AI(),
+ columnPinning: MI(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: uI("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: fI("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -43332,75 +43332,75 @@ var mge = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = fI(() => [
+ e.getCenterVisibleCells = mI(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, pI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = fI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, hI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = mI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), pI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = fI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), hI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = mI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), pI(t.options, "debugRows", "getRightVisibleCells"));
+ })), hI(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? AI() : e.initialState?.columnPinning ?? AI()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? MI() : e.initialState?.columnPinning ?? MI()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = fI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), pI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = fI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), pI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = fI(() => [
+ }, e.getLeftLeafColumns = mI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), hI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = mI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), hI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = mI(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, pI(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, hI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function gge(e) {
+function mge(e) {
return e || (typeof document < "u" ? document : null);
}
-var jI = {
+var NI = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, MI = () => ({
+}, PI = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), _ge = {
- getDefaultColumnDef: () => jI,
+}), hge = {
+ getDefaultColumnDef: () => NI,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: MI(),
+ columnSizingInfo: PI(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: uI("columnSizing", e),
- onColumnSizingInfoChange: uI("columnSizingInfo", e)
+ onColumnSizingChange: fI("columnSizing", e),
+ onColumnSizingInfoChange: fI("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? jI.minSize, n ?? e.columnDef.size ?? jI.size), e.columnDef.maxSize ?? jI.maxSize);
- }, e.getStart = fI((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? NI.minSize, n ?? e.columnDef.size ?? NI.size), e.columnDef.maxSize ?? NI.maxSize);
+ }, e.getStart = mI((e) => [
e,
- FI(t, e),
+ LI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), pI(t.options, "debugColumns", "getStart")), e.getAfter = fI((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), hI(t.options, "debugColumns", "getStart")), e.getAfter = mI((e) => [
e,
- FI(t, e),
+ LI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), pI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), hI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -43422,8 +43422,8 @@ var jI = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), PI(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = PI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), II(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = II(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -43448,7 +43448,7 @@ var jI = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = gge(n), m = {
+ }, p = mge(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -43458,8 +43458,8 @@ var jI = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = vge() ? { passive: !1 } : !1;
- PI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = gge() ? { passive: !1 } : !1;
+ II(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -43475,12 +43475,12 @@ var jI = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? MI() : e.initialState.columnSizingInfo ?? MI());
+ e.setColumnSizingInfo(t ? PI() : e.initialState.columnSizingInfo ?? PI());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, NI = null;
-function vge() {
- if (typeof NI == "boolean") return NI;
+}, FI = null;
+function gge() {
+ if (typeof FI == "boolean") return FI;
let e = !1;
try {
let t = { get passive() {
@@ -43490,17 +43490,17 @@ function vge() {
} catch {
e = !1;
}
- return NI = e, NI;
+ return FI = e, FI;
}
-function PI(e) {
+function II(e) {
return e.type === "touchstart";
}
-var yge = {
+var _ge = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: uI("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: fI("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -43515,7 +43515,7 @@ var yge = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = fI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), pI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = fI(() => [
+ e._getAllVisibleCells = mI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), hI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = mI(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -43523,10 +43523,10 @@ var yge = {
...e,
...t,
...n
- ], pI(t.options, "debugRows", "getVisibleCells"));
+ ], hI(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => fI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), pI(e.options, "debugColumns", t));
+ let t = (t, n) => mI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), hI(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -43539,20 +43539,20 @@ var yge = {
};
}
};
-function FI(e, t) {
+function LI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var bge = { createTable: (e) => {
+var vge = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, xge = {
+} }, yge = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: uI("globalFilter", e),
+ onGlobalFilterChange: fI("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -43564,22 +43564,22 @@ var bge = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => EI.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => OI.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return dI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? EI[t];
+ return pI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? OI[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, Sge = {
+}, bge = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: uI("expanded", e),
+ onExpandedChange: fI("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -43650,18 +43650,18 @@ var bge = { createTable: (e) => {
};
};
}
-}, II = 0, LI = 10, RI = () => ({
- pageIndex: II,
- pageSize: LI
-}), Cge = {
+}, RI = 0, zI = 10, BI = () => ({
+ pageIndex: RI,
+ pageSize: zI
+}), xge = {
getInitialState: (e) => ({
...e,
pagination: {
- ...RI(),
+ ...BI(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: uI("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: fI("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -43677,11 +43677,11 @@ var bge = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => lI(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? RI() : e.initialState.pagination ?? RI());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => dI(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? BI() : e.initialState.pagination ?? BI());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = lI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = dI(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
@@ -43689,13 +43689,13 @@ var bge = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? II : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? II);
+ e.setPageIndex(t ? RI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? RI);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? LI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? LI);
+ e.setPageSize(t ? zI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? zI);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, lI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, dI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -43703,28 +43703,28 @@ var bge = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = lI(t, e.options.pageCount ?? -1);
+ let r = dI(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = fI(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = mI(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, pI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, hI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, zI = () => ({
+}, VI = () => ({
top: [],
bottom: []
-}), wge = {
+}), Sge = {
getInitialState: (e) => ({
- rowPinning: zI(),
+ rowPinning: VI(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: uI("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: fI("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -43763,7 +43763,7 @@ var bge = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? zI() : e.initialState?.rowPinning ?? zI()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? VI() : e.initialState?.rowPinning ?? VI()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -43772,22 +43772,22 @@ var bge = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = fI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), pI(e.options, "debugRows", "getTopRows")), e.getBottomRows = fI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), pI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = fI(() => [
+ })), e.getTopRows = mI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), hI(e.options, "debugRows", "getTopRows")), e.getBottomRows = mI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), hI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = mI(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, pI(e.options, "debugRows", "getCenterRows"));
+ }, hI(e.options, "debugRows", "getCenterRows"));
}
-}, Tge = {
+}, Cge = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: uI("rowSelection", e),
+ onRowSelectionChange: fI("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -43806,21 +43806,21 @@ var bge = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- BI(i, t.id, r, !0, e);
+ HI(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = fI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? VI(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = mI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? UI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, pI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = fI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? VI(e, n) : {
+ }, hI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = mI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? UI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, pI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = fI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? VI(e, n) : {
+ }, hI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = mI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? UI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, pI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, hI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -43844,17 +43844,17 @@ var bge = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return BI(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return HI(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return HI(e, n);
+ return WI(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return UI(e, n) === "some";
+ return GI(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return UI(e, n) === "all";
+ return GI(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -43862,16 +43862,16 @@ var bge = { createTable: (e) => {
};
};
}
-}, BI = (e, t, n, r, i) => {
+}, HI = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => BI(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => HI(e, t.id, n, r, i));
};
-function VI(e, t) {
+function UI(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = HI(e, n);
+ let o = WI(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -43884,32 +43884,32 @@ function VI(e, t) {
rowsById: i
};
}
-function HI(e, t) {
+function WI(e, t) {
return t[e.id] ?? !1;
}
-function UI(e, t, n) {
+function GI(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (HI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = UI(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (WI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = GI(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var WI = /([0-9]+)/gm, Ege = (e, t, n) => qI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Dge = (e, t, n) => qI(KI(e.getValue(n)), KI(t.getValue(n))), Oge = (e, t, n) => GI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), kge = (e, t, n) => GI(KI(e.getValue(n)), KI(t.getValue(n))), Age = (e, t, n) => {
+var KI = /([0-9]+)/gm, wge = (e, t, n) => YI(JI(e.getValue(n)).toLowerCase(), JI(t.getValue(n)).toLowerCase()), Tge = (e, t, n) => YI(JI(e.getValue(n)), JI(t.getValue(n))), Ege = (e, t, n) => qI(JI(e.getValue(n)).toLowerCase(), JI(t.getValue(n)).toLowerCase()), Dge = (e, t, n) => qI(JI(e.getValue(n)), JI(t.getValue(n))), Oge = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, jge = (e, t, n) => GI(e.getValue(n), t.getValue(n));
-function GI(e, t) {
+}, kge = (e, t, n) => qI(e.getValue(n), t.getValue(n));
+function qI(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function KI(e) {
+function JI(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function qI(e, t) {
- let n = e.split(WI).filter(Boolean), r = t.split(WI).filter(Boolean);
+function YI(e, t) {
+ let n = e.split(KI).filter(Boolean), r = t.split(KI).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -43923,22 +43923,22 @@ function qI(e, t) {
}
return n.length - r.length;
}
-var JI = {
- alphanumeric: Ege,
- alphanumericCaseSensitive: Dge,
- text: Oge,
- textCaseSensitive: kge,
- datetime: Age,
- basic: jge
-}, Mge = [
+var XI = {
+ alphanumeric: wge,
+ alphanumericCaseSensitive: Tge,
+ text: Ege,
+ textCaseSensitive: Dge,
+ datetime: Oge,
+ basic: kge
+}, Age = [
+ oge,
+ _ge,
+ fge,
+ pge,
cge,
+ lge,
+ vge,
yge,
- mge,
- hge,
- uge,
- dge,
- bge,
- xge,
{
getInitialState: (e) => ({
sorting: [],
@@ -43949,7 +43949,7 @@ var JI = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: uI("sorting", e),
+ onSortingChange: fI("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -43957,13 +43957,13 @@ var JI = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return JI.datetime;
- if (typeof n == "string" && (r = !0, n.split(WI).length > 1)) return JI.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return XI.datetime;
+ if (typeof n == "string" && (r = !0, n.split(KI).length > 1)) return XI.alphanumeric;
}
- return r ? JI.text : JI.basic;
+ return r ? XI.text : XI.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return dI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? JI[e.columnDef.sortingFn];
+ return pI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? XI[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -44000,15 +44000,15 @@ var JI = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- fge,
+ uge,
+ bge,
+ xge,
Sge,
Cge,
- wge,
- Tge,
- _ge
+ hge
];
-function Nge(e) {
- let t = [...Mge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function jge(e) {
+ let t = [...Age, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -44034,7 +44034,7 @@ function Nge(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = lI(e, n.options);
+ let t = dI(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -44049,7 +44049,7 @@ function Nge(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: fI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: mI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -44060,20 +44060,20 @@ function Nge(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), pI(e, "debugColumns", "_getDefaultColumnDef")),
+ }), hI(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: fI(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: mI(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = sge(n, e, i, r), o = e;
+ let a = age(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, pI(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: fI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), pI(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: fI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), pI(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: fI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), pI(e, "debugColumns", "getAllLeafColumns")),
+ }, hI(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: mI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), hI(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: mI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), hI(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: mI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), hI(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -44083,8 +44083,8 @@ function Nge(e) {
}
return n;
}
-function YI() {
- return (e) => fI(() => [e.options.data], (t) => {
+function ZI() {
+ return (e) => mI(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -44093,7 +44093,7 @@ function YI() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = lge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = sge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -44102,9 +44102,9 @@ function YI() {
return o;
};
return n.rows = r(t), n;
- }, pI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, hI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function Pge(e) {
+function Mge(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -44115,8 +44115,8 @@ function Pge(e) {
rowsById: e.rowsById
};
}
-function XI(e) {
- return (e) => fI(() => [
+function QI(e) {
+ return (e) => mI(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -44129,7 +44129,7 @@ function XI(e) {
rows: a,
flatRows: o,
rowsById: s
- } : Pge({
+ } : Mge({
rows: a,
flatRows: o,
rowsById: s
@@ -44138,32 +44138,32 @@ function XI(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, pI(e.options, "debugTable", "getPaginationRowModel"));
+ }, hI(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function ZI(e, t) {
- return e ? Fge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
+function $I(e, t) {
+ return e ? Nge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
}
-function Fge(e) {
- return Ige(e) || typeof e == "function" || Lge(e);
+function Nge(e) {
+ return Pge(e) || typeof e == "function" || Fge(e);
}
-function Ige(e) {
+function Pge(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Lge(e) {
+function Fge(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function QI(e) {
+function eL(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = B.useState(() => ({ current: Nge(t) })), [r, i] = B.useState(() => n.current.initialState);
+ }, [n] = B.useState(() => ({ current: jge(t) })), [r, i] = B.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -44178,7 +44178,7 @@ function QI(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Rge = yE({
+var Ige = _E({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -44240,23 +44240,23 @@ var Rge = yE({
}
}
});
-function zge({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Rge[t];
+function Lge({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Ige[t];
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
- className: vE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? vE("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: gE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gE("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, V.jsx)("span", {
- className: vE("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, V.jsx)("span", { className: vE("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: gE("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, V.jsx)("span", { className: gE("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 $I({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsx)(nce, {
+function tL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, V.jsx)(ice, {
ref: i,
...a,
- className: (t) => vE("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, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(zge, {
+ className: (t) => gE("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, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Lge, {
state: e,
size: n,
shape: r
@@ -44268,8 +44268,8 @@ function $I({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var eL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Bge = "输入女优名,到 JavDB 找她的演员页";
-function Vge(e, t) {
+var nL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Rge = "输入女优名,到 JavDB 找她的演员页";
+function zge(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@ -44288,10 +44288,10 @@ function Vge(e, t) {
blocked: !1
};
}
-function Hge({ card: e, picked: t, onPick: n }) {
+function Bge({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(NM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -44301,7 +44301,7 @@ function Hge({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, V.jsx)(xE, {
+ e.record ? /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "neutral",
children: e.record
@@ -44312,16 +44312,16 @@ function Hge({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, V.jsx)(HE, {
+ }), /* @__PURE__ */ (0, V.jsx)(BE, {
href: e.url,
children: e.id
})]
});
}
-function Uge({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(/* @__PURE__ */ new Set()), l = AE(), u = () => {
+function Vge({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(/* @__PURE__ */ new Set()), l = OE(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Kme(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Wme(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -44329,12 +44329,12 @@ function Uge({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => qme(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Gme(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? Vge(a, s) : null;
+ }, m = a ? zge(a, s) : null;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44347,11 +44347,11 @@ function Uge({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: /* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "女优名",
- placeholder: Bge,
+ placeholder: Rge,
value: r,
- leadingIcon: TT,
+ leadingIcon: wT,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -44372,16 +44372,16 @@ function Uge({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Hge, {
+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Bge, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, V.jsx)(zE, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(zE, {
+ }, e.id)) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(LE, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -44408,19 +44408,19 @@ function Uge({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Wge = Object.fromEntries(Object.entries(KP).map(([e, t]) => [t, e])), tL = 740;
-function Gge() {
+var Hge = Object.fromEntries(Object.entries(JP).map(([e, t]) => [t, e])), rL = 740;
+function Uge() {
let [e, t] = (0, B.useState)(!1), n = (0, B.useRef)(null), r = (0, B.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < tL));
- r.observe(e), n.current = r, t(e.clientWidth < tL);
+ let r = new ResizeObserver(() => t(e.clientWidth < rL));
+ r.observe(e), n.current = r, t(e.clientWidth < rL);
}, []);
return (0, B.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var Kge = {
+var Wge = {
select: "选择",
author: "创作者",
source: "来源",
@@ -44429,7 +44429,7 @@ var Kge = {
checked: "上次检查",
actions: "操作"
};
-function nL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function iL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, V.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -44443,7 +44443,7 @@ function nL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: QA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
+ children: ZA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -44466,22 +44466,22 @@ function nL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function qge({ source: e, selected: t, onToggle: n, handlers: r }) {
+function Gge({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- FM(e, e.currentTarget) && n(!t);
+ PM(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, V.jsx)(NM, {
+ /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, V.jsx)(rI, { source: e }), e.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {
+ children: [/* @__PURE__ */ (0, V.jsx)(aI, { source: e }), e.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -44489,17 +44489,17 @@ function qge({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, V.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, V.jsx)(eI, {
+ children: /* @__PURE__ */ (0, V.jsx)(nI, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, V.jsx)(nI, { source: e }),
+ /* @__PURE__ */ (0, V.jsx)(iI, { source: e }),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: yF(e)
+ children: xF(e)
}),
- /* @__PURE__ */ (0, V.jsx)($I, {
+ /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -44511,7 +44511,7 @@ function qge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: CT,
+ leadingIcon: ST,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
@@ -44520,7 +44520,7 @@ function qge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: gT,
+ leadingIcon: hT,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -44529,11 +44529,11 @@ function qge({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(JP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = iF(r, c);
+function Kge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(XP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = oF(r, c);
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: wE({
+ className: SE({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -44543,7 +44543,7 @@ function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, V.jsx)(tI, {
+ /* @__PURE__ */ (0, V.jsx)(rI, {
group: e,
name: t
}),
@@ -44555,7 +44555,7 @@ function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: CT,
+ leadingIcon: ST,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
@@ -44564,7 +44564,7 @@ function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, V.jsx)(eI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, V.jsx)(H_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, V.jsx)(nI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, V.jsx)(H_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -44573,7 +44573,7 @@ function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: fT,
+ leadingIcon: dT,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -44584,7 +44584,7 @@ function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? dT : cT,
+ leadingIcon: n ? uT : sT,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -44594,7 +44594,7 @@ function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(qge, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(Gge, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -44603,37 +44603,37 @@ function Jge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function Yge(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = Gge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Pme(g, n, r, _), [
+function qge(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = Uge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Mme(g, n, r, _), [
g,
n,
r,
_
- ]), E = (0, B.useMemo)(() => Fme(T, n, r, _), [
+ ]), E = (0, B.useMemo)(() => Nme(T, n, r, _), [
T,
n,
r,
_
- ]), { job: D, running: O, outcome: k, start: A } = kM({
- queryKey: Tme,
- queryFn: ({ signal: e }) => Lme(e),
- start: (e) => cF(e),
+ ]), { job: D, running: O, outcome: k, start: A } = OM({
+ queryKey: Cme,
+ queryFn: ({ signal: e }) => Fme(e),
+ start: (e) => uF(e),
onError: (e) => w(W(e)),
onFinish: (e) => {
- vF(), m(e.status === "failed" ? e.error || "检查失败" : Yme(e));
+ bF(), m(e.status === "failed" ? e.error || "检查失败" : qme(e));
}
}), j = (e) => {
O || A.isPending || (w(""), A.mutate(e));
- }, M = (e, t) => p(aF(s, [e], t)), N = (e, t) => p(aF(s, e, t)), P = OS({
- mutationFn: (e) => uF(e),
+ }, M = (e, t) => p(sF(s, [e], t)), N = (e, t) => p(sF(s, e, t)), P = DS({
+ mutationFn: (e) => fF(e),
onSuccess: (e, t) => {
- _F([t]), p(aF(s, [t], !1)), m("已取消关注来源");
+ yF([t]), p(sF(s, [t], !1)), m("已取消关注来源");
},
onError: (e) => w(W(e))
- }), ee = OS({
- mutationFn: (e) => lF(e.id, e.enabled),
+ }), ee = DS({
+ mutationFn: (e) => dF(e.id, e.enabled),
onSuccess: (e, t) => {
- gF(t.id, { enabled: t.enabled }), w("");
+ vF(t.id, { enabled: t.enabled }), w("");
},
onError: (e) => w(W(e))
}), F = (e) => void Te({
@@ -44642,10 +44642,10 @@ function Yge(e) {
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => P.mutateAsync(e.id)
- }), I = OS({
+ }), I = DS({
mutationFn: async (e) => {
let t = await ge(e.ids, 4, async (t) => {
- e.action === "remove" ? await uF(t) : await lF(t, e.action === "enabled");
+ e.action === "remove" ? await fF(t) : await dF(t, e.action === "enabled");
});
return {
...e,
@@ -44654,9 +44654,9 @@ function Yge(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") _F(e.done);
- else for (let t of e.done) gF(t, { enabled: e.action === "enabled" });
- p(aF(s, e.done, !1));
+ if (e.action === "remove") yF(e.done);
+ else for (let t of e.done) vF(t, { enabled: e.action === "enabled" });
+ p(sF(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
w(`${t.length}/${e.ids.length} 个来源未更新:${W(t[0]?.error)}`);
@@ -44667,20 +44667,20 @@ function Yge(e) {
m(`已${n} ${e.done.length} 个关注来源`);
},
onError: (e) => w(W(e))
- }), te = OS({
+ }), te = DS({
mutationFn: async (e) => {
- let t = ((await Gme()).groups || []).flatMap((e) => [
+ let t = ((await Ume()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await ge(t, 6, (t) => Wme(t, e))).filter((e) => !e.ok)
+ failed: (await ge(t, 6, (t) => Hme(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (vF(), e.failed.length) {
+ if (bF(), e.failed.length) {
w(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -44705,12 +44705,12 @@ function Yge(e) {
readOnly: c
};
let ie = re.current, ae = (0, B.useMemo)(() => {
- let e = cI(), t = (e) => () => Kge[e] || e;
+ let e = uI(), t = (e) => () => Wge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(NM, {
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -44722,7 +44722,7 @@ function Yge(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(tI, {
+ children: [/* @__PURE__ */ (0, V.jsx)(rI, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, V.jsx)("span", {
@@ -44736,7 +44736,7 @@ function Yge(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, V.jsx)(rI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {
+ children: [/* @__PURE__ */ (0, V.jsx)(aI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -44747,18 +44747,18 @@ function Yge(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, V.jsx)(eI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, V.jsx)(nI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(nI, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(iI, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => yF(e.row.original.source)
+ cell: (e) => xF(e.row.original.source)
}),
e.display({
id: "actions",
@@ -44766,7 +44766,7 @@ function Yge(e) {
cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, V.jsx)($I, {
+ /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ie.readOnly,
@@ -44776,7 +44776,7 @@ function Yge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: CT,
+ leadingIcon: ST,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ie.readOnly,
...X(ie.busy),
@@ -44786,7 +44786,7 @@ function Yge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: gT,
+ leadingIcon: hT,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ie.readOnly,
onClick: () => re.current.remove(e.row.original.source)
@@ -44796,12 +44796,12 @@ function Yge(e) {
})
];
}, [ie]), oe = (0, B.useMemo)(() => {
- let e = Wge[n];
+ let e = Hge[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), se = (0, B.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ce = a === "table", le = rF(ce ? E.length : T.length, o, i), ue = QI({
+ }, [n, r]), se = (0, B.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ce = a === "table", le = aF(ce ? E.length : T.length, o, i), ue = eL({
data: E,
columns: ae,
getRowId: (e) => String(e.source.id),
@@ -44818,7 +44818,7 @@ function Yge(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(oe) : e)[0];
if (!t) return;
- let n = KP[t.id];
+ let n = JP[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -44832,11 +44832,11 @@ function Yge(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : f(n.pageSize);
},
- getCoreRowModel: YI(),
- getPaginationRowModel: XI()
- }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = iF(s, de), pe = [...s], me = Xme(k), R = Zme(k), he = T.length > 0 && y.size >= T.length;
+ getCoreRowModel: ZI(),
+ getPaginationRowModel: QI()
+ }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = oF(s, de), pe = [...s], me = Jme(k), R = Yme(k), he = T.length > 0 && y.size >= T.length;
return g.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44855,7 +44855,7 @@ function Yge(e) {
}),
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
- leadingIcon: CT,
+ leadingIcon: ST,
disabled: c,
"aria-label": "检查全部",
iconOnly: S,
@@ -44870,28 +44870,28 @@ function Yge(e) {
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: mae,
- "aria-label": WP[0][1],
+ leadingIcon: hae,
+ "aria-label": KP[0][1],
"aria-pressed": !ce,
onClick: () => d("default")
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: _ae,
- "aria-label": WP[1][1],
+ leadingIcon: vae,
+ "aria-label": KP[1][1],
"aria-pressed": ce,
onClick: () => d("table")
})]
}),
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, jP[t]);
+ l(t, NP[t]);
},
- children: AP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: MP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
@@ -44899,14 +44899,14 @@ function Yge(e) {
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? $ie : Qie,
- "aria-label": Mme(n, r),
+ leadingIcon: r === "asc" ? eae : $ie,
+ "aria-label": Ame(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
ce ? null : /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
iconOnly: S,
- leadingIcon: he ? cT : dT,
+ leadingIcon: he ? sT : uT,
"aria-label": he ? "全部展开" : "全部收起",
onClick: () => b(he ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),
children: he ? "全部展开" : "全部收起"
@@ -44917,7 +44917,7 @@ function Yge(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- O ? /* @__PURE__ */ (0, V.jsx)(SM, {
+ O ? /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),
value: D?.checked,
@@ -44943,7 +44943,7 @@ function Yge(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(tS, {
+ /* @__PURE__ */ (0, V.jsxs)(eS, {
label: "关注来源批量操作",
visible: pe.length > 0,
count: `已选 ${pe.length} 个来源`,
@@ -45003,10 +45003,10 @@ function Yge(e) {
})
]
}),
- ce ? /* @__PURE__ */ (0, V.jsx)(IM, {
+ ce ? /* @__PURE__ */ (0, V.jsx)(FM, {
follow: !0,
onRowClick: (e) => M(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, V.jsxs)(PM, {
+ children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: oe[0] ? {
@@ -45017,9 +45017,9 @@ function Yge(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, V.jsx)(Ik, { children: ue.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in KP, n = ZI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, V.jsx)(Lk, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: ue.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in JP, n = $I(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, V.jsx)(Fk, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -45028,20 +45028,20 @@ function Yge(e) {
children: [n, /* @__PURE__ */ (0, V.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, V.jsx)(Tde, {})
+ children: /* @__PURE__ */ (0, V.jsx)(Ede, {})
})]
}) : /* @__PURE__ */ (0, V.jsx)(H_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, V.jsx)(zk, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Lk, {
renderEmptyState: () => "这一页没有来源",
- children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, {
+ children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Wk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: $I(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(NM, {
+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: fe.all,
isIndeterminate: fe.some,
onChange: (e) => N(de, e),
@@ -45051,9 +45051,9 @@ function Yge(e) {
className: "flex flex-col gap-3",
children: T.slice(le.start, le.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, V.jsx)(Jge, {
+ return /* @__PURE__ */ (0, V.jsx)(Kge, {
group: e,
- name: $P(e, _),
+ name: tF(e, _),
handlers: ie,
selected: s,
open: !y.has(t),
@@ -45073,19 +45073,19 @@ function Yge(e) {
className: "text-body-2-regular text-text-secondary",
children: `${le.start + 1}–${le.end} / ${le.total} ${ce ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && ue.setPageSize(Number(e));
},
- children: GP.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: qP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: String(e),
children: `每页 ${e} ${ce ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(nL, {
+ /* @__PURE__ */ (0, V.jsx)(iL, {
page: le.page,
pages: le.pages,
onPage: (e) => ue.setPageIndex(e - 1)
@@ -45134,11 +45134,11 @@ function Yge(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: wT,
+ icon: CT,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, V.jsx)(CE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -45149,7 +45149,7 @@ function Yge(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var Xge = {
+var Jge = {
select: "选择",
name: "名称",
kind: "类型",
@@ -45159,33 +45159,33 @@ var Xge = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Zge = /* @__PURE__ */ new Set(["select", "actions"]), rL = () => z.invalidateQueries({
- queryKey: UP,
+}, Yge = /* @__PURE__ */ new Set(["select", "actions"]), aL = () => z.invalidateQueries({
+ queryKey: GP,
exact: !0
-}), iL = (e) => e.name || e.url, Qge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function $ge(e) {
+}), oL = (e) => e.name || e.url, Xge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function Zge(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function e_e({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, V.jsx)(xE, {
+function Qge({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(xE, {
+ }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, V.jsx)(xE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function t_e({ source: e }) {
+function $ge({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -45194,31 +45194,31 @@ function t_e({ source: e }) {
} : null;
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${eL}`,
- dangerouslySetInnerHTML: { __html: w(iL(e), t, null, "performer") }
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${nL}`,
+ dangerouslySetInnerHTML: { __html: w(oL(e), t, null, "performer") }
});
}
-var n_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function r_e(e) {
+var e_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function t_e(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
-function aL(e, t) {
+function sL(e, t) {
let n = e.length === 1 ? e[0] : null;
return Te({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${iL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${oL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function i_e({ readOnly: e, toast: t }) {
- let n = TS({
- queryKey: UP,
- queryFn: ({ signal: e }) => fF(e)
- }), r = AE(), i = n.data, a = (0, B.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(1), [u, d] = (0, B.useState)(20), f = rF(a.length, u, c);
+function n_e({ readOnly: e, toast: t }) {
+ let n = wS({
+ queryKey: GP,
+ queryFn: ({ signal: e }) => mF(e)
+ }), r = OE(), i = n.data, a = (0, B.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(1), [u, d] = (0, B.useState)(20), f = aF(a.length, u, c);
(0, B.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, B.useEffect)(() => {
@@ -45227,10 +45227,10 @@ function i_e({ readOnly: e, toast: t }) {
return n.size === e.size ? e : n;
});
}, [a]);
- let p = OS({
+ let p = DS({
mutationFn: async (e) => {
let t = await ge(e.ids, 4, async (t) => {
- e.action === "remove" ? await mF(t) : await pF(t, e.action === "enabled");
+ e.action === "remove" ? await gF(t) : await hF(t, e.action === "enabled");
});
return {
...e,
@@ -45239,13 +45239,13 @@ function i_e({ readOnly: e, toast: t }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
- if (s(/* @__PURE__ */ new Set()), rL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ if (s(/* @__PURE__ */ new Set()), aL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : W(e.error)}`);
}
},
onError: (e) => r.setError(W(e))
- }), m = (0, B.useMemo)(() => r_e(a), [a]), h = (0, B.useRef)({
+ }), m = (0, B.useMemo)(() => t_e(a), [a]), h = (0, B.useRef)({
readOnly: e,
shared: m,
busy: null,
@@ -45257,34 +45257,34 @@ function i_e({ readOnly: e, toast: t }) {
readOnly: e,
shared: m,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => pF(e.id, t, n), () => void rL()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => hF(t, [e.id]), () => void rL()),
- remove: (e) => void aL([e], async () => {
- await mF(e.id), t(`已移除订阅源「${iL(e)}」`), rL();
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => hF(e.id, t, n), () => void aL()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => _F(t, [e.id]), () => void aL()),
+ remove: (e) => void sL([e], async () => {
+ await gF(e.id), t(`已移除订阅源「${oL(e)}」`), aL();
})
};
let g = (0, B.useMemo)(() => {
- let e = cI(), t = (e) => () => Xge[e] || e;
+ let e = uI(), t = (e) => () => Jge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(NM, {
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${iL(e.row.original)}`
+ "aria-label": `选择 ${oL(e.row.original)}`
})
}),
- e.accessor(iL, {
+ e.accessor(oL, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = n_e(e.row.original, h.current.shared);
+ let t = e_e(e.row.original, h.current.shared);
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, V.jsx)(t_e, { source: e.row.original }),
+ /* @__PURE__ */ (0, V.jsx)($ge, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -45312,15 +45312,15 @@ function i_e({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: $ge(e.getValue())
+ children: Zge(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(e_e, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(Qge, { source: e.row.original })
}),
- e.accessor((e) => Qge(e.interval_minutes), {
+ e.accessor((e) => Xge(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {
@@ -45328,7 +45328,7 @@ function i_e({ readOnly: e, toast: t }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? tj(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? ej(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {
@@ -45350,8 +45350,8 @@ function i_e({ readOnly: e, toast: t }) {
cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, V.jsx)($I, {
- "aria-label": `启用 ${iL(e.row.original)}`,
+ /* @__PURE__ */ (0, V.jsx)(tL, {
+ "aria-label": `启用 ${oL(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: h.current.readOnly,
onChange: (t) => h.current.toggle(e.row.original, t)
@@ -45360,8 +45360,8 @@ function i_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: CT,
- "aria-label": `拉取 ${iL(e.row.original)}`,
+ leadingIcon: ST,
+ "aria-label": `拉取 ${oL(e.row.original)}`,
disabled: h.current.readOnly,
...X(h.current.busy === `check-${e.row.original.id}`),
onClick: () => h.current.fetch(e.row.original)
@@ -45370,8 +45370,8 @@ function i_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: gT,
- "aria-label": `移除 ${iL(e.row.original)}`,
+ leadingIcon: hT,
+ "aria-label": `移除 ${oL(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
})
@@ -45379,7 +45379,7 @@ function i_e({ readOnly: e, toast: t }) {
})
})
];
- }, []), _ = (0, B.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = QI({
+ }, []), _ = (0, B.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = eL({
data: a,
columns: g,
getRowId: (e) => String(e.id),
@@ -45395,27 +45395,27 @@ function i_e({ readOnly: e, toast: t }) {
let t = typeof e == "function" ? e(_) : e;
s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: YI(),
- getPaginationRowModel: XI()
+ getCoreRowModel: ZI(),
+ getPaginationRowModel: QI()
});
if (!i) return n.error ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "打不开订阅源",
children: W(n.error)
- }) : /* @__PURE__ */ (0, V.jsx)(zE, { children: "正在读订阅源。" });
- let y = () => void r.run("check", (e) => hF(e), () => void rL()), b = (e) => s((t) => {
+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "正在读订阅源。" });
+ let y = () => void r.run("check", (e) => _F(e), () => void aL()), b = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), x = a.filter((e) => o.has(e.id)), S = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, V.jsx)(Uge, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Vge, {
readOnly: e,
toast: t,
- onAdded: () => void rL()
+ onAdded: () => void aL()
}), /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45443,11 +45443,11 @@ function i_e({ readOnly: e, toast: t }) {
className: "flex flex-col gap-3",
children: [S.map((e) => /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
- title: `${iL(e)} 拉取失败`,
+ title: `${oL(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(tS, {
+ /* @__PURE__ */ (0, V.jsxs)(eS, {
visible: x.length > 0,
label: "订阅源批量操作",
count: `已选 ${x.length} 条订阅源`,
@@ -45479,7 +45479,7 @@ function i_e({ readOnly: e, toast: t }) {
size: "small",
disabled: e,
...X(p.isPending),
- onClick: () => void aL(x, () => p.mutateAsync({
+ onClick: () => void sL(x, () => p.mutateAsync({
ids: x.map((e) => e.id),
action: "remove"
})),
@@ -45493,26 +45493,26 @@ function i_e({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, V.jsx)(IM, {
+ a.length ? /* @__PURE__ */ (0, V.jsx)(FM, {
onRowClick: (e) => b(Number(e)),
- children: /* @__PURE__ */ (0, V.jsxs)(PM, {
+ children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsx)(Ik, { children: v.getHeaderGroups()[0].headers.map((e) => {
- let t = ZI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, V.jsx)(Lk, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ let t = $I(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, V.jsx)(Fk, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Zge.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t
+ children: Yge.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, V.jsx)(zk, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Wk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: $I(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: wT,
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: CT,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -45524,19 +45524,19 @@ function i_e({ readOnly: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`
}),
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(u),
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: GP.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: qP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(nL, {
+ /* @__PURE__ */ (0, V.jsx)(iL, {
label: "JAV 订阅分页",
page: f.page,
pages: f.pages,
@@ -45557,31 +45557,19 @@ function i_e({ readOnly: e, toast: t }) {
});
}
//#endregion
-//#region src/react/components/overlay-host.ts
-function a_e(e) {
- let t = e.querySelector(":scope > [data-react-overlays]");
- if (t) return t;
- let n = e.ownerDocument.createElement("div");
- return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
-}
-function oL(e) {
- let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return a_e(n ?? t.body);
-}
-//#endregion
//#region src/react/activity/resource-search.tsx
-function o_e({ className: e }) {
+function r_e({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Ke("") }
});
}
-function s_e(e) {
+function i_e(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function c_e({ initialCode: e, reason: t, choose: n }) {
- let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => s_e(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = AE(), v = () => {
+function a_e({ initialCode: e, reason: t, choose: n }) {
+ let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => i_e(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = OE(), v = () => {
if (!r.trim() || _.busy) return;
let e = new URLSearchParams({
code: r.trim(),
@@ -45598,17 +45586,17 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
"aria-busy": !!_.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, V.jsxs)(zE, { children: [
+ t ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "搜索资源",
value: r,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
- leadingIcon: _.busy ? o_e : TT,
+ leadingIcon: _.busy ? r_e : wT,
isReadOnly: !!_.busy,
"aria-busy": !!_.busy,
onChange: i,
@@ -45618,7 +45606,7 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(EM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(TM, {
"aria-label": "优先寻找",
selectedKey: a,
isDisabled: !!_.busy,
@@ -45626,15 +45614,15 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
e !== null && o(String(e));
},
children: [
- /* @__PURE__ */ (0, V.jsx)(DM, {
+ /* @__PURE__ */ (0, V.jsx)(EM, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, V.jsx)(DM, {
+ /* @__PURE__ */ (0, V.jsx)(EM, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, V.jsx)(DM, {
+ /* @__PURE__ */ (0, V.jsx)(EM, {
id: "uncensored",
children: "无码"
})
@@ -45643,32 +45631,32 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, V.jsx)(GM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(WM, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: s,
onChange: c
- }), /* @__PURE__ */ (0, V.jsx)(GM, {
+ }), /* @__PURE__ */ (0, V.jsx)(WM, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
})]
}),
- _.busy ? /* @__PURE__ */ (0, V.jsx)(zE, {
+ _.busy ? /* @__PURE__ */ (0, V.jsx)(LE, {
role: "status",
children: "正在搜索资源"
}) : null,
- _.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: _.error }) : null,
- d?.error ? /* @__PURE__ */ (0, V.jsx)(zE, {
+ _.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _.error }) : null,
+ d?.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
role: "status",
children: d.error
}) : null,
- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(zE, {
+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(LE, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(zE, { children: e }, e)),
+ d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(LE, { children: e }, e)),
d?.items.length ? /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: d.items.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
@@ -45678,7 +45666,7 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, V.jsx)(zE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: [
`${(e.size / 1024 ** 3).toFixed(2)} GiB`,
`${e.seeders} 个做种`,
e.resolution ? `${e.resolution}p` : "",
@@ -45703,38 +45691,34 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
-var l_e = {
+var o_e = {
submitted: "已提交离线下载,进度在活动页",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "远端已有同一任务,已接管"
};
-function sL({ prefill: e, close: t, receipt: n, provider: r, anchor: i }) {
- let a = /* @__PURE__ */ (0, V.jsx)(XN, {
+function cL({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, V.jsx)(YN, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, V.jsx)(u_e, {
+ children: e ? /* @__PURE__ */ (0, V.jsx)(s_e, {
prefill: e,
close: t,
receipt: n,
provider: r
}) : null
});
- return i ? /* @__PURE__ */ (0, V.jsx)($v, {
- getContainer: () => oL(i.current),
- children: a
- }) : a;
}
-function u_e({ prefill: e, close: t, receipt: n, provider: r }) {
- let i = TS({
- queryKey: rD,
- queryFn: ({ signal: e }) => G(`${nD}?limit=50`, e),
- refetchInterval: (e) => iD(e.state.data)
+function s_e({ prefill: e, close: t, receipt: n, provider: r }) {
+ let i = wS({
+ queryKey: tD,
+ queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),
+ refetchInterval: (e) => nD(e.state.data)
}), a = i.data, o = a?.providers.filter((e) => e.configured) ?? [], s = [e.code, e.title].filter(Boolean).join(" "), c = /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1 px-5 pt-5",
- children: [/* @__PURE__ */ (0, V.jsx)(ID, {
+ children: [/* @__PURE__ */ (0, V.jsx)(PD, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "云下载"
@@ -45743,7 +45727,7 @@ function u_e({ prefill: e, close: t, receipt: n, provider: r }) {
children: s
}) : null]
});
- return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(d_e, {
+ return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(c_e, {
header: c,
snapshot: a,
prefill: e,
@@ -45782,8 +45766,8 @@ function u_e({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = lS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = AE(), b = (0, B.useRef)(null), x = (e) => {
+function c_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = cS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = OE(), b = (0, B.useRef)(null), x = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, V.jsxs)("form", {
@@ -45799,14 +45783,14 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: n.title,
origin: n.origin
};
- v(""), y.run("submit", (e) => K(nD, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: rD });
- let t = l_e[e.outcome];
+ v(""), y.run("submit", (e) => K(eD, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: tD });
+ let t = o_e[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = aD(e.task);
+ let n = rD(e.task);
v(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -45816,14 +45800,14 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(c_e, {
+ /* @__PURE__ */ (0, V.jsx)(a_e, {
initialCode: n.code ?? "",
reason: n.searchReason,
choose: (e, t) => {
f(e), m(t), b.current?.focus();
}
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
ref: b,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -45835,22 +45819,22 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: "下载到" }),
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "下载到" }),
+ /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "下载到",
selectedKey: l,
onSelectionChange: (e) => {
e !== null && x(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: s.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e.key,
children: e.label
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, V.jsx)(zE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -45858,7 +45842,7 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, V.jsx)(GM, {
+ n.code ? null : /* @__PURE__ */ (0, V.jsx)(WM, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -45866,7 +45850,7 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: p,
onChange: m
}),
- _ || y.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: _ || y.error }) : null
+ _ || y.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _ || y.error }) : null
]
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -45887,29 +45871,29 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var cL = "peach.want-resources.v1", lL = 864e5;
-function uL(e, t = Date.now()) {
+var lL = "peach.want-resources.v1", uL = 864e5;
+function dL(e, t = Date.now()) {
let n = Date.parse(e || ""), r = new Date(t), i = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())), a = i.getUTCDate();
i.setUTCHours(0, 0, 0, 0), i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() - 3);
let o = new Date(Date.UTC(i.getUTCFullYear(), i.getUTCMonth() + 1, 0)).getUTCDate();
- return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * lL : 7 * lL;
+ return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * uL : 7 * uL;
}
-function dL() {
+function fL() {
try {
- let e = JSON.parse(localStorage.getItem(cL) || "[]");
+ let e = JSON.parse(localStorage.getItem(lL) || "[]");
return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items)) : [];
} catch {
return [];
}
}
-function f_e(e, t) {
- let n = dL().find((t) => t.code === e);
- return n && Date.now() - n.saved < uL(t) ? n : void 0;
+function l_e(e, t) {
+ let n = fL().find((t) => t.code === e);
+ return n && Date.now() - n.saved < dL(t) ? n : void 0;
}
-function p_e(e, t) {
+function u_e(e, t) {
if (t.state === "ready") try {
- let n = dL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(cL, JSON.stringify([{
+ let n = fL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(lL, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -45918,7 +45902,7 @@ function p_e(e, t) {
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function fL({ icon: e, children: t }) {
+function pL({ icon: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "inline-flex items-center gap-1",
children: [/* @__PURE__ */ (0, V.jsx)(e, {
@@ -45927,8 +45911,8 @@ function fL({ icon: e, children: t }) {
}), t]
});
}
-function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = AE(), f = lS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => f_e(e.code || "", e.release_date), [e.code, e.release_date]);
+function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = OE(), f = cS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => l_e(e.code || "", e.release_date), [e.code, e.release_date]);
(0, B.useEffect)(() => {
if (!o.current || s) return;
let e = new IntersectionObserver((t) => {
@@ -45936,7 +45920,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, { rootMargin: "100px" });
return e.observe(o.current), () => e.disconnect();
}, [s]);
- let h = TS({
+ let h = wS({
queryKey: [
"want-magnets",
e.id,
@@ -45944,15 +45928,15 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
],
queryFn: async ({ signal: t }) => {
let n = p.current, r = await G(`/api/wants/magnets?id=${e.id}${n ? "&refresh=1" : ""}`, t);
- return p.current = n && r.state === "busy", p_e(e.code || "", r), r;
+ return p.current = n && r.state === "busy", u_e(e.code || "", r), r;
},
initialData: m?.result,
initialDataUpdatedAt: m?.saved,
enabled: s,
retry: !1,
- staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : uL(e.release_date)) ? Infinity : 0,
+ staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : dL(e.release_date)) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : uL(e.release_date)) && "always",
+ refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : dL(e.release_date)) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
@@ -45961,7 +45945,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, [h.data?.source_url, a]);
let g = n?.providers.find((e) => e.key === r && e.configured), _ = (r) => {
t || !n?.available || !g || r.protocol !== "magnet" || d.run(r.id, async (t) => {
- let n = await K(nD, {
+ let n = await K(eD, {
magnet: r.uri,
provider: g.key,
target: g.target,
@@ -45972,7 +45956,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: rD });
+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: tD });
});
}, v = (e) => {
d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -45990,7 +45974,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: CT,
+ leadingIcon: ST,
...X(y),
onClick: () => {
y || (p.current = !0, h.refetch());
@@ -45998,7 +45982,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
children: "重新查询"
})]
}),
- y ? /* @__PURE__ */ (0, V.jsx)(EE, { label: "正在查找资源链接…" }) : null,
+ y ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在查找资源链接…" }) : null,
b ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "资源链接未取得",
@@ -46027,18 +46011,18 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(xE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "inline-flex items-center gap-1",
- children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(xae, {
+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(Sae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(aae, {
+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(oae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : /* @__PURE__ */ (0, V.jsx)(xT, {
+ }) : /* @__PURE__ */ (0, V.jsx)(bT, {
"aria-hidden": !0,
className: "size-3.5"
}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]
@@ -46050,24 +46034,24 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, V.jsx)(fL, {
- icon: xT,
+ /* @__PURE__ */ (0, V.jsx)(pL, {
+ icon: bT,
children: e.source
}),
- /* @__PURE__ */ (0, V.jsx)(fL, {
- icon: yT,
+ /* @__PURE__ */ (0, V.jsx)(pL, {
+ icon: vT,
children: e.size || "大小未知"
}),
- e.files ? /* @__PURE__ */ (0, V.jsx)(fL, {
- icon: oae,
+ e.files ? /* @__PURE__ */ (0, V.jsx)(pL, {
+ icon: sae,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, V.jsx)(fL, {
- icon: eae,
+ /* @__PURE__ */ (0, V.jsx)(pL, {
+ icon: tae,
children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"
}),
- e.attributes.map((e) => /* @__PURE__ */ (0, V.jsx)(fL, {
- icon: ST,
+ e.attributes.map((e) => /* @__PURE__ */ (0, V.jsx)(pL, {
+ icon: xT,
children: e
}, e))
]
@@ -46075,11 +46059,11 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(CE, {
+ /* @__PURE__ */ (0, V.jsx)(xE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: _T,
+ trailingIcon: gT,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -46088,7 +46072,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: iae,
+ leadingIcon: aae,
...X(d.busy === `copy:${e.id}`),
onClick: () => v(e),
children: "复制链接"
@@ -46096,7 +46080,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: nae,
+ leadingIcon: rae,
disabled: t || !n?.available || !g || r,
...X(d.busy === e.id),
onClick: () => _(e),
@@ -46109,7 +46093,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(GE, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(UE, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -46122,41 +46106,41 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}
//#endregion
//#region src/react/wants/wants.ts
-var pL = "/api/wants", mL = ["wants"], h_e = (e) => [
+var mL = "/api/wants", hL = ["wants"], f_e = (e) => [
"wants",
"follow",
e
-], g_e = [
+], p_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], __e = (e) => G(pL, e), v_e = (e, t) => G(`${pL}?follow=${encodeURIComponent(e)}`, t), hL = (e, t) => K(pL, {
+], m_e = (e) => G(mL, e), h_e = (e, t) => G(`${mL}?follow=${encodeURIComponent(e)}`, t), gL = (e, t) => K(mL, {
action: "add",
...e
-}, "POST", t), gL = (e, t) => K(pL, {
+}, "POST", t), _L = (e, t) => K(mL, {
action: "remove",
ids: e
-}, "POST", t), y_e = (e, t) => K(pL, {
+}, "POST", t), g_e = (e, t) => K(mL, {
action: "reset",
ids: e
-}, "POST", t), _L = () => z.invalidateQueries({ queryKey: mL }), vL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function b_e(e) {
+}, "POST", t), vL = () => z.invalidateQueries({ queryKey: hL }), yL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function __e(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/wants/want-list.tsx
-var x_e = {
+var v_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
-}, yL = (e) => [
+}, bL = (e) => [
e.release_date,
e.studio,
e.performers,
- x_e[e.origin]
+ v_e[e.origin]
].filter(Boolean).join(" · ");
-function S_e({ want: e }) {
+function y_e({ want: e }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, V.jsx)("span", {
@@ -46172,37 +46156,37 @@ function S_e({ want: e }) {
}) : null]
});
}
-function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
+function b_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
let [l, u] = (0, B.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-want-id": e.id,
- className: wE({
+ className: SE({
bordered: "soft",
className: "flex flex-col gap-4 max-sm:p-4"
}),
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, V.jsx)(S_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(y_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, V.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, V.jsx)("b", {
className: "text-headline-medium text-text-primary",
- children: vL(e)
+ children: yL(e)
}), e.code && e.title ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- yL(e) ? /* @__PURE__ */ (0, V.jsx)("p", {
+ bL(e) ? /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: yL(e)
+ children: bL(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, V.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: b_e(e)
+ children: __e(e)
}) : null,
e.scrape_error ? /* @__PURE__ */ (0, V.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -46211,11 +46195,11 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "mt-1 flex flex-wrap items-center gap-2",
children: [
- d ? /* @__PURE__ */ (0, V.jsx)(CE, {
+ d ? /* @__PURE__ */ (0, V.jsx)(xE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: _T,
+ trailingIcon: gT,
href: d,
target: "_blank",
rel: "noopener noreferrer",
@@ -46239,7 +46223,7 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: gT,
+ leadingIcon: hT,
disabled: t,
...X(n === `remove:${e.id}`),
onClick: i,
@@ -46249,7 +46233,7 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
})
]
})]
- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(m_e, {
+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(d_e, {
want: e,
readOnly: t,
downloads: o,
@@ -46259,36 +46243,36 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}) : null]
});
}
-function w_e({ readOnly: e, toast: t }) {
- let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = AE(), l = TS({
- queryKey: mL,
- queryFn: ({ signal: e }) => __e(e),
+function x_e({ readOnly: e, toast: t }) {
+ let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = OE(), l = wS({
+ queryKey: hL,
+ queryFn: ({ signal: e }) => m_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), u = () => {
let i = n.trim();
- !i || e || c.run("add", (e) => hL({ code: i }, e), (e) => {
- t(e.created ? `已加入想要:${vL(e.want)}` : `${vL(e.want)} 已经在想要里`), r(""), _L();
+ !i || e || c.run("add", (e) => gL({ code: i }, e), (e) => {
+ t(e.created ? `已加入想要:${yL(e.want)}` : `${yL(e.want)} 已经在想要里`), r(""), vL();
});
}, d = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), u());
}, f = (e) => {
- c.run(`remove:${e.id}`, (t) => gL([e.id], t), () => {
- t(`已移除:${vL(e)}`), _L();
+ c.run(`remove:${e.id}`, (t) => _L([e.id], t), () => {
+ t(`已移除:${yL(e)}`), vL();
});
}, p = (e) => {
- c.run(`reset:${e.id}`, (t) => y_e([e.id], t), () => {
- t(`${vL(e)} 回到待找`), _L();
+ c.run(`reset:${e.id}`, (t) => g_e([e.id], t), () => {
+ t(`${yL(e)} 回到待找`), vL();
});
- }, m = l.data, h = m?.items || [], g = TS({
- queryKey: rD,
- queryFn: ({ signal: e }) => G(`${nD}?limit=100`, e),
+ }, m = l.data, h = m?.items || [], g = wS({
+ queryKey: tD,
+ queryFn: ({ signal: e }) => G(`${eD}?limit=100`, e),
enabled: h.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
}), _ = g.data?.providers.filter((e) => e.configured) || [], v = _.find((e) => e.key === o)?.key || _[0]?.key || "";
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46301,7 +46285,7 @@ function w_e({ readOnly: e, toast: t }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: /* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: n,
@@ -46317,7 +46301,7 @@ function w_e({ readOnly: e, toast: t }) {
children: "添加"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
c.error ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "这一次没有完成",
@@ -46330,7 +46314,7 @@ function w_e({ readOnly: e, toast: t }) {
title: "想要清单读取失败",
children: W(l.error)
}) : null,
- m?.scraping ? /* @__PURE__ */ (0, V.jsx)(zE, {
+ m?.scraping ? /* @__PURE__ */ (0, V.jsx)(LE, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
@@ -46343,11 +46327,11 @@ function w_e({ readOnly: e, toast: t }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(EM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "下载到",
selectedKey: v,
onSelectionChange: (e) => s(String(e)),
- children: _.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: _.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e.key,
children: e.label
}, e.key))
@@ -46358,7 +46342,7 @@ function w_e({ readOnly: e, toast: t }) {
children: "提交磁力"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(zE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })
]
}) : null,
g.error ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -46374,13 +46358,13 @@ function w_e({ readOnly: e, toast: t }) {
tone: "neutral",
children: "云下载只在账本写入端可用。"
}) : null,
- m && !h.length ? /* @__PURE__ */ (0, V.jsx)(TE, {
+ m && !h.length ? /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: gae,
+ icon: _ae,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
- g_e.map(([n, r]) => {
+ p_e.map(([n, r]) => {
let i = h.filter((e) => e.phase === n);
return i.length ? /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": r,
@@ -46394,7 +46378,7 @@ function w_e({ readOnly: e, toast: t }) {
})]
}), /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex flex-col gap-4",
- children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(C_e, {
+ children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(b_e, {
want: n,
readOnly: e,
busy: c.busy,
@@ -46412,7 +46396,7 @@ function w_e({ readOnly: e, toast: t }) {
})]
}, n) : null;
}),
- /* @__PURE__ */ (0, V.jsx)(sL, {
+ /* @__PURE__ */ (0, V.jsx)(cL, {
prefill: i,
close: () => a(null),
receipt: t,
@@ -46423,16 +46407,16 @@ function w_e({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var bL = [
+var xL = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["wants", "JAV 入库"],
["source", "来源和凭证"]
-], xL = (e) => bL.some(([t]) => t === e);
-function SL({ term: e, figure: t, unit: n }) {
+], SL = (e) => xL.some(([t]) => t === e);
+function CL({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -46448,23 +46432,23 @@ function SL({ term: e, figure: t, unit: n }) {
})]
});
}
-function T_e(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(xL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => MP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => MP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(kme(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(Ame(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = TS({
- queryKey: VP,
- queryFn: ({ signal: e }) => oF(e)
- }), C = TS({
- queryKey: HP,
- queryFn: ({ signal: e }) => sF(e)
- }), w = TS({
+function S_e(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(SL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => PP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => PP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(Dme(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(Ome(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = wS({
queryKey: UP,
- queryFn: ({ signal: e }) => fF(e)
+ queryFn: ({ signal: e }) => cF(e)
+ }), C = wS({
+ queryKey: WP,
+ queryFn: ({ signal: e }) => lF(e)
+ }), w = wS({
+ queryKey: GP,
+ queryFn: ({ signal: e }) => mF(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
}, D = T.sources;
(0, B.useEffect)(() => {
x((e) => {
- let t = Ime(e, D);
+ let t = Pme(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -46474,10 +46458,10 @@ function T_e(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === jP[n] ? "" : r
+ dir: r === NP[n] ? "" : r
});
- }, k = nF(D), A = D.filter(JP).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !xF(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, V.jsxs)(DE, { children: [
+ }, k = iF(D), A = D.filter(XP).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !CF(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
a ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
@@ -46492,64 +46476,64 @@ function T_e(e) {
children: o
}) : null,
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: rde,
+ className: ide,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, V.jsx)(SL, {
+ /* @__PURE__ */ (0, V.jsx)(CL, {
term: "关注创作者",
figure: k.length,
unit: "位"
}),
- /* @__PURE__ */ (0, V.jsx)(SL, {
+ /* @__PURE__ */ (0, V.jsx)(CL, {
term: "启用来源",
figure: j,
unit: `/ ${D.length}`
}),
- /* @__PURE__ */ (0, V.jsx)(SL, {
+ /* @__PURE__ */ (0, V.jsx)(CL, {
term: "检查失败",
figure: A,
unit: "个来源"
}),
- /* @__PURE__ */ (0, V.jsx)(SL, {
+ /* @__PURE__ */ (0, V.jsx)(CL, {
term: "未看更新",
figure: T.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, V.jsx)(SL, {
+ /* @__PURE__ */ (0, V.jsx)(CL, {
term: "JAV 订阅",
figure: N,
unit: "位"
}),
- /* @__PURE__ */ (0, V.jsx)(SL, {
+ /* @__PURE__ */ (0, V.jsx)(CL, {
term: "未看新作",
figure: w.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Jk, {
+ /* @__PURE__ */ (0, V.jsxs)(Kk, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- xL(t) && (l(t), O({ tab: t }));
+ SL(t) && (l(t), O({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(qk, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: bL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Xk, {
+ children: xL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Jk, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(Yge, {
+ children: /* @__PURE__ */ (0, V.jsx)(qge, {
data: T,
sort: f,
dir: m,
@@ -46579,10 +46563,10 @@ function T_e(e) {
}
})
}),
- /* @__PURE__ */ (0, V.jsxs)(Zk, {
+ /* @__PURE__ */ (0, V.jsxs)(Yk, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, V.jsx)(Ghe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Uhe, {
data: T,
credentials: E,
readOnly: a,
@@ -46590,7 +46574,7 @@ function T_e(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, V.jsx)(Jhe, {
+ }), /* @__PURE__ */ (0, V.jsx)(Khe, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -46598,26 +46582,26 @@ function T_e(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(i_e, {
+ children: /* @__PURE__ */ (0, V.jsx)(n_e, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "wants",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(w_e, {
+ children: /* @__PURE__ */ (0, V.jsx)(x_e, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(rge, {
+ children: /* @__PURE__ */ (0, V.jsx)(tge, {
data: E,
readOnly: a,
toast: r
@@ -46629,15 +46613,15 @@ function T_e(e) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function CL({ value: e }) {
+function wL({ value: e }) {
return /* @__PURE__ */ (0, V.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",
children: e.toLocaleString()
});
}
-var E_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function wL({ tabs: e, value: t, label: n, onChange: r }) {
+var C_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function TL({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, B.useRef)(null), a = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
let e = i.current;
@@ -46665,14 +46649,14 @@ function wL({ tabs: e, value: t, label: n, onChange: r }) {
},
className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",
children: [e.map((e) => {
- let n = e.symbol ? oA(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? iA(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: E_e,
+ className: C_e,
onClick: () => {
i || r(e.value);
},
@@ -46688,23 +46672,23 @@ function wL({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var TL = () => /* @__PURE__ */ (0, V.jsx)("span", {
+var EL = () => /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function D_e({ tag: e, actions: t }) {
+function w_e({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": EN(t.online, e.cat),
+ "data-tag-cat": TN(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 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, V.jsx)(TL, {}),
+ /* @__PURE__ */ (0, V.jsx)(EL, {}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -46716,23 +46700,23 @@ function D_e({ tag: e, actions: t }) {
]
});
}
-function O_e({ groups: e, actions: t }) {
+function T_e({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, V.jsxs)("section", {
"data-alpha-group": r,
- className: wE({
+ className: SE({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, V.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, V.jsx)(CL, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, V.jsx)(wL, { value: n.length })]
}), /* @__PURE__ */ (0, V.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(D_e, {
+ children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(w_e, {
tag: e,
actions: t
}, e.k))
@@ -46740,8 +46724,8 @@ function O_e({ groups: e, actions: t }) {
}, e))
});
}
-var k_e = "\xA0";
-function A_e({ tags: e, actions: t }) {
+var E_e = "\xA0";
+function D_e({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -46749,11 +46733,11 @@ function A_e({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": EN(t.online, e.cat),
+ "data-tag-cat": TN(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + k_e, /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [e.label + E_e, /* @__PURE__ */ (0, V.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -46761,7 +46745,7 @@ function A_e({ tags: e, actions: t }) {
}, e.k))
});
}
-var j_e = [[
+var O_e = [[
"cloud",
"标签云",
"tags"
@@ -46770,16 +46754,16 @@ var j_e = [[
"字母表",
"text-aa"
]];
-function M_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, V.jsx)(fD, {
+function k_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, V.jsx)(uD, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(pD, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : EN(n, e),
+ "data-tag-cat": e === "all" ? "all" : TN(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, V.jsx)(TL, {}), r]
+ children: [/* @__PURE__ */ (0, V.jsx)(EL, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsx)("span", {
@@ -46798,19 +46782,19 @@ function M_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(yk, {
+ /* @__PURE__ */ (0, V.jsx)(_k, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${rA}`,
- children: j_e.map(([e, t, n]) => {
- let r = oA(n);
- return /* @__PURE__ */ (0, V.jsx)(bk, {
+ className: `ml-auto ${tA}`,
+ children: O_e.map(([e, t, n]) => {
+ let r = iA(n);
+ return /* @__PURE__ */ (0, V.jsx)(vk, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: iA,
+ className: nA,
children: /* @__PURE__ */ (0, V.jsx)("span", {
title: t,
className: "contents",
@@ -46822,13 +46806,13 @@ function M_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function N_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, V.jsxs)(tS, {
+function A_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, V.jsxs)(eS, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, V.jsx)(NM, {
+ /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -46860,7 +46844,7 @@ function N_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var P_e = [{
+var j_e = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -46868,7 +46852,7 @@ var P_e = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], F_e = [{
+}], M_e = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -46876,7 +46860,7 @@ var P_e = [{
value: "online",
label: "在线",
symbol: "rss"
-}], I_e = [
+}], N_e = [
{
value: "performers",
label: "艺人",
@@ -46892,7 +46876,7 @@ var P_e = [{
label: "在线",
symbol: "rss"
}
-], L_e = {
+], P_e = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -46912,20 +46896,20 @@ var P_e = [{
"layout-grid"
]]
};
-function R_e({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, V.jsx)(eA, {
- "aria-label": `${mN[e]}索引版式`,
+function F_e({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, V.jsx)(Qk, {
+ "aria-label": `${pN[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${tA}`,
- children: L_e[bN(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = oA(n);
- return /* @__PURE__ */ (0, V.jsx)(bk, {
+ className: `flex-none max-board-narrow:order-3 ${$k}`,
+ children: P_e[yN(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = iA(n);
+ return /* @__PURE__ */ (0, V.jsx)(vk, {
value: e,
"aria-label": t,
- className: Hce,
+ className: Wce,
children: /* @__PURE__ */ (0, V.jsx)("span", {
title: t,
className: "contents",
@@ -46935,8 +46919,8 @@ function R_e({ kind: e, layout: t, onChange: n }) {
})
});
}
-var z_e = oA("search");
-function B_e({ label: e, value: t, onQuery: n }) {
+var I_e = iA("search");
+function L_e({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, B.useState)(t), a = (0, B.useRef)(!1), o = (0, B.useRef)(void 0);
(0, B.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -46951,15 +46935,15 @@ function B_e({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, V.jsx)(HM, {
+ children: /* @__PURE__ */ (0, V.jsx)(VM, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(UM, {
type: "search",
- leadingIcon: z_e,
+ leadingIcon: I_e,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -46969,14 +46953,14 @@ function B_e({ label: e, value: t, onQuery: n }) {
})
});
}
-function V_e(e) {
- let [t, n] = (0, B.useState)(() => xN({
+function R_e(e) {
+ let [t, n] = (0, B.useState)(() => bN({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = mN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
+ })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = pN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
(0, B.useEffect)(() => {
(t.kind !== e.kind || t.scope !== e.scope || t.category !== e.category) && e.route(t, { replace: !0 });
}, []), (0, B.useEffect)(() => {
@@ -46988,7 +46972,7 @@ function V_e(e) {
...r
};
y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, x = TN(SN(t)), S = kS({
+ }, x = wN(xN(t)), S = OS({
queryKey: x.queryKey,
queryFn: ({ pageParam: e, signal: t }) => x.queryFn({
pageParam: e,
@@ -46996,8 +46980,8 @@ function V_e(e) {
}),
initialPageParam: 0,
getNextPageParam: x.getNextPageParam,
- placeholderData: v ? AS.keepPreviousData : void 0
- }), C = Lfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Rfe(C.length, !!S.hasNextPage), E = `${u}:${f}:${d}`, D = (0, B.useRef)(null), O = S.data?.pages[0]?.categories;
+ placeholderData: v ? kS.keepPreviousData : void 0
+ }), C = Rfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = zfe(C.length, !!S.hasNextPage), E = `${u}:${f}:${d}`, D = (0, B.useRef)(null), O = S.data?.pages[0]?.categories;
O && !S.isPlaceholderData && (D.current = {
key: E,
counts: O
@@ -47009,14 +46993,14 @@ function V_e(e) {
let j = (0, B.useMemo)(() => u === "tags" ? C.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [C, u]), M = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Vfe(j, (t) => e.tagLabel(t)) : [], [
+ })) : [], [C, u]), M = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Hfe(j, (t) => e.tagLabel(t)) : [], [
j,
p,
u
]), N = (t) => {
i(t), e.savePreference({ layout: t });
- }, P = u === "tags" ? /* @__PURE__ */ (0, V.jsx)(wL, {
- tabs: F_e,
+ }, P = u === "tags" ? /* @__PURE__ */ (0, V.jsx)(TL, {
+ tabs: M_e,
value: f,
label: "词表",
onChange: (e) => {
@@ -47026,8 +47010,8 @@ function V_e(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : bN(u) ? /* @__PURE__ */ (0, V.jsx)(wL, {
- tabs: P_e,
+ }) : yN(u) ? /* @__PURE__ */ (0, V.jsx)(TL, {
+ tabs: j_e,
value: u,
label: "公司类型",
onChange: (e) => b({ kind: e })
@@ -47044,7 +47028,7 @@ function V_e(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, F = (g ? gN : hN).filter(A);
+ }, F = (g ? hN : mN).filter(A);
return /* @__PURE__ */ (0, V.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -47059,12 +47043,12 @@ function V_e(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: h
}),
- yN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {
+ vN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: S.isPending ? "" : T
}) : null,
- yN(u) ? /* @__PURE__ */ (0, V.jsx)(R_e, {
+ vN(u) ? /* @__PURE__ */ (0, V.jsx)(F_e, {
kind: u,
layout: r,
onChange: N
@@ -47073,7 +47057,7 @@ function V_e(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, V.jsx)(B_e, {
+ /* @__PURE__ */ (0, V.jsx)(L_e, {
label: `过滤${h}`,
value: d,
onQuery: (e) => {
@@ -47082,8 +47066,8 @@ function V_e(e) {
})
]
}),
- u === "performers" || u === "creators" ? /* @__PURE__ */ (0, V.jsx)(wL, {
- tabs: I_e,
+ u === "performers" || u === "creators" ? /* @__PURE__ */ (0, V.jsx)(TL, {
+ tabs: N_e,
value: _ ? "online" : u,
label: "人物名册",
onChange: (t) => {
@@ -47098,7 +47082,7 @@ function V_e(e) {
u === "performers" && f === "local" ? /* @__PURE__ */ (0, V.jsx)("div", {
"aria-label": "身份分类",
className: "mb-4 flex flex-wrap gap-2",
- children: _N.filter((e) => e[0] === m || A(e)).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {
+ children: gN.filter((e) => e[0] === m || A(e)).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {
variant: m === e ? "primary" : "secondary",
size: "small",
"aria-pressed": m === e,
@@ -47106,7 +47090,7 @@ function V_e(e) {
children: t
}, e))
}) : null,
- u === "tags" ? /* @__PURE__ */ (0, V.jsx)(M_e, {
+ u === "tags" ? /* @__PURE__ */ (0, V.jsx)(k_e, {
categories: F,
category: m,
online: g,
@@ -47131,8 +47115,8 @@ function V_e(e) {
mode: p
}) }
});
- if (S.isError) return /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: oA("search"),
+ if (S.isError) return /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: iA("search"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
@@ -47141,18 +47125,18 @@ function V_e(e) {
}),
children: ye(S.error)
});
- if (!C.length) return /* @__PURE__ */ (0, V.jsx)(U_e, {
+ if (!C.length) return /* @__PURE__ */ (0, V.jsx)(B_e, {
kind: u,
filtered: !!d || m !== "all",
online: g || _,
configurable: e.configurable
});
- if (_) return /* @__PURE__ */ (0, V.jsx)(Ufe, {
+ if (_) return /* @__PURE__ */ (0, V.jsx)(Wfe, {
items: C,
layout: r,
props: e
});
- if (yN(u)) return /* @__PURE__ */ (0, V.jsx)(kN, {
+ if (vN(u)) return /* @__PURE__ */ (0, V.jsx)(ON, {
kind: u,
items: C,
layout: r,
@@ -47163,10 +47147,10 @@ function V_e(e) {
picked: a,
press: ee
};
- return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(O_e, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(T_e, {
groups: M,
actions: t
- }) : /* @__PURE__ */ (0, V.jsx)(A_e, {
+ }) : /* @__PURE__ */ (0, V.jsx)(D_e, {
tags: j,
actions: t
});
@@ -47181,13 +47165,13 @@ function V_e(e) {
disabled: S.isFetchingNextPage,
"aria-busy": S.isFetchingNextPage || void 0,
onClick: () => void S.fetchNextPage(),
- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(EE, {
+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(wE, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(N_e, {
+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(A_e, {
count: a.size,
match: s,
onMatch: c,
@@ -47200,31 +47184,31 @@ function V_e(e) {
]
});
}
-var H_e = {
+var z_e = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function U_e({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: oA("search"),
+function B_e({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: iA("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, V.jsx)(CE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : H_e[e], a = /* @__PURE__ */ (0, V.jsx)(CE, {
+ let i = n && e === "performers" ? "创作者" : z_e[e], a = /* @__PURE__ */ (0, V.jsx)(xE, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: oA(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: iA(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
@@ -47234,15 +47218,15 @@ function U_e({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var EL = {
+var DL = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, W_e = (e) => EL[e.junk_kind || "other"] || EL.other;
-function G_e(e) {
+}, V_e = (e) => DL[e.junk_kind || "other"] || DL.other;
+function H_e(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -47253,21 +47237,21 @@ function G_e(e) {
glyph: "check"
};
}
-var DL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), K_e = (e, t) => [
+var OL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), U_e = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function q_e({ kind: e, view: t }) {
+function W_e({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function J_e(e, t) {
- let n = await G(`/api/ads?${q_e(e)}`, t);
+async function G_e(e, t) {
+ let n = await G(`/api/ads?${W_e(e)}`, t);
return {
...n,
items: n.items || []
@@ -47275,19 +47259,19 @@ async function J_e(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function OL({ name: e }) {
+function kL({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-var kL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = e.junk_kind || "other", [f, p] = W_e(e), m = String(e.name || ""), h = G_e(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]") || kL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var AL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function K_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = e.junk_kind || "other", [f, p] = V_e(e), m = String(e.name || ""), h = H_e(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]") || AL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- if (t.stopPropagation(), kL(r, t)) {
+ if (t.stopPropagation(), AL(r, t)) {
t.preventDefault(), a.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -47329,7 +47313,7 @@ function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, V.jsx)(OL, { name: p }), /* @__PURE__ */ (0, V.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, V.jsx)(kL, { name: p }), /* @__PURE__ */ (0, V.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-art": "thumb",
@@ -47341,7 +47325,7 @@ function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, V.jsx)(OL, { name: "check" })
+ children: /* @__PURE__ */ (0, V.jsx)(kL, { name: "check" })
})
]
}),
@@ -47378,7 +47362,7 @@ function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Ke("正在定位") }
- }) : /* @__PURE__ */ (0, V.jsx)(OL, { name: "folder-open" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ }) : /* @__PURE__ */ (0, V.jsx)(kL, { name: "folder-open" }), /* @__PURE__ */ (0, V.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -47390,7 +47374,7 @@ function Y_e({ 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, V.jsx)(OL, { name: h.glyph }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(kL, { name: h.glyph }), /* @__PURE__ */ (0, V.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -47402,7 +47386,7 @@ function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, V.jsx)(OL, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(kL, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -47417,7 +47401,7 @@ function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var X_e = (0, B.memo)(Y_e), AL = [
+var q_e = (0, B.memo)(K_e), jL = [
[
"",
"全部",
@@ -47454,53 +47438,53 @@ var X_e = (0, B.memo)(Y_e), AL = [
"hard-drive"
]
];
-function jL(e = "", t = "pending") {
+function ML(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 Z_e(e) {
+function J_e(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: jL("", "pending")
+ href: ML("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: jL("", "dismissed")
+ href: ML("", "dismissed")
};
}
-var Q_e = (e) => e === "dismissed" ? "已排除" : "待判断";
+var Y_e = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function ML({ name: e }) {
+function NL({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function NL({ scope: e, count: t }) {
+function PL({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function $_e({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = vM(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = hD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? AL.map(([e]) => DL(t, e)).join(",") : ""}`), l = Z_e(s), u = (e) => {
+function X_e({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = _M(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = pD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? jL.map(([e]) => OL(t, e)).join(",") : ""}`), l = J_e(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") || jL()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || ML()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, V.jsx)(xP, {
- label: Q_e(s),
+ children: /* @__PURE__ */ (0, V.jsx)(CP, {
+ label: Y_e(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -47520,17 +47504,17 @@ function $_e({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- AL.map(([e, n, r]) => /* @__PURE__ */ (0, V.jsxs)("a", {
- href: jL(e, s),
+ jL.map(([e, n, r]) => /* @__PURE__ */ (0, V.jsxs)("a", {
+ href: ML(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, V.jsx)(ML, { name: r }),
+ /* @__PURE__ */ (0, V.jsx)(NL, { name: r }),
n,
- /* @__PURE__ */ (0, V.jsx)(NL, {
+ /* @__PURE__ */ (0, V.jsx)(PL, {
scope: e,
- count: t ? DL(t, e) : 0
+ count: t ? OL(t, e) : 0
})
]
}, e || "all")),
@@ -47544,9 +47528,9 @@ function $_e({ 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, V.jsx)(ML, { name: l.glyph }),
+ /* @__PURE__ */ (0, V.jsx)(NL, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, V.jsx)(NL, {
+ /* @__PURE__ */ (0, V.jsx)(PL, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -47559,33 +47543,33 @@ function $_e({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var eve = oA("check"), tve = (e, t) => e[1] === t.view && e[2] === t.kind;
-function nve(e) {
+var Z_e = iA("check"), Q_e = (e, t) => e[1] === t.view && e[2] === t.kind;
+function $_e(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = TS({
- queryKey: K_e(t, e.revision),
- queryFn: ({ signal: e }) => J_e(t, e),
- placeholderData: (e, n) => n && tve(n.queryKey, t) ? e : void 0
+ }, n = wS({
+ queryKey: U_e(t, e.revision),
+ queryFn: ({ signal: e }) => G_e(t, e),
+ placeholderData: (e, n) => n && Q_e(n.queryKey, t) ? e : void 0
});
(0, B.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = rve(e.countRow), i = n.isPending;
+ let r = eve(e.countRow), i = n.isPending;
(0, B.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, B.useLayoutEffect)(() => {
r && n.data && Le(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)($_e, {
+ let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(X_e, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(ive, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(tve, {
props: e,
data: n.data,
pending: i,
@@ -47593,7 +47577,7 @@ function nve(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function rve(e) {
+function eve(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!e) return;
@@ -47603,8 +47587,8 @@ function rve(e) {
};
}, [e]), t;
}
-function ive({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = hA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {
+function tve({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = pA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -47612,14 +47596,14 @@ function ive({ 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, V.jsx)(gA, {
+ if (!t) return /* @__PURE__ */ (0, V.jsx)(mA, {
message: ye(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: eve,
+ return /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: Z_e,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -47628,7 +47612,7 @@ function ive({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(X_e, {
+ children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(q_e, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -47636,11 +47620,11 @@ function ive({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(ave, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(nve, { onMore: f }, s) : null] });
})()]
});
}
-function ave({ onMore: e }) {
+function nve({ onMore: e }) {
let t = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
let n = t.current;
@@ -47658,12 +47642,12 @@ function ave({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var PL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", ove = {
- gray: `${PL} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${PL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${PL} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var FL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", rve = {
+ gray: `${FL} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${FL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${FL} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function sve({ value: e, max: t }) {
+function ive({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, V.jsxs)("svg", {
role: "progressbar",
@@ -47691,16 +47675,16 @@ function sve({ value: e, max: t }) {
})]
});
}
-function cve(e) {
- let { job: t } = CM(e), n = t.data, r = t.isError ? n ? BA : W(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function ave(e) {
+ let { job: t } = SM(e), n = t.data, r = t.isError ? n ? zA : W(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : HA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? fae : rae;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : VA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? pae : iae;
return /* @__PURE__ */ (0, V.jsxs)("aside", {
role: a ? "alert" : "status",
- className: ove[s],
+ className: rve[s],
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, V.jsx)(sve, {
+ children: [o && l ? /* @__PURE__ */ (0, V.jsx)(ive, {
value: c,
max: l
}) : /* @__PURE__ */ (0, V.jsx)(d, {
@@ -47710,42 +47694,42 @@ function cve(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, V.jsx)(PE, {
+ }), /* @__PURE__ */ (0, V.jsx)(ME, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: lT,
+ trailingIcon: cT,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var lve = "/api/playlists", FL = "/api/playlist", IL = ["playlists"], LL = (e) => G(lve, e);
-async function uve(e) {
+var ove = "/api/playlists", IL = "/api/playlist", LL = ["playlists"], RL = (e) => G(ove, e);
+async function sve(e) {
await z.fetchQuery({
- queryKey: IL,
- queryFn: () => LL(e),
+ queryKey: LL,
+ queryFn: () => RL(e),
staleTime: 0
});
}
-var RL = () => z.invalidateQueries({
- queryKey: IL,
+var zL = () => z.invalidateQueries({
+ queryKey: LL,
exact: !0
-}), dve = (e) => e.current_asset_id || e.preview_asset_id || null, zL = (e) => `/poster?id=${e}&c=4`, fve = (e) => K(FL, {
+}), cve = (e) => e.current_asset_id || e.preview_asset_id || null, BL = (e) => `/poster?id=${e}&c=4`, lve = (e) => K(IL, {
action: "create",
name: e,
asset_ids: []
-}), BL = (e, t) => K(FL, {
+}), VL = (e, t) => K(IL, {
action: "rename",
id: e,
name: t
-}), VL = (e) => K(FL, {
+}), HL = (e) => K(IL, {
action: "delete",
id: e
-}), pve = (e) => G(`${FL}?id=${e}`).catch(() => null);
-function mve(e) {
+}), uve = (e) => G(`${IL}?id=${e}`).catch(() => null);
+function dve(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return K(FL, {
+ return K(IL, {
action: "create",
name: e.name,
asset_ids: t,
@@ -47755,18 +47739,18 @@ function mve(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var hve = oA("ellipsis"), gve = oA("pencil"), _ve = oA("trash"), vve = oA("playlist"), HL = vE(dM, fM, "text-body-2-medium"), UL = "播放列表名称不能为空", WL = (e) => async () => {
+var fve = iA("ellipsis"), pve = iA("pencil"), mve = iA("trash"), hve = iA("playlist"), UL = gE(uM, dM, "text-body-2-medium"), WL = "播放列表名称不能为空", GL = (e) => async () => {
try {
await e();
} finally {
- RL();
+ zL();
}
};
-function yve({ toast: e }) {
- let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = OS({
- mutationFn: (e) => fve(e),
+function gve({ toast: e }) {
+ let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = DS({
+ mutationFn: (e) => lve(e),
onSuccess: (t) => {
- n(""), i(""), RL(), e("已新建播放列表", { undo: WL(() => VL(t.playlist.id)) });
+ n(""), i(""), zL(), e("已新建播放列表", { undo: GL(() => HL(t.playlist.id)) });
},
onError: (e) => i(W(e) || "新建失败")
});
@@ -47776,7 +47760,7 @@ function yve({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(UL);
+ i(WL);
return;
}
a.mutate(t);
@@ -47785,7 +47769,7 @@ function yve({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: /* @__PURE__ */ (0, V.jsx)(WM, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -47804,7 +47788,7 @@ function yve({ toast: e }) {
})]
});
}
-function bve({ target: e, close: t, toast: n }) {
+function _ve({ target: e, close: t, toast: n }) {
let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(""), s = (0, B.useRef)(null);
(0, B.useEffect)(() => {
if (!e) return;
@@ -47814,14 +47798,14 @@ function bve({ target: e, close: t, toast: n }) {
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = OS({
- mutationFn: ({ row: e, value: t }) => BL(e.id, t),
+ let c = DS({
+ mutationFn: ({ row: e, value: t }) => VL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), RL(), n("已重命名播放列表", { undo: WL(() => BL(r.id, r.name)) });
+ t(), zL(), n("已重命名播放列表", { undo: GL(() => VL(r.id, r.name)) });
},
onError: (e) => o(W(e))
});
- return /* @__PURE__ */ (0, V.jsx)(XN, {
+ return /* @__PURE__ */ (0, V.jsx)(YN, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -47833,7 +47817,7 @@ function bve({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(UL);
+ o(WL);
return;
}
c.mutate({
@@ -47844,11 +47828,11 @@ function bve({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, V.jsx)(ID, {
+ children: [/* @__PURE__ */ (0, V.jsx)(PD, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, V.jsx)(GM, {
+ }), /* @__PURE__ */ (0, V.jsx)(WM, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -47876,7 +47860,7 @@ function bve({ target: e, close: t, toast: n }) {
})
});
}
-function xve({ name: e, onRename: t, onDelete: n }) {
+function vve({ name: e, onRename: t, onDelete: n }) {
let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -47890,33 +47874,33 @@ function xve({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, V.jsx)(hve, {
+ children: /* @__PURE__ */ (0, V.jsx)(fve, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, V.jsx)(tk, {
+ }), /* @__PURE__ */ (0, V.jsx)($O, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: uM,
- children: /* @__PURE__ */ (0, V.jsxs)(lM, {
+ className: lM,
+ children: /* @__PURE__ */ (0, V.jsxs)(cM, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
- className: HL,
+ className: UL,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, V.jsx)(gve, {
+ children: [/* @__PURE__ */ (0, V.jsx)(pve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
- className: HL,
+ className: UL,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, V.jsx)(_ve, {
+ children: [/* @__PURE__ */ (0, V.jsx)(mve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -47924,13 +47908,13 @@ function xve({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
- let a = TS({
- queryKey: IL,
- queryFn: ({ signal: e }) => LL(e)
+function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+ let a = wS({
+ queryKey: LL,
+ queryFn: ({ signal: e }) => RL(e)
}), [o, s] = (0, B.useState)(null), c = (0, B.useRef)(i);
(0, B.useEffect)(() => {
- c.current !== i && (c.current = i, RL());
+ c.current !== i && (c.current = i, zL());
}, [i]);
let l = a.data;
if (!l) return /* @__PURE__ */ (0, V.jsx)("div", {
@@ -47948,8 +47932,8 @@ function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await pve(e.id);
- await VL(e.id), RL(), r("已删除播放列表", t ? { undo: WL(() => mve(t)) } : void 0);
+ let t = await uve(e.id);
+ await HL(e.id), zL(), r("已删除播放列表", t ? { undo: GL(() => dve(t)) } : void 0);
}
});
};
@@ -47964,38 +47948,38 @@ function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}), /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, V.jsx)(yve, { toast: r })]
+ })] }), /* @__PURE__ */ (0, V.jsx)(gve, { toast: r })]
}),
u.length ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
- let i = dve(r);
- return /* @__PURE__ */ (0, V.jsx)(TA, {
+ let i = cve(r);
+ return /* @__PURE__ */ (0, V.jsx)(CA, {
"data-playlist-card": String(r.id),
name: r.name,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: r.item_count,
- poster: r.preview_asset_id ? zL(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(zL),
+ poster: r.preview_asset_id ? BL(r.preview_asset_id) : null,
+ flipImages: async () => (r.preview_ids || []).map(BL),
canFlip: n,
faces: r.faces || [],
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${r.name}`,
- menu: /* @__PURE__ */ (0, V.jsx)(xve, {
+ menu: /* @__PURE__ */ (0, V.jsx)(vve, {
name: r.name,
onRename: () => s(r),
onDelete: () => d(r)
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: vve,
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: hve,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, V.jsx)(bve, {
+ /* @__PURE__ */ (0, V.jsx)(_ve, {
target: o,
close: () => s(null),
toast: r
@@ -48005,11 +47989,11 @@ function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function Cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function bve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let o = () => t(e.id);
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-goal-id": e.id,
- className: wE({
+ className: SE({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -48025,7 +48009,7 @@ function Cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, V.jsx)("img", {
- src: qle(e),
+ src: Jle(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -48083,47 +48067,47 @@ function Cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
})]
});
}
-function wve({ toast: e, ...t }) {
- let [n, r] = (0, B.useState)(null), i = TS({
- queryKey: XA,
- queryFn: ({ signal: e }) => ZA(e)
+function xve({ toast: e, ...t }) {
+ let [n, r] = (0, B.useState)(null), i = wS({
+ queryKey: YA,
+ queryFn: ({ signal: e }) => XA(e)
}), a = i.data;
- if (!a) return /* @__PURE__ */ (0, V.jsx)(DE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!a) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "高清版目标读取失败",
children: i.error ? W(i.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let o = a.items || [];
- return o.length ? /* @__PURE__ */ (0, V.jsxs)(DE, { children: [
- /* @__PURE__ */ (0, V.jsx)(xP, {
+ return o.length ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(CP, {
label: "待升级",
figure: `${a.total} 部作品`,
flush: !0
}),
/* @__PURE__ */ (0, V.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(Cve, {
+ children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(bve, {
item: e,
...t,
searchResources: r
}, e.id))
}),
- /* @__PURE__ */ (0, V.jsx)(sL, {
+ /* @__PURE__ */ (0, V.jsx)(cL, {
prefill: n,
close: () => r(null),
receipt: e
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(DE, { children: /* @__PURE__ */ (0, V.jsx)(TE, {
+ ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: Sae,
+ icon: Cae,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Tve(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = iue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+function Sve(e) {
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = aue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -48131,29 +48115,29 @@ function Tve(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(EM, {
+ i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(TM, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, V.jsx)(DM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(EM, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -48161,7 +48145,7 @@ function Tve(e) {
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: fT,
+ leadingIcon: dT,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -48172,12 +48156,12 @@ function Tve(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, V.jsxs)(tS, {
+ }), /* @__PURE__ */ (0, V.jsxs)(eS, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, V.jsxs)(EM, {
+ b ? /* @__PURE__ */ (0, V.jsxs)(TM, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -48185,10 +48169,10 @@ function Tve(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, V.jsx)(DM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(EM, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: e
}, e))]
@@ -48224,7 +48208,7 @@ function Tve(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Eve = {
+var Cve = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -48234,14 +48218,14 @@ var Eve = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, GL = "reviewgenretags";
-function Dve({ tags: e }) {
+}, KL = "reviewgenretags";
+function wve({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("datalist", {
- id: GL,
+ id: KL,
children: e.map((e) => /* @__PURE__ */ (0, V.jsx)("option", { value: e }, e))
}) : null;
}
-function KL({ candidate: e, selectable: t = !1 }) {
+function qL({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -48278,7 +48262,7 @@ function KL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, V.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Eve[e] || e
+ children: Cve[e] || e
}),
/* @__PURE__ */ (0, V.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -48293,36 +48277,36 @@ function KL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Ove({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Tve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, V.jsx)(KL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, V.jsx)(yk, {
+ children: /* @__PURE__ */ (0, V.jsx)(qL, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, V.jsx)(_k, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(bk, {
+ children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(vk, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, V.jsx)(KL, {
+ children: /* @__PURE__ */ (0, V.jsx)(qL, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function kve({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = OS({
- mutationFn: (t) => fue(e, t),
+function Eve({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = DS({
+ mutationFn: (t) => pue(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await mue();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await hue();
},
onError: (e) => s(W(e))
}), l = () => {
@@ -48341,16 +48325,16 @@ function kve({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, V.jsx)(HM, {
+ /* @__PURE__ */ (0, V.jsx)(VM, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(UM, {
size: "small",
- list: t.length ? GL : void 0,
+ list: t.length ? KL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -48382,8 +48366,8 @@ function kve({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Ave({ row: e, tags: t, locked: n, toast: r }) {
- let i = lue(e);
+function Dve({ row: e, tags: t, locked: n, toast: r }) {
+ let i = uue(e);
return i.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -48391,7 +48375,7 @@ function Ave({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, V.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(kve, {
+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(Eve, {
genre: e,
tags: t,
locked: n,
@@ -48401,9 +48385,9 @@ function Ave({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var qL = (e = "") => /^https?:\/\//i.test(e) ? e : "", jve = (e = "") => qL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function JL({ url: e }) {
- let t = jve(e || ""), [n, r] = (0, B.useState)(!1);
+var JL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Ove = (e = "") => JL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function YL({ url: e }) {
+ let t = Ove(e || ""), [n, r] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, V.jsx)("img", {
@@ -48418,7 +48402,7 @@ function JL({ url: e }) {
})
});
}
-function YL({ asset: e, openItem: t }) {
+function XL({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -48444,21 +48428,21 @@ function YL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: hae,
+ leadingIcon: gae,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function Mve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function kve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${eL}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${nL}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -48474,8 +48458,8 @@ function Mve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = qL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function Ave({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = JL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, V.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -48485,10 +48469,10 @@ function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, V.jsx)(CE, {
+ children: [o ? /* @__PURE__ */ (0, V.jsx)(xE, {
variant: "secondary",
size: "small",
- trailingIcon: _T,
+ trailingIcon: gT,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -48500,7 +48484,7 @@ function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, V.jsx)(JL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, V.jsx)(YL, { url: e.preview_url }),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -48543,7 +48527,7 @@ function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Pve({ assets: e, picked: t, onPicked: n, locked: r }) {
+function jve({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, B.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -48599,7 +48583,7 @@ function Pve({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ children: /* @__PURE__ */ (0, V.jsx)(jM, {
size: "sm",
state: {
isSelected: n,
@@ -48619,19 +48603,19 @@ function Pve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Fve = wE({
+var Mve = SE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), XL = "flex min-h-6 min-w-0 items-center", Ive = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Lve(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, B.useRef)(!1), m = vM(), h = vM(), g = t === "metadata_fields", _ = eue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = oue(t, n), x = cj(t, n), S = sj(t, n), C = sue(n), T = cue(n), E = oj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
+}), ZL = "flex min-h-6 min-w-0 items-center", Nve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Pve(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, B.useRef)(!1), m = _M(), h = _M(), g = t === "metadata_fields", _ = tue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = sue(t, n), x = sj(t, n), S = oj(t, n), C = cue(n), T = lue(n), E = aj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-3",
- children: D.map((e) => /* @__PURE__ */ (0, V.jsx)(YL, {
+ children: D.map((e) => /* @__PURE__ */ (0, V.jsx)(XL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, V.jsx)(Mve, {
+ }) : y ? /* @__PURE__ */ (0, V.jsx)(kve, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -48642,14 +48626,14 @@ function Lve(e) {
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, V.jsx)(YL, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, V.jsx)(XL, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Ove, {
+ }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Tve, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -48658,7 +48642,7 @@ function Lve(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(Pve, {
+ }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(jve, {
assets: O,
picked: r.assets,
locked: s,
@@ -48666,21 +48650,21 @@ function Lve(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "inset",
- icon: uae,
+ icon: dae,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Nve, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Ave, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, V.jsx)(JL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, V.jsxs)("h4", {
- className: `${XL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, V.jsx)(xE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(YL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, V.jsxs)("h4", {
+ className: `${ZL} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "blue",
children: x
@@ -48690,7 +48674,7 @@ function Lve(e) {
children: S
})]
}) : /* @__PURE__ */ (0, V.jsx)("h4", {
- className: XL,
+ className: ZL,
children: /* @__PURE__ */ (0, V.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -48700,20 +48684,20 @@ function Lve(e) {
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Fve} ${Ive(t)} overflow-hidden`,
+ className: `${Mve} ${Nve(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, V.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, V.jsx)("span", {
- className: `${XL} shrink-0`,
+ className: `${ZL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, V.jsx)(NM, {
+ children: /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -48723,7 +48707,7 @@ function Lve(e) {
className: "min-w-0 flex-1",
children: M
}),
- k ? /* @__PURE__ */ (0, V.jsx)(xE, {
+ k ? /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -48747,7 +48731,7 @@ function Lve(e) {
!y && A ? A : null,
T.length || t === "creator_tags" ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(xE, {
+ children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(yE, {
variant: "caption",
color: "soft",
children: e
@@ -48757,7 +48741,7 @@ function Lve(e) {
})
}) : null,
j,
- /* @__PURE__ */ (0, V.jsx)(Ave, {
+ /* @__PURE__ */ (0, V.jsx)(Dve, {
row: n,
tags: u,
locked: s,
@@ -48819,8 +48803,8 @@ function Lve(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Rve = "flex cursor-pointer items-center justify-between gap-2";
-function zve({ page: e, pages: t, onPage: n }) {
+var Fve = "flex cursor-pointer items-center justify-between gap-2";
+function Ive({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, V.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -48834,7 +48818,7 @@ function zve({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: QA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
+ children: ZA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -48857,48 +48841,48 @@ function zve({ page: e, pages: t, onPage: n }) {
]
});
}
-function Bve(e) {
+function Lve(e) {
let [t, n] = (0, B.useState)(() => matchMedia("(max-width:900px)").matches);
(0, B.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, B.useState)(ij(e.category) ? e.category : $le), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, B.useState)(rj(e.category) ? e.category : eue), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);
(0, B.useEffect)(() => () => {
M.current = !1;
}, []);
- let N = TS({
- queryKey: nj,
- queryFn: ({ signal: e }) => uj(e)
+ let N = wS({
+ queryKey: tj,
+ queryFn: ({ signal: e }) => lj(e)
}).data || {
sections: {},
counts: {}
- }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = tue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = aj(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = rue(nue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
+ }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = nue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = ij(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = iue(rue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
...e,
rows: e.rows.filter((e) => oe.has(e.item_key))
- })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || uue(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {
+ })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || due(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {
let t = new Set(e);
b((e) => new Set([...e].filter((e) => !t.has(e)))), S((e) => new Map([...e].filter(([e]) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, L = (e, t) => w((n) => new Map(n).set(e, t)), de = (e) => {
f(e), m("candidates"), g(""), v(1), b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Map()), w(/* @__PURE__ */ new Map()), E(""), D.current = null, r({ category: e === "metadata_fields" ? "" : e });
- }, fe = OS({
- mutationFn: ({ row: e, status: t }) => dj(lj(d, e, t, ce(e))),
+ }, fe = DS({
+ mutationFn: ({ row: e, status: t }) => uj(cj(d, e, t, ce(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
L(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- fj(d, [t.item_key]), ue([t.item_key]), s(due(n));
+ dj(d, [t.item_key]), ue([t.item_key]), s(fue(n));
},
onError: (e, { row: t }) => L(t.item_key, W(e))
- }), pe = OS({
+ }), pe = DS({
mutationFn: async (e) => {
let t = le, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!M.current) break;
E(`正在处理 ${i} / ${t.length}`);
try {
- let t = await dj(lj(d, a, e, ce(a)));
+ let t = await uj(cj(d, a, e, ce(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -48912,7 +48896,7 @@ function Bve(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- fj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ dj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
E(W(e));
@@ -48942,7 +48926,7 @@ function Bve(e) {
k(e), j("");
let t = await o(e);
M.current && (k(0), j(t));
- }, ge = hue(N.mirror, l), _e = N.genre_tags || [], ve = {
+ }, ge = gue(N.mirror, l), _e = N.genre_tags || [], ve = {
openItem: i,
openEntity: a,
onReveal: he,
@@ -48950,7 +48934,7 @@ function Bve(e) {
revealNote: A,
toast: s
};
- return /* @__PURE__ */ (0, V.jsx)(DE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {
+ return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
F ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -48966,13 +48950,13 @@ function Bve(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Dve, { tags: _e }),
- /* @__PURE__ */ (0, V.jsxs)(Jk, {
+ /* @__PURE__ */ (0, V.jsx)(wve, { tags: _e }),
+ /* @__PURE__ */ (0, V.jsxs)(Kk, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- ij(t) && de(t);
+ rj(t) && de(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -48981,27 +48965,27 @@ function Bve(e) {
children: [/* @__PURE__ */ (0, V.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, V.jsx)(Yk, {
+ }), /* @__PURE__ */ (0, V.jsx)(qk, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: Qle.map((e) => {
+ children: $le.map((e) => {
let t = Number(N.counts[e] || 0);
- return /* @__PURE__ */ (0, V.jsxs)(Xk, {
+ return /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: e,
- className: Rve,
- children: [rj[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {
+ className: Fve,
+ children: [nj[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, V.jsxs)(Zk, {
+ }), /* @__PURE__ */ (0, V.jsxs)(Yk, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Tve, {
+ P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Sve, {
groupOptions: I,
groupBy: te,
onGroupBy: (e) => {
@@ -49017,7 +49001,7 @@ function Bve(e) {
onSelected: b,
selectedRows: le,
metadata: ee,
- approvable: le.every((e) => oj(d, e)),
+ approvable: le.every((e) => aj(d, e)),
busy: pe.isPending,
feedback: T,
onUnifySource: R,
@@ -49042,7 +49026,7 @@ function Bve(e) {
})]
}) : null, /* @__PURE__ */ (0, V.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Lve, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Pve, {
category: d,
row: e,
choice: ce(e),
@@ -49050,7 +49034,7 @@ function Bve(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => b((r) => {
let i = new Set(r);
- return D.current = aue(i, ae, D.current, e.item_key, t, n), i;
+ return D.current = oue(i, ae, D.current, e.item_key, t, n), i;
}),
locked: F,
busy: fe.isPending && fe.variables?.row.item_key === e.item_key,
@@ -49065,12 +49049,12 @@ function Bve(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, V.jsx)(TE, {
- icon: tae,
+ }, e.key)) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ icon: nae,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, V.jsx)(zve, {
+ /* @__PURE__ */ (0, V.jsx)(Ive, {
page: ie.page,
pages: ie.pages,
onPage: v
@@ -49083,13 +49067,9 @@ function Bve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Vve = "/api/scraping", Hve = "/api/scraping/settings", Uve = "/api/scraping/check", ZL = "/api/scraping/cover", Wve = "/api/scraping/amane-bridge", Gve = "/api/scraping/amane-bridge/check", Kve = "/api/scraping/amane-bridge/rebuild", QL = ["scraping"], $L = ["scraping", "cover"], eR = ["scraping", "amane-bridge"], tR = (e) => G(Vve, e), nR = (e) => G(ZL, e), rR = (e) => G(Wve, e);
-async function qve(e) {
+var Rve = "/api/scraping", zve = "/api/scraping/settings", Bve = "/api/scraping/check", QL = "/api/scraping/cover", Vve = "/api/scraping/amane-bridge", Hve = "/api/scraping/amane-bridge/check", Uve = "/api/scraping/amane-bridge/rebuild", $L = ["scraping"], eR = ["scraping", "cover"], tR = ["scraping", "amane-bridge"], nR = (e) => G(Rve, e), rR = (e) => G(QL, e), iR = (e) => G(Vve, e);
+async function Wve(e) {
await Promise.all([
- z.fetchQuery({
- queryKey: QL,
- queryFn: () => tR(e)
- }),
z.fetchQuery({
queryKey: $L,
queryFn: () => nR(e)
@@ -49097,16 +49077,20 @@ async function qve(e) {
z.fetchQuery({
queryKey: eR,
queryFn: () => rR(e)
+ }),
+ z.fetchQuery({
+ queryKey: tR,
+ queryFn: () => iR(e)
})
]);
}
-function Jve(e, t) {
+function Gve(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Yve = [["peach", "Peach 代理"], ["direct", "直接连接"]], iR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function aR({ source: e }) {
+var Kve = [["peach", "Peach 代理"], ["direct", "直接连接"]], aR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function oR({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -49124,16 +49108,16 @@ function aR({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function Xve() {
- return /* @__PURE__ */ (0, V.jsx)(aR, { source: "github" });
+function qve() {
+ return /* @__PURE__ */ (0, V.jsx)(oR, { source: "github" });
}
-function Zve({ source: e, toast: t }) {
- let [n, r] = (0, B.useState)(e.network), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(iR[0][0]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = (0, B.useRef)(null);
+function Jve({ source: e, toast: t }) {
+ let [n, r] = (0, B.useState)(e.network), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(aR[0][0]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = (0, B.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = OS({
- mutationFn: (t) => K(Hve, {
+ let g = DS({
+ mutationFn: (t) => K(zve, {
source: e.source,
network: n,
cookie: i,
@@ -49141,12 +49125,12 @@ function Zve({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- z.setQueryData(QL, (t) => t && {
+ z.setQueryData($L, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = OS({ mutationFn: () => K(Uve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = DS({ mutationFn: () => K(Bve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -49171,40 +49155,40 @@ function Zve({ source: e, toast: t }) {
}
}
let C = f || (g.error ? W(g.error) : "") || (_.error ? W(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(aR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(oR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(BE, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {
label: "连接方式",
- children: /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Yve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: Kve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, V.jsxs)(LE, {
+ T ? /* @__PURE__ */ (0, V.jsxs)(FE, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, V.jsx)(PE, {
+ children: /* @__PURE__ */ (0, V.jsx)(ME, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: lT,
+ trailingIcon: cT,
children: "配置 Peach 代理"
})
}) : null,
@@ -49217,20 +49201,20 @@ function Zve({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, V.jsx)(eA, {
+ /* @__PURE__ */ (0, V.jsx)(Qk, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: tA,
- children: iR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(bk, {
+ className: $k,
+ children: aR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
value: e,
- className: nA,
+ className: eA,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, V.jsx)(GM, {
+ c === "paste" ? /* @__PURE__ */ (0, V.jsx)(WM, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -49239,7 +49223,7 @@ function Zve({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
@@ -49265,14 +49249,14 @@ function Zve({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, V.jsx)(BE, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, V.jsx)(RE, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, V.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: Jve(t, e.label)
+ children: Gve(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(RE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
onClick: b,
@@ -49294,26 +49278,26 @@ function Zve({ source: e, toast: t }) {
]
});
}
-function Qve({ toast: e }) {
- let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = kM({
- queryKey: $L,
- queryFn: ({ signal: e }) => nR(e),
- start: () => K(ZL, { code: t }),
+function Yve({ toast: e }) {
+ let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = OM({
+ queryKey: eR,
+ queryFn: ({ signal: e }) => rR(e),
+ start: () => K(QL, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? W(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, V.jsx)(FE, {
+ return /* @__PURE__ */ (0, V.jsx)(NE, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: /* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -49328,7 +49312,7 @@ function Qve({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, V.jsx)(EE, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: s
@@ -49340,11 +49324,11 @@ function Qve({ toast: e }) {
] })
});
}
-function $ve({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = kM({
- queryKey: eR,
- queryFn: ({ signal: e }) => rR(e),
- start: () => K(Kve, {}),
+function Xve({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = OM({
+ queryKey: tR,
+ queryFn: ({ signal: e }) => iR(e),
+ start: () => K(Uve, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -49353,45 +49337,45 @@ function $ve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = OS({ mutationFn: () => K(Gve, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ }), a = DS({ mutationFn: () => K(Hve, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(NE, {
title: "amane",
- children: /* @__PURE__ */ (0, V.jsx)(LE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: W(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? W(i.error) : a.error ? W(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "amane",
- aside: /* @__PURE__ */ (0, V.jsx)(HE, {
+ aside: /* @__PURE__ */ (0, V.jsx)(BE, {
href: o.repository,
- leadingIcon: Xve,
+ leadingIcon: qve,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, V.jsxs)(UE, { children: [
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, V.jsxs)(LE, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, {
divided: !0,
children: [
- /* @__PURE__ */ (0, V.jsxs)(zE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -49400,7 +49384,7 @@ function $ve({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, V.jsx)(EE, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: c
@@ -49411,7 +49395,7 @@ function $ve({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(RE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -49428,23 +49412,23 @@ function $ve({ toast: e }) {
]
});
}
-function eye({ toast: e }) {
- let t = TS({
- queryKey: QL,
- queryFn: ({ signal: e }) => tR(e)
+function Zve({ toast: e }) {
+ let t = wS({
+ queryKey: $L,
+ queryFn: ({ signal: e }) => nR(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, V.jsxs)(DE, { children: [
+ return n ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, V.jsx)(Qve, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(Zve, {
+ /* @__PURE__ */ (0, V.jsx)(Yve, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(Jve, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, V.jsx)($ve, { toast: e })
- ] }) : /* @__PURE__ */ (0, V.jsx)(DE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ /* @__PURE__ */ (0, V.jsx)(Xve, { toast: e })
+ ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? W(t.error) : "读取采集来源失败"
@@ -49452,21 +49436,21 @@ function eye({ toast: e }) {
}
//#endregion
//#region src/react/search/search.ts
-var oR = /* @__PURE__ */ new Set([
+var sR = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), sR = /* @__PURE__ */ new Set(["asset"]), cR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function tye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), cR = /* @__PURE__ */ new Set(["asset"]), lR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function Qve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || cR(t).includes(cR(e)));
+ }, u = t.filter((t) => !e || lR(t).includes(lR(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -49504,7 +49488,7 @@ function tye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !sR.has(e.kind)).map(m), g = p.filter((e) => sR.has(e.kind)).map(m);
+ }), h = p.filter((e) => !cR.has(e.kind)).map(m), g = p.filter((e) => cR.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -49513,17 +49497,17 @@ function tye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function nye(e, t, n = Math.random) {
+function $ve(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => cR(t) === cR(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => lR(t) === lR(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var rye = () => ({
+var eye = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -49538,7 +49522,7 @@ var rye = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), lR = (e) => tye({
+}), uR = (e) => Qve({
query: e.query,
history: e.history,
picks: e.picks,
@@ -49546,18 +49530,18 @@ var rye = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), iye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), uR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+}), tye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), dR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
-function aye(e) {
+function nye(e) {
let t = (0, B.useRef)(e);
t.current = e;
let n = (0, B.useRef)(null);
- n.current ??= rye();
+ n.current ??= eye();
let r = n.current, i = (0, B.useRef)(null), [, a] = (0, B.useReducer)((e) => e + 1, 0), o = (0, B.useRef)(null);
- o.current ??= oye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= rye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, B.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -49570,7 +49554,7 @@ function aye(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 = lR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(cye, {
+ let c = uR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(aye, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -49590,7 +49574,7 @@ function aye(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, V.jsx)(sye, {
+ c.tabs ? /* @__PURE__ */ (0, V.jsx)(iye, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -49611,7 +49595,7 @@ function aye(e) {
]
});
}
-function oye(e, t, n, r) {
+function rye(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -49625,7 +49609,7 @@ function oye(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) => cR(e) !== cR(t))]), K("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => lR(e) !== lR(t))]), K("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -49658,9 +49642,9 @@ function oye(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : nye(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : $ve(t.pool, o()), t.active = -1;
let a = n();
- a && (iye(lR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (tye(uR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -49672,7 +49656,7 @@ function oye(e, t, n, r) {
!n || e === t.kind || (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {
a() && t.kind === e && m();
}));
- }, _ = () => f() ? lR(t).options : [], v = (e) => {
+ }, _ = () => f() ? uR(t).options : [], v = (e) => {
let n = _();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, y = (t, n) => {
@@ -49685,7 +49669,7 @@ function oye(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && oR.has(t.kind)) {
+ if (t.type === "suggest" && sR.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -49737,12 +49721,12 @@ function oye(e, t, n, r) {
await K("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => cR(t) !== cR(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => lR(t) !== lR(e))), t.active = -1, r();
},
pickKind: g
};
}
-function sye({ tabs: e, kind: t, onPick: n, wire: r }) {
+function iye({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
r(i.current);
@@ -49754,7 +49738,7 @@ function sye({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, V.jsx)(CL, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, V.jsx)(wL, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, V.jsxs)("div", {
ref: i,
@@ -49764,8 +49748,8 @@ function sye({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var dR = (e) => e.preventDefault();
-function cye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var fR = (e) => e.preventDefault();
+function aye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -49777,28 +49761,28 @@ function cye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, V.jsx)(uR, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, V.jsx)(dR, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: dR,
+ onMouseDown: fR,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, V.jsx)(uR, { name: "x" })
+ children: /* @__PURE__ */ (0, V.jsx)(dR, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = oR.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = sR.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, V.jsx)(fR, {
+ children: [/* @__PURE__ */ (0, V.jsx)(pR, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -49824,7 +49808,7 @@ function cye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, V.jsx)(pR, {
+ /* @__PURE__ */ (0, V.jsx)(mR, {
item: s,
kind: c
}),
@@ -49844,11 +49828,11 @@ function cye({ 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: dR,
+ onMouseDown: fR,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, V.jsx)(fR, {
+ children: /* @__PURE__ */ (0, V.jsx)(pR, {
card: e,
helpers: n
})
@@ -49862,7 +49846,7 @@ function cye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, V.jsx)(pR, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, V.jsx)(mR, {
item: s,
kind: c
}) : null,
@@ -49875,13 +49859,13 @@ function cye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function fR({ card: e, helpers: t }) {
+function pR({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function pR({ item: e, kind: t }) {
+function mR({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -49896,51 +49880,51 @@ function pR({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var mR = "/api/configuration", lye = "/api/pick-folder", hR = ["configuration"], gR = (e) => G(mR, e);
-async function _R(e) {
+var hR = "/api/configuration", oye = "/api/pick-folder", gR = ["configuration"], _R = (e) => G(hR, e);
+async function vR(e) {
await z.fetchQuery({
- queryKey: hR,
- queryFn: () => gR(e)
+ queryKey: gR,
+ queryFn: () => _R(e)
});
}
//#endregion
//#region src/react/settings/indexer-settings.tsx
-var vR = "/api/configuration/indexers";
-function uye({ receipt: e }) {
- let t = TS({
+var yR = "/api/configuration/indexers";
+function sye({ receipt: e }) {
+ let t = wS({
queryKey: ["indexers"],
- queryFn: ({ signal: e }) => G(vR, e)
+ queryFn: ({ signal: e }) => G(yR, e)
});
- return t.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(dye, {
+ return t.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(cye, {
initial: t.data,
receipt: e
}) : null;
}
-function dye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.indexers), i = AE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function cye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.indexers), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "资源索引器",
onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => K(vR, { indexers: n }, "POST", e), (e) => {
+ e.preventDefault(), i.run("save", (e) => K(yR, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
- children: [/* @__PURE__ */ (0, V.jsxs)(LE, { children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, API key 在 Settings → General。" }),
+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, API key 在 Settings → General。" }),
n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: `索引器 ${t + 1} 名称`,
value: e.name,
maxLength: 80,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { name: t })
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: `索引器 ${t + 1} Torznab 地址`,
value: e.url,
type: "url",
@@ -49949,7 +49933,7 @@ function dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { url: t })
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: `索引器 ${t + 1} API key`,
type: "password",
autoComplete: "new-password",
@@ -49958,13 +49942,13 @@ function dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { api_key: t })
}),
- /* @__PURE__ */ (0, V.jsx)(NM, {
+ /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: e.enabled,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { enabled: t }),
children: "启用"
}),
- e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(NM, {
+ e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: !!e.clear_api_key,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { clear_api_key: t }),
@@ -49978,8 +49962,8 @@ function dye({ initial: e, receipt: t }) {
}) })
]
}, e.key)),
- i.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsxs)(RE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
type: "button",
disabled: !!i.busy || n.length >= e.max_indexers,
onClick: () => r([...n, {
@@ -49999,24 +49983,24 @@ function dye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var fye = "/api/configuration/downloads", yR = "/api/configuration/downloads/check", pye = "/api/configuration/downloads/folder", mye = "/api/configuration/downloads/pikpak/login", hye = "/api/configuration/downloads/pikpak/logout", bR = "/api/configuration/downloads/pikpak/browser-login", xR = 2e3;
-function gye({ initial: e, receipt: t }) {
+var lye = "/api/configuration/downloads", bR = "/api/configuration/downloads/check", uye = "/api/configuration/downloads/folder", dye = "/api/configuration/downloads/pikpak/login", fye = "/api/configuration/downloads/pikpak/logout", xR = "/api/configuration/downloads/pikpak/browser-login", SR = 2e3;
+function pye({ initial: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [/* @__PURE__ */ (0, V.jsx)(_ye, {
+ children: [/* @__PURE__ */ (0, V.jsx)(mye, {
initial: e,
receipt: t
- }), /* @__PURE__ */ (0, V.jsx)(uye, { receipt: t })]
+ }), /* @__PURE__ */ (0, V.jsx)(sye, { receipt: t })]
});
}
-function _ye({ initial: e, receipt: t }) {
+function mye({ initial: e, receipt: t }) {
let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(vye, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(hye, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, V.jsx)(bye, {
+ }), /* @__PURE__ */ (0, V.jsx)(_ye, {
state: n,
settle: r,
receipt: t,
@@ -50024,8 +50008,8 @@ function _ye({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(SR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = AE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(CR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = OE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -50054,8 +50038,8 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- b.run("auto", (e) => G(yR, e), (e) => w(e, t), (e) => _(W(e)));
- }, []), /* @__PURE__ */ (0, V.jsxs)(FE, {
+ b.run("auto", (e) => G(bR, e), (e) => w(e, t), (e) => _(W(e)));
+ }, []), /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -50068,19 +50052,19 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- b.run("save", (e) => K(fye, f, "POST", e), (e) => {
+ b.run("save", (e) => K(lye, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? w(r, {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(SR), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(CR), y(!1), _("")), n("已保存配置");
}, (e) => _(W(e)));
},
children: [
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
autoComplete: "off",
@@ -50092,7 +50076,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -50103,7 +50087,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "115 目标目录",
placeholder: "留空时按推送发现自动填写",
autoComplete: "off",
@@ -50115,7 +50099,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("115", e)
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "PikPak 目标目录",
placeholder: "以 / 开头的网盘路径",
autoComplete: "off",
@@ -50127,7 +50111,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -50136,13 +50120,13 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, V.jsx)(zE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -50153,11 +50137,11 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(EE, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, V.jsx)(yye, {
+ u ? /* @__PURE__ */ (0, V.jsx)(gye, {
report: u,
detected: f,
suggested: m,
@@ -50169,7 +50153,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => K(pye, t, "POST", e), (t) => {
+ b.run("folder", (e) => K(uye, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -50181,11 +50165,11 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ g || b.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(BE, { children: g || b.error })
+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(RE, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => {
@@ -50200,7 +50184,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => K(yR, t, "POST", e), (t) => w(t, e), (e) => _(W(e)));
+ b.run("check", (e) => K(bR, t, "POST", e), (t) => w(t, e), (e) => _(W(e)));
},
disabled: !e.available,
...X(b.busy === "check"),
@@ -50215,25 +50199,25 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var SR = {
+var CR = {
target: null,
root: "",
saved: !1
};
-function yye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function gye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, V.jsxs)(LE, {
+ return /* @__PURE__ */ (0, V.jsxs)(FE, {
divided: !0,
- children: [/* @__PURE__ */ (0, V.jsxs)(UE, { children: [
- t ? /* @__PURE__ */ (0, V.jsx)(WE, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(VE, { children: [
+ t ? /* @__PURE__ */ (0, V.jsx)(HE, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, V.jsx)(WE, {
+ a?.exists ? /* @__PURE__ */ (0, V.jsx)(HE, {
term: "115 目标目录",
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(WE, {
+ a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(HE, {
term: "115 目标目录",
children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
@@ -50242,49 +50226,49 @@ function yye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, V.jsx)(WE, {
+ n.root ? /* @__PURE__ */ (0, V.jsx)(HE, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(WE, {
+ e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(HE, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, V.jsx)(WE, {
+ e.folder ? /* @__PURE__ */ (0, V.jsx)(HE, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, V.jsx)(WE, {
+ e.quota ? /* @__PURE__ */ (0, V.jsx)(HE, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(BE, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(RE, { children: e }, e))]
});
}
-function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = AE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+function _ye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+ let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = OE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, B.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await G(bR, e.signal);
+ let r = await G(xR, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(W(t));
}
- r = setTimeout(i, xR);
+ r = setTimeout(i, SR);
};
- return r = setTimeout(i, xR), () => {
+ return r = setTimeout(i, SR), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => K(bR, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => K(xR, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(W(e)));
}, b = () => {
- h.run("cancel", (e) => K(`${bR}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => K(`${xR}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(W(e)));
}, x = (e) => {
@@ -50294,7 +50278,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => K(mye, i, "POST", e), (e) => {
+ h.run("login", (e) => K(dye, i, "POST", e), (e) => {
if (t(e.settings), f(""), !e.ok) {
u(e.captcha_url ?? "");
return;
@@ -50302,11 +50286,11 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
u(""), o(""), n("已登录 PikPak");
}, (e) => f(W(e)));
}, S = () => {
- h.run("logout", (e) => K(hye, {}, "POST", e), (e) => {
+ h.run("logout", (e) => K(fye, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(W(e)));
}, C = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -50315,7 +50299,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -50324,7 +50308,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, V.jsx)(NM, {
+ /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@ -50335,7 +50319,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
title: "需要人机验证",
extra: /* @__PURE__ */ (0, V.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: /* @__PURE__ */ (0, V.jsx)(BE, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -50348,31 +50332,31 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
...X(h.busy === "login"),
children: "登录"
}), T = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "PikPak 账号",
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(UE, { children: [/* @__PURE__ */ (0, V.jsx)(WE, {
+ g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(WE, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(HE, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, V.jsx)(WE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(HE, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),
- p ? T ? /* @__PURE__ */ (0, V.jsx)(BE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(zE, {
+ })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),
+ p ? T ? /* @__PURE__ */ (0, V.jsx)(RE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(LE, {
role: "status",
children: p
}) : null,
- /* @__PURE__ */ (0, V.jsx)(GE, {
+ /* @__PURE__ */ (0, V.jsx)(UE, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
C,
/* @__PURE__ */ (0, V.jsx)("div", {
className: "flex justify-end",
@@ -50381,13 +50365,13 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
]
})
})
- ] }) : /* @__PURE__ */ (0, V.jsxs)(LE, { children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ ] }) : /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(BE, { children: d || h.error })
+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(RE, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(EE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, V.jsx)(IE, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(wE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: S,
disabled: !e.available,
@@ -50411,90 +50395,90 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var xye = [
+var vye = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function Sye({ data: e, receipt: t, reopenTutorial: n }) {
+function yye({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, V.jsx)(Tye, { facts: e.facts }),
- /* @__PURE__ */ (0, V.jsx)(Cye, {
+ /* @__PURE__ */ (0, V.jsx)(Sye, { facts: e.facts }),
+ /* @__PURE__ */ (0, V.jsx)(bye, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Eye, {
+ e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Cye, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function Cye({ receipt: e, reopenTutorial: t }) {
- let n = AE();
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+function bye({ receipt: e, reopenTutorial: t }) {
+ let n = OE();
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, V.jsxs)(LE, { children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function wye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = AE(e.error), s = (r) => {
+function xye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = OE(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => K("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "下载完成后在这里确认重启安装。" : void 0 : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: xye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: vye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ o.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(BE, { children: o.error })
+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -50503,22 +50487,22 @@ function wye({ initial: e, receipt: t }) {
]
});
}
-function Tye({ facts: e }) {
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+function Sye({ facts: e }) {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "运行信息",
- children: [/* @__PURE__ */ (0, V.jsx)(UE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(WE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(HE, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(BE, {
href: e.download_url,
children: e.download_label
}) : null]
- }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(PE, {
+ }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(ME, {
href: "/diagnostics",
children: "打开系统诊断"
}) })]
});
}
-function Eye({ uninstall: e, receipt: t }) {
+function Cye({ uninstall: e, receipt: t }) {
let [n, r] = (0, B.useState)(!1), [i, a] = (0, B.useState)(""), o = () => void Te({
title: "卸载 Peach",
danger: !0,
@@ -50532,26 +50516,26 @@ function Eye({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, V.jsxs)(LE, { children: [
- e.available ? /* @__PURE__ */ (0, V.jsx)(zE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, V.jsx)(NM, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ e.available ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, V.jsx)(GE, {
+ /* @__PURE__ */ (0, V.jsx)(UE, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(xM, {
+ children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(bM, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, V.jsx)(RE, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(IE, {
status: s ? /* @__PURE__ */ (0, V.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -50567,23 +50551,23 @@ function Eye({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var CR = /* @__PURE__ */ new Set([
+var wR = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), Dye = [
+]), wye = [
65,
67,
90
-], wR = 120;
-function Oye({ initial: e, initialJob: t }) {
+], TR = 120;
+function Tye({ initial: e, initialJob: t }) {
let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, B.useState)(""), c = AE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = CR.has(i.state);
+ }), [o, s] = (0, B.useState)(""), c = OE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = wR.has(i.state);
(0, B.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -50600,7 +50584,7 @@ function Oye({ initial: e, initialJob: t }) {
(0, B.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, B.useEffect)(() => {
- let e = new AbortController(), t = CR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = wR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await G("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -50613,9 +50597,9 @@ function Oye({ initial: e, initialJob: t }) {
let n = await G("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= wR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= TR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < wR && (n = setTimeout(c, t));
+ !e.signal.aborted && o < TR && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -50629,57 +50613,57 @@ function Oye({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(W(t));
}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, V.jsxs)(UE, { children: [
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(LE, {
+ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(FE, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(zE, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(BE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(zE, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(RE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(LE, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(BE, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, V.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(kE, {
+ /* @__PURE__ */ (0, V.jsx)(DE, {
label: "更新准备进度",
value: i.progress,
- stops: Dye
+ stops: wye
}),
- /* @__PURE__ */ (0, V.jsxs)(zE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, V.jsx)(zE, { children: _ })
+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(RE, {
- status: /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, {
+ status: /* @__PURE__ */ (0, V.jsx)(BE, {
href: n.release_url,
children: "查看发布页"
}),
@@ -50706,28 +50690,28 @@ function Oye({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function kye({ data: e, receipt: t }) {
+function Eye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.startup ? /* @__PURE__ */ (0, V.jsx)(Aye, {
+ e.startup ? /* @__PURE__ */ (0, V.jsx)(Dye, {
startup: e.startup,
receipt: t
}) : null,
- e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(wye, {
+ e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(xye, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, V.jsx)(Oye, {
+ e.updates ? /* @__PURE__ */ (0, V.jsx)(Tye, {
initial: e.updates,
initialJob: e.update_job
}) : null
]
});
}
-function Aye({ startup: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.enabled), [i, a] = (0, B.useState)(e.silent), [o, s] = (0, B.useState)(e.desktop), c = AE(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+function Dye({ startup: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.enabled), [i, a] = (0, B.useState)(e.silent), [o, s] = (0, B.useState)(e.desktop), c = OE(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => K("/api/configuration/startup", {
@@ -50737,30 +50721,30 @@ function Aye({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页。",
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页。",
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -50768,11 +50752,11 @@ function Aye({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(LE, {
+ e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, V.jsx)(zE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -50783,7 +50767,7 @@ function Aye({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/restart-redirect.ts
-var jye = 8e3, Mye = [
+var Oye = 8e3, kye = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -50802,33 +50786,33 @@ var jye = 8e3, Mye = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Nye = [
+], Aye = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Pye() {
+function jye() {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "@container flex flex-col gap-3",
- children: /* @__PURE__ */ (0, V.jsxs)(GE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {
summary: "CloudDrive 设置帮助",
children: [
- /* @__PURE__ */ (0, V.jsxs)(zE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(BE, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
})] }),
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, V.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Mye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
+ children: kye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, V.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Nye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: Aye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, V.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -50849,9 +50833,9 @@ function Pye() {
/* @__PURE__ */ (0, V.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, V.jsxs)(zE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(BE, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -50863,7 +50847,7 @@ function Pye() {
}
//#endregion
//#region src/react/settings/folder-rows.tsx
-function Fye({ className: e }) {
+function Mye({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -50876,12 +50860,12 @@ function Fye({ className: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-folder-search" })
});
}
-var TR = [
+var ER = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], ER = (e) => Se[e] || "database", Iye = (e) => e === "115" || e === "pikpak";
-function Lye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+], DR = (e) => Se[e] || "database", Nye = (e) => e === "115" || e === "pikpak";
+function Pye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)([]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = (0, B.useRef)(!1), m = (0, B.useRef)([]);
(0, B.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
@@ -50924,14 +50908,14 @@ function Lye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function Rye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
+function Fye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@ -50946,14 +50930,14 @@ function Rye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
className: "flex h-10 shrink-0 items-center",
children: c
}) : null,
- /* @__PURE__ */ (0, V.jsx)(bM, {
- icon: Fye,
+ /* @__PURE__ */ (0, V.jsx)(yM, {
+ icon: Mye,
"aria-label": "选择文件夹",
onClick: o,
...X(a)
}),
- s ? /* @__PURE__ */ (0, V.jsx)(bM, {
- icon: pT,
+ s ? /* @__PURE__ */ (0, V.jsx)(yM, {
+ icon: fT,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@ -50964,23 +50948,23 @@ function Rye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
})]
});
}
-function zye({ index: e, value: t, onChange: n, options: r = TR }) {
- return /* @__PURE__ */ (0, V.jsx)(EM, {
+function Iye({ index: e, value: t, onChange: n, options: r = ER }) {
+ return /* @__PURE__ */ (0, V.jsx)(TM, {
className: "w-full @lg:w-60",
"aria-label": `媒体来源 ${e + 1}`,
selectedKey: t,
onSelectionChange: (e) => {
e !== null && n(String(e));
},
- children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(DM, {
+ children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(EM, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, V.jsx)(KE, { mark: ER(e) }), t]
+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e) }), t]
}, e))
});
}
-function Bye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, V.jsx)(GM, {
+function Lye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+ return /* @__PURE__ */ (0, V.jsx)(WM, {
label: n,
placeholder: r,
value: e,
@@ -50989,7 +50973,7 @@ function Bye({ value: e, onChange: t, label: n = "Windows 中的对应路径", p
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var DR = [
+var OR = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -51033,13 +51017,13 @@ var DR = [
["star", "收藏"],
["tags", "主题"]
];
-function Vye(e) {
+function Rye(e) {
let t = e === "local" ? "" : Se[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var OR = "auto";
-function Hye({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(e), [l, u] = Vye(n);
+var kR = "auto";
+function zye({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(e), [l, u] = Rye(n);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
ref: i,
variant: "secondary",
@@ -51053,35 +51037,35 @@ function Hye({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, V.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(KE, { mark: e || l }), ((e) => e && DR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: e || l }), ((e) => e && OR.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, V.jsx)(tk, {
+ }), /* @__PURE__ */ (0, V.jsx)($O, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: uM,
- children: /* @__PURE__ */ (0, V.jsxs)(fk, {
+ className: lM,
+ children: /* @__PURE__ */ (0, V.jsxs)(uk, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, V.jsx)(ID, {
+ /* @__PURE__ */ (0, V.jsx)(PD, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, V.jsx)(yk, {
+ /* @__PURE__ */ (0, V.jsx)(_k, {
"aria-label": "候选图标",
- value: s || OR,
- onChange: (e) => c(e === OR ? "" : e),
+ value: s || kR,
+ onChange: (e) => c(e === kR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: DR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(bk, {
- value: e || OR,
+ children: OR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ value: e || kR,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, V.jsx)(KE, { mark: e || l })
- }, e || OR))
+ children: /* @__PURE__ */ (0, V.jsx)(WE, { mark: e || l })
+ }, e || kR))
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -51103,9 +51087,9 @@ function Hye({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Uye = "/api/configuration/push-discovery", Wye = "/api/configuration/push-discovery/secret";
-function Gye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = AE(), l = vM(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {
+var Bye = "/api/configuration/push-discovery", Vye = "/api/configuration/push-discovery/secret";
+function Hye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = OE(), l = _M(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
@@ -51118,21 +51102,21 @@ function Gye({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => K(Uye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));
+ c.run("save", (e) => K(Bye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));
}, g = () => {
- c.run("secret", (e) => K(Wye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));
+ c.run("secret", (e) => K(Vye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));
}, _ = () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看配置」选中自己复制。"));
}, v = `已入库 ${d.queue.ingested} 个文件` + (d.queue.pending ? `,队列里还有 ${d.queue.pending} 条` : ""), y = d.local_running ? `正在监视 ${d.local_roots.join("、")}` : d.local_message || "没有运行";
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "推送发现",
onSubmit: h,
children: [
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "新文件落地就入库",
description: d.enabled ? v : void 0,
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -51142,10 +51126,10 @@ function Gye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "监视本机文件夹",
description: d.enabled && d.watch_local ? y : void 0,
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -51155,9 +51139,9 @@ function Gye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(AE, {
label: "接收 CloudDrive2 通知",
- children: /* @__PURE__ */ (0, V.jsx)($I, {
+ children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -51167,7 +51151,7 @@ function Gye({ initial: e, receipt: t }) {
})
})
}),
- d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(ME, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(AE, {
label: "Webhook 配置",
description: d.config_toml ? "贴进 CloudDrive2「设置 → Webhooks」,需要会员;更换密钥后要重贴。" : d.origin ? "还没有共享密钥,保存配置后生成。" : "要先有 CloudDrive2 能访问的 HTTPS 地址才能生成。",
children: d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
@@ -51177,11 +51161,11 @@ function Gye({ initial: e, receipt: t }) {
}) : null
}) : null
] }),
- d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
children: /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-3",
- children: /* @__PURE__ */ (0, V.jsxs)(GE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {
summary: "查看配置",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "relative",
@@ -51191,16 +51175,16 @@ function Gye({ initial: e, receipt: t }) {
className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",
children: d.config_toml
})
- }), /* @__PURE__ */ (0, V.jsx)(zE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
+ }), /* @__PURE__ */ (0, V.jsx)(LE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
})
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "云端路径前缀" }),
/* @__PURE__ */ (0, V.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -51208,7 +51192,7 @@ function Gye({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -51217,19 +51201,19 @@ function Gye({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(bM, {
- icon: pT,
+ /* @__PURE__ */ (0, V.jsx)(yM, {
+ icon: fT,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -51247,11 +51231,11 @@ function Gye({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ o || c.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(BE, { children: o || c.error })
+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(RE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: g,
disabled: !n.available,
...X(c.busy === "secret"),
@@ -51267,29 +51251,29 @@ function Gye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Kye = (e) => TR.find(([t]) => t === e)?.[1] ?? e, qye = async (e) => (await K(lye, { initial: e })).path, kR = (e = "") => ({
+var Uye = (e) => ER.find(([t]) => t === e)?.[1] ?? e, Wye = async (e) => (await K(oye, { initial: e })).path, AR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Jye(e) {
- let t = e.media_sources?.filter((e) => TR.some(([t]) => t === e.location));
+function Gye(e) {
+ let t = e.media_sources?.filter((e) => ER.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => kR(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => AR(e));
}
-var Yye = (e) => !(e instanceof jS) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Xye({ data: e, receipt: t }) {
+var Kye = (e) => !(e instanceof AS) || e.status !== 400 ? null : e.body?.errors ?? null;
+function qye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, V.jsx)(Zye, {
+ e.editable ? /* @__PURE__ */ (0, V.jsx)(Jye, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -51297,28 +51281,28 @@ function Xye({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- e.editable ? null : /* @__PURE__ */ (0, V.jsx)(Qye, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Gye, {
+ e.editable ? null : /* @__PURE__ */ (0, V.jsx)(Yye, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Hye, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Zye({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Lye({
- initial: () => Jye(e),
- blank: () => kR(),
- pickFolder: qye,
+function Jye({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Pye({
+ initial: () => Gye(e),
+ blank: () => AR(),
+ pickFolder: Wye,
describe: W
- }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = AE();
+ }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = OE();
(0, B.useEffect)(() => {
if (!y) return;
- let e = setTimeout(() => location.assign(y.url), jye);
+ let e = setTimeout(() => location.assign(y.url), Oye);
return () => clearTimeout(e);
}, [y]);
let C = (r) => {
- r.preventDefault(), v(""), S.run("save", (t) => K(mR, {
+ r.preventDefault(), v(""), S.run("save", (t) => K(hR, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -51327,18 +51311,18 @@ function Zye({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, s([]), g(""), t("已保存配置"), b(e);
}, (e) => {
- let t = Yye(e);
+ let t = Kye(e);
s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(W(e));
});
};
- if (y) return /* @__PURE__ */ (0, V.jsx)(FE, {
+ if (y) return /* @__PURE__ */ (0, V.jsx)(NE, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, V.jsx)(LE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, V.jsx)(PE, {
+ /* @__PURE__ */ (0, V.jsx)(ME, {
href: y.url,
size: "small",
children: "进入馆藏"
@@ -51347,20 +51331,20 @@ function Zye({ data: e, receipt: t }) {
]
}) })
});
- let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Iye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Nye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "这台电脑",
onSubmit: C,
- children: [/* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, V.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Rye, {
+ children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Fye, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@ -51369,14 +51353,14 @@ function Zye({ data: e, receipt: t }) {
picking: c === i,
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
- status: w(t.path) ? /* @__PURE__ */ (0, V.jsx)(AR, { online: w(t.path)?.online }) : null,
+ status: w(t.path) ? /* @__PURE__ */ (0, V.jsx)(jR, { online: w(t.path)?.online }) : null,
children: [
- /* @__PURE__ */ (0, V.jsx)(zye, {
+ /* @__PURE__ */ (0, V.jsx)(Iye, {
index: i,
value: t.location,
onChange: (e) => r(i, { location: e })
}),
- /* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(WM, {
className: "min-w-40 flex-1",
"aria-label": `媒体库名称 ${i + 1}`,
maxLength: 80,
@@ -51384,13 +51368,13 @@ function Zye({ data: e, receipt: t }) {
value: t.library,
onChange: (e) => r(i, { library: e })
}),
- /* @__PURE__ */ (0, V.jsx)(Hye, {
+ /* @__PURE__ */ (0, V.jsx)(zye, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Bye, {
+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Lye, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@ -51404,18 +51388,18 @@ function Zye({ data: e, receipt: t }) {
})
]
}),
- T ? /* @__PURE__ */ (0, V.jsx)(Pye, {}) : null,
- E.map((e) => /* @__PURE__ */ (0, V.jsxs)(zE, { children: [
+ T ? /* @__PURE__ */ (0, V.jsx)(jye, {}) : null,
+ E.map((e) => /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, V.jsxs)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(BE, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(zE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(GM, {
+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(WM, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -51425,7 +51409,7 @@ function Zye({ data: e, receipt: t }) {
isInvalid: !!h,
hint: h || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, V.jsx)(NM, {
+ /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: p,
onChange: m,
children: "保存后扫描并补全资料"
@@ -51435,7 +51419,7 @@ function Zye({ data: e, receipt: t }) {
title: "没有保存",
children: _
}) : null
- ] }), /* @__PURE__ */ (0, V.jsx)(RE, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(IE, {
status: e.port_editable === !1 ? void 0 : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
@@ -51445,7 +51429,7 @@ function Zye({ data: e, receipt: t }) {
})]
});
}
-function AR({ online: e }) {
+function jR({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -51469,21 +51453,21 @@ function AR({ online: e }) {
}), "未检测"]
});
}
-function Qye({ data: e }) {
- let t = e.media_sources, n = AE();
- return t ? /* @__PURE__ */ (0, V.jsxs)(FE, {
+function Yye({ data: e }) {
+ let t = e.media_sources, n = OE();
+ return t ? /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, V.jsx)(UE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(WE, {
- term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(KE, { mark: ER(e.location) }), Kye(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, V.jsx)(AR, { online: e.online })]
+ /* @__PURE__ */ (0, V.jsx)(VE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(HE, {
+ term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e.location) }), Uye(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, V.jsx)(jR, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ n.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(BE, { children: n.error })
+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
- onClick: () => void n.run("refresh", (e) => gR(e), (e) => z.setQueryData(hR, e)),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ onClick: () => void n.run("refresh", (e) => _R(e), (e) => z.setQueryData(gR, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -51492,8 +51476,8 @@ function Qye({ data: e }) {
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function $ye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(GM, {
+function Xye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WM, {
id: "access-password",
type: "password",
label: e,
@@ -51506,7 +51490,7 @@ function $ye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, V.jsx)(GM, {
+ }), /* @__PURE__ */ (0, V.jsx)(WM, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -51523,13 +51507,13 @@ function $ye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var ebe = {
+var Zye = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function tbe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)({}), m = (0, B.useRef)(null), h = AE(), g = (e) => {
+function Qye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)({}), m = (0, B.useRef)(null), h = OE(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
@@ -51546,28 +51530,28 @@ function tbe({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof AS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(W(e));
});
- }, _ = ebe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ }, _ = Zye[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
- _ ? /* @__PURE__ */ (0, V.jsx)(zE, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ _ ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(NM, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(GM, {
+ n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(WM, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -51580,7 +51564,7 @@ function tbe({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, V.jsx)($ye, {
+ v ? /* @__PURE__ */ (0, V.jsx)(Xye, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@ -51596,9 +51580,9 @@ function tbe({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ }), v ? /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(h.busy === "save"),
children: "保存配置"
@@ -51607,15 +51591,15 @@ function tbe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/configuration-copy.ts
-var nbe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", rbe = "只填域名,留空用默认地址";
+var $ye = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", ebe = "只填域名,留空用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function ibe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.sites), i = AE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function tbe({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.sites), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -51624,9 +51608,9 @@ function ibe({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, V.jsxs)(LE, { children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: nbe }),
- n.map((e) => /* @__PURE__ */ (0, V.jsx)(GM, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: $ye }),
+ n.map((e) => /* @__PURE__ */ (0, V.jsx)(WM, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -51635,10 +51619,10 @@ function ibe({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: rbe
+ hint: ebe
}, e.key)),
- i.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -51647,19 +51631,19 @@ function ibe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var abe = 2e3, obe = [["quick", "临时链接"], ["named", "命名隧道"]], sbe = {
+var nbe = 2e3, rbe = [["quick", "临时链接"], ["named", "命名隧道"]], ibe = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function cbe({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, B.useState)(t), [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)(t.mode), [l, u] = (0, B.useState)(t.hostname), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)({}), h = AE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+function abe({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, B.useState)(t), [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)(t.mode), [l, u] = (0, B.useState)(t.hostname), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)({}), h = OE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, B.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- gR(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (z.setQueryData(hR, t), i(t.tunnel), o(t.revision));
+ _R(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (z.setQueryData(gR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, abe);
+ }, nbe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -51674,30 +51658,30 @@ function cbe({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof AS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : h.setError(W(e));
});
};
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, V.jsxs)(LE, { children: [
- r.named_available ? /* @__PURE__ */ (0, V.jsx)(eA, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ r.named_available ? /* @__PURE__ */ (0, V.jsx)(Qk, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: tA,
- children: obe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(bk, {
+ className: $k,
+ children: rbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
value: e,
- className: nA,
+ className: eA,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(zE, { children: sbe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(GM, {
+ /* @__PURE__ */ (0, V.jsx)(LE, { children: ibe[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WM, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -51708,7 +51692,7 @@ function cbe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"
- }), /* @__PURE__ */ (0, V.jsx)(GM, {
+ }), /* @__PURE__ */ (0, V.jsx)(WM, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -51728,7 +51712,7 @@ function cbe({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: /* @__PURE__ */ (0, V.jsx)(BE, {
href: r.url,
children: r.url
})
@@ -51738,9 +51722,9 @@ function cbe({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsxs)(RE, {
+ r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsxs)(IE, {
status: r.enabled ? "Peach 重启后自动恢复。" : void 0,
children: [/* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -51756,28 +51740,28 @@ function cbe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var lbe = [
+var obe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function ube({ data: e, receipt: t }) {
+function sbe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(dbe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(cbe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.entry_links ? /* @__PURE__ */ (0, V.jsx)(ibe, {
+ e.entry_links ? /* @__PURE__ */ (0, V.jsx)(tbe, {
initial: e.entry_links,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, V.jsx)(tbe, {
+ e.access ? /* @__PURE__ */ (0, V.jsx)(Qye, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, V.jsx)(cbe, {
+ e.tunnel ? /* @__PURE__ */ (0, V.jsx)(abe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -51785,9 +51769,9 @@ function ube({ data: e, receipt: t }) {
]
});
}
-function dbe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = AE();
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+function cbe({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = OE();
+ return /* @__PURE__ */ (0, V.jsxs)(NE, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -51799,25 +51783,25 @@ function dbe({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: lbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: obe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(LE, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(GM, {
+ i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(WM, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -51831,10 +51815,10 @@ function dbe({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, V.jsx)(BE, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(RE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -51844,10 +51828,10 @@ function dbe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function fbe({ receipt: e, reopenTutorial: t }) {
- let n = TS({
- queryKey: hR,
- queryFn: ({ signal: e }) => gR(e)
+function lbe({ receipt: e, reopenTutorial: t }) {
+ let n = wS({
+ queryKey: gR,
+ queryFn: ({ signal: e }) => _R(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, V.jsx)("div", {
className: "configpage",
@@ -51868,17 +51852,17 @@ function fbe({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, V.jsx)(kye, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, V.jsx)(Eye, { ...i }) : null,
/* @__PURE__ */ (0, V.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, V.jsx)(Xye, { ...i }),
+ /* @__PURE__ */ (0, V.jsx)(qye, { ...i }),
r.downloads ? /* @__PURE__ */ (0, V.jsx)("h2", {
className: "configgroup",
children: "下载"
}) : null,
- r.downloads ? /* @__PURE__ */ (0, V.jsx)(gye, {
+ r.downloads ? /* @__PURE__ */ (0, V.jsx)(pye, {
initial: r.downloads,
receipt: e
}) : null,
@@ -51886,12 +51870,12 @@ function fbe({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, V.jsx)(ube, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, V.jsx)(sbe, { ...i }) : null,
/* @__PURE__ */ (0, V.jsx)("h2", {
className: "configgroup",
children: "维护"
}),
- /* @__PURE__ */ (0, V.jsx)(Sye, {
+ /* @__PURE__ */ (0, V.jsx)(yye, {
...i,
reopenTutorial: t
})
@@ -51900,40 +51884,40 @@ function fbe({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/number-setting.ts
-function jR(e, t, n, r) {
+function MR(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var pbe = (e) => {
+var ube = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function mbe({ openConfiguration: e }) {
- let t = TS({
- queryKey: hR,
- queryFn: ({ signal: e }) => gR(e)
+function dbe({ openConfiguration: e }) {
+ let t = wS({
+ queryKey: gR,
+ queryFn: ({ signal: e }) => _R(e)
}), n = t.data;
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, V.jsxs)(UE, { children: [
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ children: [n ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, V.jsx)(WE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
term: "更新",
- children: pbe(n)
+ children: ube(n)
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "配置读取失败",
children: t.error ? W(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, V.jsx)(RE, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(IE, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: e,
@@ -51944,16 +51928,16 @@ function mbe({ openConfiguration: e }) {
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var MR = (e) => e.map(([e, t, n]) => n ? [
+var NR = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function NR({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function PR({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(l);
return f.current = l, (0, B.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Me(t, n, MR(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Me(t, n, NR(r), i, {
attr: a,
className: o,
text: s
@@ -51971,13 +51955,13 @@ function NR({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function PR({ 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 FR({ 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, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(-1), m = (0, B.useRef)(l);
return m.current = l, (0, B.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = He(MR(n), r, { label: t });
+ e.innerHTML = He(NR(n), r, { label: t });
let i = $e(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -51990,7 +51974,7 @@ function PR({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function hbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function fbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)({
onStep: a,
onSettle: o
@@ -52025,7 +52009,7 @@ function hbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var gbe = [
+var pbe = [
[
"strength",
"强度",
@@ -52052,7 +52036,7 @@ var gbe = [
100
]
];
-function _be({ host: e, spot: i, index: a, glow: o }) {
+function mbe({ host: e, spot: i, index: a, glow: o }) {
let s = t[a], c = (0, B.useRef)(null), l = (0, B.useRef)(null), d = (0, B.useRef)(null), [f, p] = (0, B.useState)("all");
(0, B.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -52091,7 +52075,7 @@ function _be({ host: e, spot: i, index: a, glow: o }) {
children: m
})]
}),
- /* @__PURE__ */ (0, V.jsx)(nT, { name: "chevron-down" })
+ /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "popmenu",
@@ -52130,7 +52114,7 @@ function _be({ host: e, spot: i, index: a, glow: o }) {
})]
});
}
-function vbe({ host: e }) {
+function hbe({ host: e }) {
let t = e.store.value.homeGlow, n = f(t.preset);
return /* @__PURE__ */ (0, V.jsxs)("section", {
"data-glow-setting": "",
@@ -52149,7 +52133,7 @@ function vbe({ host: e }) {
children: d(t.preset)
})]
}),
- /* @__PURE__ */ (0, V.jsx)(oS, {
+ /* @__PURE__ */ (0, V.jsx)(aS, {
store: e.store,
label: "光晕配色"
}),
@@ -52160,7 +52144,7 @@ function vbe({ host: e }) {
}),
/* @__PURE__ */ (0, V.jsx)("div", {
"data-glow-fields": "",
- children: gbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(hbe, {
+ children: pbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(fbe, {
field: r,
label: i,
max: a,
@@ -52182,7 +52166,7 @@ function vbe({ host: e }) {
hidden: n,
children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-glow-stops": "",
- children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(_be, {
+ children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(mbe, {
host: e,
spot: n,
index: r,
@@ -52207,7 +52191,7 @@ function vbe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var ybe = {
+var gbe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -52248,10 +52232,10 @@ var ybe = {
optional: !0,
fallback: 60
}
-}, FR = (e) => `peach.number.${e}`;
-function IR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = ybe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);
- d.current ||= jR(Number(localStorage.getItem(FR(e))), o, s, n && n > 0 ? n : l);
+}, IR = (e) => `peach.number.${e}`;
+function LR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = gbe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);
+ d.current ||= MR(Number(localStorage.getItem(IR(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, B.useState)(n ?? 0), [m, h] = (0, B.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, B.useState)(""), v = (0, B.useRef)(null), y = (0, B.useRef)(i);
y.current = i, (0, B.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -52263,7 +52247,7 @@ function IR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`);
return;
}
- t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(FR(e), String(d.current)), y.current(d.current);
+ t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(IR(e), String(d.current)), y.current(d.current);
}
}, x = (0, B.useRef)(b);
x.current = b, (0, B.useEffect)(() => {
@@ -52278,7 +52262,7 @@ function IR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
p(d.current), h(String(d.current)), y.current(d.current);
return;
}
- t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(FR(e), String(d.current)), p(0), y.current(0);
+ t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(IR(e), String(d.current)), p(0), y.current(0);
}, w = r || n === null;
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-number-setting": "",
@@ -52328,13 +52312,13 @@ function IR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function LR(e) {
- let { mutate: t } = Mj();
+function RR(e) {
+ let { mutate: t } = jj();
return (0, B.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function RR(e, t, n, r) {
+function zR(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -52344,17 +52328,17 @@ function RR(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var bbe = "__home__", zR = (e) => e === "" ? bbe : e;
-function xbe({ host: e }) {
- let t = LR(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, B.useState)(null), [c, l] = (0, B.useState)(!1), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (e, r, i) => {
- let a = RR(n, e, r, i);
+var _be = "__home__", BR = (e) => e === "" ? _be : e;
+function vbe({ host: e }) {
+ let t = RR(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, B.useState)(null), [c, l] = (0, B.useState)(!1), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (e, r, i) => {
+ let a = zR(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]) => zR(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => BR(e) === o) ?? a[0], y = () => {
h.current && De(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -52375,7 +52359,7 @@ function xbe({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", zR(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", BR(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -52407,9 +52391,9 @@ function xbe({ host: e }) {
/* @__PURE__ */ (0, V.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(nT, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, V.jsx)(nT, { name: a ?? "" }),
+ /* @__PURE__ */ (0, V.jsx)(tT, { name: a ?? "" }),
/* @__PURE__ */ (0, V.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -52423,7 +52407,7 @@ function xbe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, V.jsx)(nT, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -52433,7 +52417,7 @@ function xbe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, V.jsx)(nT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -52445,11 +52429,11 @@ function xbe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, V.jsx)(nT, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "eye-off" })
})
]
})]
- }, zR(e))), /* @__PURE__ */ (0, V.jsxs)("div", {
+ }, BR(e))), /* @__PURE__ */ (0, V.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -52465,13 +52449,13 @@ function xbe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(nT, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, V.jsx)(tT, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, V.jsx)(nT, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(nT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -52482,15 +52466,15 @@ function xbe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": zR(e),
+ "data-sidebar-add-option": BR(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(zR(e)), y(), m.current?.focus();
+ s(BR(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, V.jsx)(nT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]
- }, zR(e)))
+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]
+ }, BR(e)))
}) : null]
}), /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -52507,7 +52491,7 @@ function xbe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var BR = [
+var VR = [
["界面", "ri-palette-line"],
["浏览", "ri-layout-grid-line"],
["播放", "ri-play-circle-line"],
@@ -52515,7 +52499,7 @@ var BR = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], Sbe = [
+], ybe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -52524,16 +52508,16 @@ var BR = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Cbe = [["desc", "降序"], ["asc", "升序"]], wbe = [
+], bbe = [["desc", "降序"], ["asc", "升序"]], xbe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], Tbe = [
+], Sbe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], Ebe = [[
+], Cbe = [[
"cover",
"官方封面",
""
@@ -52541,7 +52525,7 @@ var BR = [
"thumbnail",
"预览图",
""
-]], Dbe = [
+]], wbe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -52566,64 +52550,64 @@ var BR = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], Obe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", VR = null, HR = {
+], Tbe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", HR = null, UR = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
-}, UR = 0, WR = null, GR = /* @__PURE__ */ new Set();
-function kbe(e) {
- return GR.add(e), () => {
- GR.delete(e);
+}, WR = 0, GR = null, KR = /* @__PURE__ */ new Set();
+function Ebe(e) {
+ return KR.add(e), () => {
+ KR.delete(e);
};
}
-function Abe() {
- for (let e of [...GR]) e();
+function Dbe() {
+ for (let e of [...KR]) e();
}
-function KR(e) {
- HR = {
- ...HR,
+function qR(e) {
+ UR = {
+ ...UR,
...e
- }, (0, $f.flushSync)(Abe);
+ }, (0, $f.flushSync)(Dbe);
}
-async function jbe(e) {
- if (HR.machine === "summary") return;
+async function Obe(e) {
+ if (UR.machine === "summary") return;
let t = await e.configurable();
- if (HR.open) {
+ if (UR.open) {
if (!t) {
- KR({ machine: "note" });
+ qR({ machine: "note" });
return;
}
try {
- await _R(new AbortController().signal);
+ await vR(new AbortController().signal);
} catch {}
- HR.open && KR({ machine: "summary" });
+ UR.open && qR({ machine: "summary" });
}
}
-function Mbe(e = "") {
- let t = VR;
+function kbe(e = "") {
+ let t = HR;
if (!t) return;
- we(), UR += 1, WR ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = BR.findIndex(([t]) => t === e), r = Sue();
- KR({
+ we(), WR += 1, GR ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let n = VR.findIndex(([t]) => t === e), r = Cue();
+ qR({
open: !0,
closing: !1,
- epoch: HR.epoch + 1,
- tab: n >= 0 ? n : HR.tab
+ epoch: UR.epoch + 1,
+ tab: n >= 0 ? n : UR.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), jbe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Obe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function qR() {
- if (!HR.open || HR.closing) return;
- let e = ++UR;
- KR({ closing: !0 });
+function JR() {
+ if (!UR.open || UR.closing) return;
+ let e = ++WR;
+ qR({ closing: !0 });
let t = () => {
- e !== UR || !HR.closing || (KR({
+ e !== WR || !UR.closing || (qR({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), WR instanceof HTMLElement && document.contains(WR) && WR.focus(), WR = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), GR instanceof HTMLElement && document.contains(GR) && GR.focus(), GR = null);
};
if (matchMedia("(prefers-reduced-motion: reduce)").matches) {
queueMicrotask(t);
@@ -52631,31 +52615,31 @@ function qR() {
}
document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var Nbe = {
- open: Mbe,
- close: qR,
- isOpen: () => HR.open,
+var Abe = {
+ open: kbe,
+ close: JR,
+ isOpen: () => UR.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function Pbe(e) {
- return VR = e, Nbe;
+function jbe(e) {
+ return HR = e, Abe;
}
-function Fbe() {
- let e = (0, B.useSyncExternalStore)(kbe, () => HR);
- return VR ? /* @__PURE__ */ (0, V.jsx)(Rbe, {
- host: VR,
+function Mbe() {
+ let e = (0, B.useSyncExternalStore)(Ebe, () => UR);
+ return HR ? /* @__PURE__ */ (0, V.jsx)(Fbe, {
+ host: HR,
view: e
}) : null;
}
-function Ibe(e) {
+function Nbe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Obe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Tbe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
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 JR = (e) => `settings-tab-${e}`, YR = (e) => e === BR.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function Lbe({ tab: e, epoch: t, onSelect: n }) {
+var YR = (e) => `settings-tab-${e}`, XR = (e) => e === VR.length - 1 ? "machineGroup" : `settings-group-${e}`;
+function Pbe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(e), s = (0, B.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -52683,7 +52667,7 @@ function Lbe({ tab: e, epoch: t, onSelect: n }) {
o.current = e, l.current(s.current[e], t);
}, [e, t]);
let u = (e, t) => {
- let r = BR.length, i = t;
+ let r = VR.length, i = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") i = (t + 1) % r;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") i = (t + r - 1) % r;
else if (e.key === "Home") i = 0;
@@ -52712,11 +52696,11 @@ function Lbe({ tab: e, epoch: t, onSelect: n }) {
role: "presentation",
children: "设置"
}),
- BR.map(([t, r], i) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ VR.map(([t, r], i) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
role: "tab",
- id: JR(i),
- "aria-controls": YR(i),
+ id: YR(i),
+ "aria-controls": XR(i),
"aria-selected": i === e,
tabIndex: i === e ? 0 : -1,
ref: (e) => {
@@ -52727,22 +52711,22 @@ function Lbe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, V.jsx)(Bie, { name: r }), t]
+ children: [/* @__PURE__ */ (0, V.jsx)(Vie, { name: r }), t]
}, t))
]
});
}
-function XR({ index: e, tab: t, children: n }) {
+function ZR({ index: e, tab: t, children: n }) {
return /* @__PURE__ */ (0, V.jsxs)("section", {
"data-setting-group": "",
- id: YR(e),
+ id: XR(e),
role: "tabpanel",
- "aria-labelledby": JR(e),
+ "aria-labelledby": YR(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, V.jsx)("h3", { children: BR[e][0] }), n]
+ children: [/* @__PURE__ */ (0, V.jsx)("h3", { children: VR[e][0] }), n]
});
}
-function ZR({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function QR({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, V.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, V.jsxs)("span", { children: [/* @__PURE__ */ (0, V.jsx)("b", { children: t }), /* @__PURE__ */ (0, V.jsx)("small", {
@@ -52759,7 +52743,7 @@ function ZR({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function QR({ title: e, description: t, kind: n, children: r }) {
+function $R({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -52767,11 +52751,11 @@ function QR({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, V.jsxs)("span", { children: [/* @__PURE__ */ (0, V.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, V.jsx)("small", { children: t }) : t] }), r]
});
}
-var $R = ({ html: e, ...t }) => /* @__PURE__ */ (0, V.jsx)("small", {
+var ez = ({ html: e, ...t }) => /* @__PURE__ */ (0, V.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
-}), ez = () => `${Ke("保存中")}<span>正在保存…</span>`, tz = (e, t) => e instanceof Error && e.message || t;
-function Rbe({ host: e, view: t }) {
+}), tz = () => `${Ke("保存中")}<span>正在保存…</span>`, nz = (e, t) => e instanceof Error && e.message || t;
+function Fbe({ host: e, view: t }) {
(0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -52792,7 +52776,7 @@ function Rbe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (e) => {
- e !== HR.tab && KR({ tab: e });
+ e !== UR.tab && qR({ tab: e });
}, p = () => e.store.save();
return /* @__PURE__ */ (0, V.jsx)("section", {
"data-settings-panel": "",
@@ -52803,9 +52787,9 @@ function Rbe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Ibe,
+ onKeyDown: Nbe,
onClick: (e) => {
- e.target === e.currentTarget && qR();
+ e.target === e.currentTarget && JR();
},
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-settings-card": "",
@@ -52816,19 +52800,19 @@ function Rbe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, V.jsx)("h2", {
id: "settingsTitle",
- children: BR[t.tab][0]
+ children: VR[t.tab][0]
}), /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
id: "settingsClose",
"aria-label": "关闭设置",
- onClick: qR,
+ onClick: JR,
children: /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-x" })
})
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Lbe, {
+ /* @__PURE__ */ (0, V.jsx)(Pbe, {
tab: t.tab,
epoch: d,
onSelect: f
@@ -52837,14 +52821,14 @@ function Rbe({ host: e, view: t }) {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, V.jsxs)(XR, {
+ /* @__PURE__ */ (0, V.jsxs)(ZR, {
index: 0,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "主题",
description: "跟随系统,或固定用浅色、深色。",
- children: /* @__PURE__ */ (0, V.jsx)(NR, {
+ children: /* @__PURE__ */ (0, V.jsx)(PR, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -52872,7 +52856,7 @@ function Rbe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, V.jsx)(ZR, {
+ /* @__PURE__ */ (0, V.jsx)(QR, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -52881,7 +52865,7 @@ function Rbe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, V.jsx)(ZR, {
+ /* @__PURE__ */ (0, V.jsx)(QR, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -52890,44 +52874,44 @@ function Rbe({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, V.jsx)(vbe, { host: e }),
+ /* @__PURE__ */ (0, V.jsx)(hbe, { host: e }),
/* @__PURE__ */ (0, V.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, V.jsxs)("span", { children: [/* @__PURE__ */ (0, V.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(xbe, { host: e })]
+ }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(vbe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Bbe, {
+ /* @__PURE__ */ (0, V.jsx)(Lbe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, V.jsx)(Hbe, {
+ /* @__PURE__ */ (0, V.jsx)(zbe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, V.jsx)(XR, {
+ /* @__PURE__ */ (0, V.jsx)(ZR, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, V.jsx)(Wbe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Vbe, {
host: e,
epoch: d
})
}),
- /* @__PURE__ */ (0, V.jsx)(Gbe, {
+ /* @__PURE__ */ (0, V.jsx)(Hbe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, V.jsx)(XR, {
+ /* @__PURE__ */ (0, V.jsx)(ZR, {
index: 5,
tab: t.tab,
- children: /* @__PURE__ */ (0, V.jsx)(ZR, {
+ children: /* @__PURE__ */ (0, V.jsx)(QR, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -52936,10 +52920,10 @@ function Rbe({ host: e, view: t }) {
onToggle: (t) => e.setCensored(t)
})
}),
- /* @__PURE__ */ (0, V.jsx)(XR, {
+ /* @__PURE__ */ (0, V.jsx)(ZR, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, V.jsx)(qbe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Wbe, {
host: e,
machine: t.machine
})
@@ -52950,7 +52934,7 @@ function Rbe({ host: e, view: t }) {
})
});
}
-function zbe(e, t) {
+function Ibe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = je("arrow-up", "arrow-down", "a", {
@@ -52960,18 +52944,18 @@ function zbe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Bbe({ host: e, tab: t, epoch: n }) {
+function Lbe({ 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, V.jsxs)(XR, {
+ return /* @__PURE__ */ (0, V.jsxs)(ZR, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "每批作品",
description: "首页每次加载的作品数量。",
children: /* @__PURE__ */ (0, V.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, V.jsx)(IR, {
+ children: /* @__PURE__ */ (0, V.jsx)(LR, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -52981,7 +52965,7 @@ function Bbe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "默认排序",
kind: "sort",
description: /* @__PURE__ */ (0, V.jsx)("small", {
@@ -52990,19 +52974,19 @@ function Bbe({ host: e, tab: t, epoch: n }) {
}),
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, V.jsx)(PR, {
+ children: [/* @__PURE__ */ (0, V.jsx)(FR, {
id: "defaultSortSetting",
label: "默认排序",
- options: Sbe,
+ options: ybe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, V.jsx)(PR, {
+ }), /* @__PURE__ */ (0, V.jsx)(FR, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Cbe,
+ options: bbe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -53011,7 +52995,7 @@ function Bbe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => zbe(e, o)
+ decorate: (e) => Ibe(e, o)
})]
})
}),
@@ -53028,29 +53012,29 @@ function Bbe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "JAV 默认封面",
description: "首页、接着看和 Mix 等位置共用;缺图时使用另一种封面。",
- children: /* @__PURE__ */ (0, V.jsx)(NR, {
+ children: /* @__PURE__ */ (0, V.jsx)(PR, {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: Ebe,
+ options: Cbe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = OC(t), i(), e.changed("javImage");
+ r.javImage = kC(t), i(), e.changed("javImage");
}
})
}),
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "视频封面默认大小",
kind: "related",
description: "首页和 JAV 等视频列表共用;小图展示完整封套,大图展示完整正封。",
- children: /* @__PURE__ */ (0, V.jsx)(NR, {
+ children: /* @__PURE__ */ (0, V.jsx)(PR, {
id: "javSizeSetting",
name: "video-size",
legend: "视频封面默认大小",
@@ -53063,7 +53047,7 @@ function Bbe({ host: e, tab: t, epoch: n }) {
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, V.jsx)(ZR, {
+ /* @__PURE__ */ (0, V.jsx)(QR, {
id: "feedAutoScrollSetting",
title: "新作自动滚动",
checked: r.feedAutoScroll,
@@ -53072,7 +53056,7 @@ function Bbe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- Dbe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(Vbe, {
+ wbe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(Rbe, {
host: e,
id: t,
settingKey: n,
@@ -53084,8 +53068,8 @@ function Bbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Vbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = Mj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {
+function Rbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+ let s = jj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {
l(t), Ue(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -53113,28 +53097,28 @@ function Vbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function Hbe({ host: e, tab: t, epoch: n }) {
+function zbe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, V.jsxs)(XR, {
+ return /* @__PURE__ */ (0, V.jsxs)(ZR, {
index: 2,
tab: t,
children: [
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "悬停放大",
description: "转圈完成后进入放大预览。",
children: /* @__PURE__ */ (0, V.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, V.jsx)(IR, {
+ children: /* @__PURE__ */ (0, V.jsx)(LR, {
id: "hoverDelaySetting",
label: "悬停放大",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = jR(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = MR(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
}),
- /* @__PURE__ */ (0, V.jsx)(ZR, {
+ /* @__PURE__ */ (0, V.jsx)(QR, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: r.detailAutoplay,
@@ -53143,7 +53127,7 @@ function Hbe({ host: e, tab: t, epoch: n }) {
r.detailAutoplay = e, i();
}
}),
- /* @__PURE__ */ (0, V.jsx)(ZR, {
+ /* @__PURE__ */ (0, V.jsx)(QR, {
id: "miniplayerSetting",
title: "小窗播放",
checked: r.miniplayer,
@@ -53152,12 +53136,12 @@ function Hbe({ host: e, tab: t, epoch: n }) {
r.miniplayer = t, i(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "快进 / 快退",
description: "卡片预览和详情播放器共用。",
children: /* @__PURE__ */ (0, V.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, V.jsx)(IR, {
+ children: /* @__PURE__ */ (0, V.jsx)(LR, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: r.seekSeconds,
@@ -53167,13 +53151,13 @@ function Hbe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, V.jsx)(Ube, { epoch: n }),
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)(Bbe, { epoch: n }),
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
children: /* @__PURE__ */ (0, V.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, V.jsx)(IR, {
+ children: /* @__PURE__ */ (0, V.jsx)(LR, {
id: "relatedLimitSetting",
label: "相关推荐",
value: r.relatedLimit,
@@ -53186,26 +53170,26 @@ function Hbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Ube({ epoch: e }) {
- let t = TS({
- queryKey: kj,
- queryFn: ({ signal: e }) => jj(e)
- }), n = wue(), r = n.reset;
+function Bbe({ epoch: e }) {
+ let t = wS({
+ queryKey: Oj,
+ queryFn: ({ signal: e }) => Aj(e)
+ }), n = Tue(), r = n.reset;
(0, B.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? ez() : t.isFetching ? Pe("正在读取状态") : n.isError ? nz(tz(n.error, "保存失败")) : t.isError ? nz(`状态未取得:${tz(t.error, String(t.error))}`) : t.data ? nz(Eue(t.data)) : "读取运行状态…";
- return /* @__PURE__ */ (0, V.jsx)(QR, {
+ let i = t.data?.mode || "off", a = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : t.data ? rz(Due(t.data)) : "读取运行状态…";
+ return /* @__PURE__ */ (0, V.jsx)($R, {
title: "视频缩略图采集",
- description: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, V.jsx)($R, {
+ description: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, V.jsx)(ez, {
id: "videoThumbnailState",
"aria-live": "polite",
html: a
})] }),
- children: /* @__PURE__ */ (0, V.jsx)(PR, {
+ children: /* @__PURE__ */ (0, V.jsx)(FR, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: wbe,
+ options: xbe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -53213,26 +53197,26 @@ function Ube({ epoch: e }) {
})
});
}
-function Wbe({ host: e, epoch: t }) {
- let n = e.store.value, r = Mj();
- return /* @__PURE__ */ (0, V.jsx)(QR, {
+function Vbe({ host: e, epoch: t }) {
+ let n = e.store.value, r = jj();
+ return /* @__PURE__ */ (0, V.jsx)($R, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
children: /* @__PURE__ */ (0, V.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, V.jsx)(IR, {
+ children: /* @__PURE__ */ (0, V.jsx)(LR, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = jR(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = MR(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
-function Gbe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = Mj(), o = Mj(), [s, c] = (0, B.useState)("");
+function Hbe({ host: e, tab: t, epoch: n }) {
+ let r = e.store.value, i = jj(), o = jj(), [s, c] = (0, B.useState)("");
(0, B.useEffect)(() => {
c("");
}, [n]);
@@ -53242,22 +53226,22 @@ function Gbe({ host: e, tab: t, epoch: n }) {
typeof t.followInitialDays == "number" && (r.followInitialDays = t.followInitialDays), e.store.save(), c("已保存,适用于尚未开始采集的来源。"), e.receipt("已保存首次采集历史范围");
},
onError: (t) => {
- c(tz(t, "")), e.failure("保存首次采集历史范围", t);
+ c(nz(t, "")), e.failure("保存首次采集历史范围", t);
}
}));
};
- return /* @__PURE__ */ (0, V.jsxs)(XR, {
+ return /* @__PURE__ */ (0, V.jsxs)(ZR, {
index: 4,
tab: t,
children: [
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "首次采集历史范围",
description: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("small", { children: "按发布时间限制新来源首次导入的内容;范围内不足 30 条时补到 30 条。没有日期的条目仍会导入;已有内容不受影响,支持历史分页的来源可手动加载更早。" }), /* @__PURE__ */ (0, V.jsx)("small", {
id: "followInitialDaysState",
"aria-live": "polite",
children: s
})] }),
- children: /* @__PURE__ */ (0, V.jsx)(PR, {
+ children: /* @__PURE__ */ (0, V.jsx)(FR, {
id: "followInitialDaysSetting",
label: "首次采集历史范围",
options: e.followInitialRanges,
@@ -53267,14 +53251,14 @@ function Gbe({ host: e, tab: t, epoch: n }) {
onPick: (e) => l(Number(e))
})
}),
- /* @__PURE__ */ (0, V.jsx)(Kbe, { epoch: n }),
- /* @__PURE__ */ (0, V.jsx)(QR, {
+ /* @__PURE__ */ (0, V.jsx)(Ube, { epoch: n }),
+ /* @__PURE__ */ (0, V.jsx)($R, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
- children: /* @__PURE__ */ (0, V.jsx)(PR, {
+ children: /* @__PURE__ */ (0, V.jsx)(FR, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: Tbe,
+ options: Sbe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
@@ -53286,25 +53270,25 @@ function Gbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Kbe({ epoch: e }) {
- let t = TS({
- queryKey: Oj,
- queryFn: ({ signal: e }) => Aj(e)
- }), n = Cue(), r = n.reset;
+function Ube({ epoch: e }) {
+ let t = wS({
+ queryKey: Dj,
+ queryFn: ({ signal: e }) => kj(e)
+ }), n = wue(), r = n.reset;
(0, B.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? ez() : t.isFetching ? Pe("正在读取状态") : n.isError ? nz(tz(n.error, "保存失败")) : t.isError ? nz(`状态未取得:${tz(t.error, String(t.error))}`) : i ? nz(Tue(i)) : "读取运行状态…";
- return /* @__PURE__ */ (0, V.jsx)(QR, {
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : i ? rz(Eue(i)) : "读取运行状态…";
+ return /* @__PURE__ */ (0, V.jsx)($R, {
title: "关注自动更新",
- description: /* @__PURE__ */ (0, V.jsx)($R, {
+ description: /* @__PURE__ */ (0, V.jsx)(ez, {
id: "followScheduleState",
"aria-live": "polite",
html: o
}),
children: /* @__PURE__ */ (0, V.jsx)("div", {
id: "followScheduleSetting",
- children: /* @__PURE__ */ (0, V.jsx)(IR, {
+ children: /* @__PURE__ */ (0, V.jsx)(LR, {
id: "followScheduleSetting",
label: "关注自动更新",
value: i && !a ? i.enabled ? i.interval_minutes : 0 : null,
@@ -53314,13 +53298,13 @@ function Kbe({ epoch: e }) {
})
});
}
-function qbe({ host: e, machine: t }) {
+function Wbe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, V.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, V.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, V.jsx)(mbe, { openConfiguration: () => {
- qR(), e.openConfiguration();
+ children: /* @__PURE__ */ (0, V.jsx)(dbe, { openConfiguration: () => {
+ JR(), e.openConfiguration();
} })
})
}, "summary") : t === "note" ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -53328,19 +53312,19 @@ function qbe({ host: e, machine: t }) {
dangerouslySetInnerHTML: { __html: Ie("媒体文件夹、端口、代理与更新只能在运行 Peach 服务的那台设备上改:在它的浏览器里打开配置页。", { label: "在服务端设备修改" }) }
}, "note") : /* @__PURE__ */ (0, V.jsx)("div", { id: "machineSettings" }, "none");
}
-function nz(e) {
+function rz(e) {
return e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`);
}
//#endregion
//#region src/react/stats/stats.ts
-var Jbe = "/api/stats", rz = ["stats"], iz = (e) => G(Jbe, e);
-async function Ybe(e) {
+var Gbe = "/api/stats", iz = ["stats"], az = (e) => G(Gbe, e);
+async function Kbe(e) {
await z.fetchQuery({
- queryKey: rz,
- queryFn: () => iz(e)
+ queryKey: iz,
+ queryFn: () => az(e)
});
}
-var az = (e, t) => t ? Math.round(e / t * 100) : 0, Xbe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, oz = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, sz = (e) => (e.max_reached || 0) * 100, Zbe = (e) => e.kind === "online" ? "在线直接观看" : oz(e) < sz(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Qbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, $be = (e) => Math.max(1, ...e) * 1.1, exe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), txe = {
+var oz = (e, t) => t ? Math.round(e / t * 100) : 0, qbe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, sz = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, cz = (e) => (e.max_reached || 0) * 100, Jbe = (e) => e.kind === "online" ? "在线直接观看" : sz(e) < cz(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Ybe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Xbe = (e) => Math.max(1, ...e) * 1.1, Zbe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Qbe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -53348,18 +53332,18 @@ var az = (e, t) => t ? Math.round(e / t * 100) : 0, Xbe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, nxe = (e) => e.map((e) => ({
- name: txe[e.k] ?? e.k,
+}, $be = (e) => e.map((e) => ({
+ name: Qbe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), rxe = {
+})).sort((e, t) => t.value - e.value), exe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, cz = (e, t = {}) => e.map((e) => ({
+}, lz = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), ixe = (e) => cz(e, rxe), axe = [
+})), txe = (e) => lz(e, exe), nxe = [
[
1,
1,
@@ -53395,49 +53379,49 @@ var az = (e, t) => t ? Math.round(e / t * 100) : 0, Xbe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], oxe = (e) => axe.map(([t, n, r]) => ({
+], rxe = (e) => nxe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), sxe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function lz(e) {
- return typeof e == "string" && sxe.includes(e);
+})), ixe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
+function uz(e) {
+ return typeof e == "string" && ixe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var cxe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function uz(e) {
- return typeof e == "string" && cxe.has(e);
-}
+var axe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
function dz(e) {
- return typeof e == "string" && e.startsWith("data-");
+ return typeof e == "string" && axe.has(e);
}
function fz(e) {
+ return typeof e == "string" && e.startsWith("data-");
+}
+function pz(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (uz(n) || dz(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (dz(n) || fz(n)) && (t[n] = e[n]);
return t;
}
-function pz(e) {
+function mz(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, B.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return fz(t);
+ return pz(t);
}
- return typeof e == "object" && !Array.isArray(e) ? fz(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? pz(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function mz(e) {
+function hz(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (uz(n) || dz(n) || lz(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (dz(n) || fz(n) || uz(n)) && (t[n] = e[n]);
return t;
}
-function lxe(e) {
- return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? mz(e.props) : typeof e == "object" && !Array.isArray(e) ? mz(e) : null;
+function oxe(e) {
+ return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? hz(e.props) : typeof e == "object" && !Array.isArray(e) ? hz(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var uxe = [
+var sxe = [
"children",
"width",
"height",
@@ -53447,25 +53431,25 @@ var uxe = [
"title",
"desc"
];
-function hz() {
- return hz = Object.assign ? Object.assign.bind() : function(e) {
+function gz() {
+ return gz = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, hz.apply(null, arguments);
+ }, gz.apply(null, arguments);
}
-function dxe(e, t) {
+function cxe(e, t) {
if (e == null) return {};
- var n, r, i = fxe(e, t);
+ var n, r, i = lxe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function fxe(e, t) {
+function lxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53474,14 +53458,14 @@ function fxe(e, t) {
}
return n;
}
-var gz = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = dxe(e, uxe), d = a || {
+var _z = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = cxe(e, sxe), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = _h("recharts-surface", o);
- return /*#__PURE__*/ B.createElement("svg", hz({}, mz(u), {
+ return /*#__PURE__*/ B.createElement("svg", gz({}, hz(u), {
className: f,
width: r,
height: i,
@@ -53489,26 +53473,26 @@ var gz = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ B.createElement("title", null, c), /*#__PURE__*/ B.createElement("desc", null, l), n);
-}), pxe = ["children", "className"];
-function _z() {
- return _z = Object.assign ? Object.assign.bind() : function(e) {
+}), uxe = ["children", "className"];
+function vz() {
+ return vz = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, _z.apply(null, arguments);
+ }, vz.apply(null, arguments);
}
-function mxe(e, t) {
+function dxe(e, t) {
if (e == null) return {};
- var n, r, i = hxe(e, t);
+ var n, r, i = fxe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function hxe(e, t) {
+function fxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53517,39 +53501,39 @@ function hxe(e, t) {
}
return n;
}
-var vz = /*#__PURE__*/ B.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = mxe(e, pxe), a = _h("recharts-layer", r);
- return /*#__PURE__*/ B.createElement("g", _z({ className: a }, mz(i), { ref: t }), n);
-}), yz = /*#__PURE__*/ (0, B.createContext)(null), gxe = () => (0, B.useContext)(yz);
+var yz = /*#__PURE__*/ B.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = dxe(e, uxe), a = _h("recharts-layer", r);
+ return /*#__PURE__*/ B.createElement("g", vz({ className: a }, hz(i), { ref: t }), n);
+}), bz = /*#__PURE__*/ (0, B.createContext)(null), pxe = () => (0, B.useContext)(bz);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function bz(e) {
+function xz(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var xz = Math.cos, Sz = Math.sin, Cz = Math.sqrt, wz = Math.PI;
-wz / 2;
-var Tz = 2 * wz, Ez = Math.PI, Dz = 2 * Ez, Oz = 1e-6, _xe = Dz - Oz;
-function kz(e) {
+var Sz = Math.cos, Cz = Math.sin, wz = Math.sqrt, Tz = Math.PI;
+Tz / 2;
+var Ez = 2 * Tz, Dz = Math.PI, Oz = 2 * Dz, kz = 1e-6, mxe = Oz - kz;
+function Az(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function vxe(e) {
+function hxe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return kz;
+ if (t > 15) return Az;
let n = 10 ** t;
return function(e) {
this._ += e[0];
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
};
}
-var Az = class {
+var jz = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? kz : vxe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? Az : hxe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -53570,18 +53554,18 @@ var Az = class {
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
- else if (d > Oz) {
- if (!(Math.abs(u * s - c * l) > Oz) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > kz) {
+ if (!(Math.abs(u * s - c * l) > kz) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- let 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((Ez - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > Oz && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
+ let 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((Dz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > kz && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let 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;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > Oz || Math.abs(this._y1 - l) > Oz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % Dz + Dz), d > _xe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > Oz && this._append`A${n},${n},0,${+(d >= Ez)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > kz || Math.abs(this._y1 - l) > kz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % Oz + Oz), d > mxe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > kz && this._append`A${n},${n},0,${+(d >= Dz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -53590,10 +53574,10 @@ var Az = class {
return this._;
}
};
-Az.prototype;
+jz.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function jz(e) {
+function Mz(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -53604,18 +53588,18 @@ function jz(e) {
t = e;
}
return e;
- }, () => new Az(t);
+ }, () => new jz(t);
}
Array.prototype.slice;
-function Mz(e) {
+function Nz(e) {
return typeof e == "object" && "length" in e ? e : Array.from(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js
-function Nz(e) {
+function Pz(e) {
this._context = e;
}
-Nz.prototype = {
+Pz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -53638,33 +53622,33 @@ Nz.prototype = {
}
}
};
-function Pz(e) {
- return new Nz(e);
+function Fz(e) {
+ return new Pz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function Fz(e) {
+function Iz(e) {
return e[0];
}
-function Iz(e) {
+function Lz(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function Lz(e, t) {
- var n = bz(!0), r = null, i = Pz, a = null, o = jz(s);
- e = typeof e == "function" ? e : e === void 0 ? Fz : bz(e), t = typeof t == "function" ? t : t === void 0 ? Iz : bz(t);
+function Rz(e, t) {
+ var n = xz(!0), r = null, i = Fz, a = null, o = Mz(s);
+ e = typeof e == "function" ? e : e === void 0 ? Iz : xz(e), t = typeof t == "function" ? t : t === void 0 ? Lz : xz(t);
function s(s) {
- var c, l = (s = Mz(s)).length, u, d = !1, f;
+ var c, l = (s = Nz(s)).length, u, d = !1, f;
for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
if (f) return a = null, f + "" || null;
}
return s.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : bz(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : xz(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : bz(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : xz(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : bz(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : xz(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -53673,11 +53657,11 @@ function Lz(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function Rz(e, t, n) {
- var r = null, i = bz(!0), a = null, o = Pz, s = null, c = jz(l);
- e = typeof e == "function" ? e : e === void 0 ? Fz : bz(+e), t = typeof t == "function" ? t : bz(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? Iz : bz(+n);
+function zz(e, t, n) {
+ var r = null, i = xz(!0), a = null, o = Fz, s = null, c = Mz(l);
+ e = typeof e == "function" ? e : e === void 0 ? Iz : xz(+e), t = typeof t == "function" ? t : xz(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? Lz : xz(+n);
function l(l) {
- var u, d, f, p = (l = Mz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = Nz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {
if (!(u < p && i(m = l[u], u, l)) === h) {
if (h = !h) d = u, s.areaStart(), s.lineStart();
@@ -53691,20 +53675,20 @@ function Rz(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return Lz().defined(i).curve(o).context(a);
+ return Rz().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : bz(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : xz(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : bz(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : xz(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : bz(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : xz(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : bz(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : xz(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : bz(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : xz(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : bz(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : xz(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -53712,7 +53696,7 @@ function Rz(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : bz(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : xz(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -53721,7 +53705,7 @@ function Rz(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var zz = class {
+var Bz = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -53748,70 +53732,70 @@ var zz = class {
this._x0 = e, this._y0 = t;
}
};
-function yxe(e) {
- return new zz(e, !0);
+function gxe(e) {
+ return new Bz(e, !0);
}
-function bxe(e) {
- return new zz(e, !1);
+function _xe(e) {
+ return new Bz(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var Bz = { draw(e, t) {
- let n = Cz(t / wz);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, Tz);
-} }, xxe = { draw(e, t) {
- let n = Cz(t / 5) / 2;
+var Vz = { draw(e, t) {
+ let n = wz(t / Tz);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, Ez);
+} }, vxe = { draw(e, t) {
+ let n = wz(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, Vz = Cz(1 / 3), Sxe = Vz * 2, Cxe = { draw(e, t) {
- let n = Cz(t / Sxe), r = n * Vz;
+} }, Hz = wz(1 / 3), yxe = Hz * 2, bxe = { draw(e, t) {
+ let n = wz(t / yxe), r = n * Hz;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, wxe = { draw(e, t) {
- let n = Cz(t), r = -n / 2;
+} }, xxe = { draw(e, t) {
+ let n = wz(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, Txe = .8908130915292852, Hz = Sz(wz / 10) / Sz(7 * wz / 10), Exe = Sz(Tz / 10) * Hz, Dxe = -xz(Tz / 10) * Hz, Oxe = { draw(e, t) {
- let n = Cz(t * Txe), r = Exe * n, i = Dxe * n;
+} }, Sxe = .8908130915292852, Uz = Cz(Tz / 10) / Cz(7 * Tz / 10), Cxe = Cz(Ez / 10) * Uz, wxe = -Sz(Ez / 10) * Uz, Txe = { draw(e, t) {
+ let n = wz(t * Sxe), r = Cxe * n, i = wxe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = Tz * t / 5, o = xz(a), s = Sz(a);
+ let a = Ez * t / 5, o = Sz(a), s = Cz(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, Uz = Cz(3), kxe = { draw(e, t) {
- let n = -Cz(t / (Uz * 3));
- e.moveTo(0, n * 2), e.lineTo(-Uz * n, -n), e.lineTo(Uz * n, -n), e.closePath();
-} }, Wz = -.5, Gz = Cz(3) / 2, Kz = 1 / Cz(12), Axe = (Kz / 2 + 1) * 3, jxe = { draw(e, t) {
- let n = Cz(t / Axe), r = n / 2, i = n * Kz, a = r, o = n * Kz + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Wz * r - Gz * i, Gz * r + Wz * i), e.lineTo(Wz * a - Gz * o, Gz * a + Wz * o), e.lineTo(Wz * s - Gz * c, Gz * s + Wz * c), e.lineTo(Wz * r + Gz * i, Wz * i - Gz * r), e.lineTo(Wz * a + Gz * o, Wz * o - Gz * a), e.lineTo(Wz * s + Gz * c, Wz * c - Gz * s), e.closePath();
+} }, Wz = wz(3), Exe = { draw(e, t) {
+ let n = -wz(t / (Wz * 3));
+ e.moveTo(0, n * 2), e.lineTo(-Wz * n, -n), e.lineTo(Wz * n, -n), e.closePath();
+} }, Gz = -.5, Kz = wz(3) / 2, qz = 1 / wz(12), Dxe = (qz / 2 + 1) * 3, Oxe = { draw(e, t) {
+ let n = wz(t / Dxe), r = n / 2, i = n * qz, a = r, o = n * qz + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Gz * r - Kz * i, Kz * r + Gz * i), e.lineTo(Gz * a - Kz * o, Kz * a + Gz * o), e.lineTo(Gz * s - Kz * c, Kz * s + Gz * c), e.lineTo(Gz * r + Kz * i, Gz * i - Kz * r), e.lineTo(Gz * a + Kz * o, Gz * o - Kz * a), e.lineTo(Gz * s + Kz * c, Gz * c - Kz * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Mxe(e, t) {
- let n = null, r = jz(i);
- e = typeof e == "function" ? e : bz(e || Bz), t = typeof t == "function" ? t : bz(t === void 0 ? 64 : +t);
+function kxe(e, t) {
+ let n = null, r = Mz(i);
+ e = typeof e == "function" ? e : xz(e || Vz), t = typeof t == "function" ? t : xz(t === void 0 ? 64 : +t);
function i() {
let i;
if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
}
return i.type = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : bz(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : xz(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : bz(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : xz(+e), i) : t;
}, i.context = function(e) {
return arguments.length ? (n = e ?? null, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js
-function qz() {}
+function Jz() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function Jz(e, t, n) {
+function Yz(e, t, n) {
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
}
-function Yz(e) {
+function Xz(e) {
this._context = e;
}
-Yz.prototype = {
+Xz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -53823,7 +53807,7 @@ Yz.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: Jz(this, this._x1, this._y1);
+ case 3: Yz(this, this._x1, this._y1);
case 2: this._context.lineTo(this._x1, this._y1);
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -53837,22 +53821,22 @@ Yz.prototype = {
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: Jz(this, e, t);
+ default: Yz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Nxe(e) {
- return new Yz(e);
+function Axe(e) {
+ return new Xz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function Xz(e) {
+function Zz(e) {
this._context = e;
}
-Xz.prototype = {
- areaStart: qz,
- areaEnd: qz,
+Zz.prototype = {
+ areaStart: Jz,
+ areaEnd: Jz,
lineStart: function() {
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
},
@@ -53878,20 +53862,20 @@ Xz.prototype = {
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: Jz(this, e, t);
+ default: Yz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Pxe(e) {
- return new Xz(e);
+function jxe(e) {
+ return new Zz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function Zz(e) {
+function Qz(e) {
this._context = e;
}
-Zz.prototype = {
+Qz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -53918,22 +53902,22 @@ Zz.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: Jz(this, e, t);
+ default: Yz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Fxe(e) {
- return new Zz(e);
+function Mxe(e) {
+ return new Qz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function Qz(e) {
+function $z(e) {
this._context = e;
}
-Qz.prototype = {
- areaStart: qz,
- areaEnd: qz,
+$z.prototype = {
+ areaStart: Jz,
+ areaEnd: Jz,
lineStart: function() {
this._point = 0;
},
@@ -53944,30 +53928,30 @@ Qz.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Ixe(e) {
- return new Qz(e);
+function Nxe(e) {
+ return new $z(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function $z(e) {
+function eB(e) {
return e < 0 ? -1 : 1;
}
-function eB(e, t, n) {
+function tB(e, t, n) {
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
- return ($z(a) + $z(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (eB(a) + eB(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function tB(e, t) {
+function nB(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function nB(e, t, n) {
+function rB(e, t, n) {
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
}
-function rB(e) {
+function iB(e) {
this._context = e;
}
-rB.prototype = {
+iB.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -53982,7 +53966,7 @@ rB.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: nB(this, this._t0, tB(this, this._t0));
+ case 3: rB(this, this._t0, nB(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -53997,24 +53981,24 @@ rB.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, nB(this, tB(this, n = eB(this, e, t)), n);
+ this._point = 3, rB(this, nB(this, n = tB(this, e, t)), n);
break;
- default: nB(this, this._t0, n = eB(this, e, t));
+ default: rB(this, this._t0, n = tB(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function iB(e) {
- this._context = new aB(e);
+function aB(e) {
+ this._context = new oB(e);
}
-(iB.prototype = Object.create(rB.prototype)).point = function(e, t) {
- rB.prototype.point.call(this, t, e);
+(aB.prototype = Object.create(iB.prototype)).point = function(e, t) {
+ iB.prototype.point.call(this, t, e);
};
-function aB(e) {
+function oB(e) {
this._context = e;
}
-aB.prototype = {
+oB.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -54028,18 +54012,18 @@ aB.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Lxe(e) {
- return new rB(e);
-}
-function Rxe(e) {
+function Pxe(e) {
return new iB(e);
}
+function Fxe(e) {
+ return new aB(e);
+}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function oB(e) {
+function sB(e) {
this._context = e;
}
-oB.prototype = {
+sB.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -54053,7 +54037,7 @@ oB.prototype = {
var e = this._x, t = this._y, n = e.length;
if (n) {
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
- else for (var r = sB(e), i = sB(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
+ else for (var r = cB(e), i = cB(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -54061,7 +54045,7 @@ oB.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function sB(e) {
+function cB(e) {
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
@@ -54069,15 +54053,15 @@ function sB(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function zxe(e) {
- return new oB(e);
+function Ixe(e) {
+ return new sB(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function cB(e, t) {
+function lB(e, t) {
this._context = e, this._t = t;
}
-cB.prototype = {
+lB.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -54105,78 +54089,78 @@ cB.prototype = {
this._x = e, this._y = t;
}
};
-function Bxe(e) {
- return new cB(e, .5);
+function Lxe(e) {
+ return new lB(e, .5);
}
-function Vxe(e) {
- return new cB(e, 0);
+function Rxe(e) {
+ return new lB(e, 0);
}
-function Hxe(e) {
- return new cB(e, 1);
+function zxe(e) {
+ return new lB(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function lB(e, t) {
+function uB(e, t) {
if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js
-function uB(e) {
+function dB(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Uxe(e, t) {
+function Bxe(e, t) {
return e[t];
}
-function Wxe(e) {
+function Vxe(e) {
let t = [];
return t.key = e, t;
}
-function Gxe() {
- var e = bz([]), t = uB, n = lB, r = Uxe;
+function Hxe() {
+ var e = xz([]), t = dB, n = uB, r = Bxe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Wxe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Vxe), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
- for (o = 0, l = Mz(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = Nz(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
}
return i.keys = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : bz(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : xz(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : bz(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : xz(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? uB : typeof e == "function" ? e : bz(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? dB : typeof e == "function" ? e : xz(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? lB, i) : n;
+ return arguments.length ? (n = e ?? uB, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Kxe(e, t) {
+function Uxe(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- lB(e, t);
+ uB(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function qxe(e, t) {
+function Wxe(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- lB(e, t);
+ uB(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Jxe(e, t) {
+function Gxe(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -54188,53 +54172,53 @@ function Jxe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, lB(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, uB(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function dB(e) {
+function fB(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var Yxe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function fB(e) {
+var Kxe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function pB(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Yxe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Kxe.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function pB(e) {
+function mB(e) {
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
-function mB(e) {
+function hB(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function Xxe(e) {
- return e == null ? "" : hB(e);
+function qxe(e) {
+ return e == null ? "" : gB(e);
}
-function hB(e) {
+function gB(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(hB).join(",");
- if (mB(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(gB).join(",");
+ if (hB(e)) return e.toString();
let t = e + "";
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
-function gB(e) {
- if (Array.isArray(e)) return e.map(pB);
+function _B(e) {
+ if (Array.isArray(e)) return e.map(mB);
if (typeof e == "symbol") return [e];
- e = Xxe(e);
+ e = qxe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -54262,100 +54246,100 @@ function gB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function _B(e, t, n) {
+function vB(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (dB(t)) return n;
+ if (fB(t)) return n;
let r = e[t];
- return r === void 0 ? fB(t) && !Object.hasOwn(e, t) ? _B(e, gB(t), n) : n : r;
+ return r === void 0 ? pB(t) && !Object.hasOwn(e, t) ? vB(e, _B(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = pB(t));
+ typeof t == "number" && (t = mB(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return Zxe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), dB(t)) return n;
+ if (Array.isArray(t)) return Jxe(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), fB(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function Zxe(e, t, n) {
+function Jxe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || dB(t[e])) return n;
+ if (r == null || fB(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var Qxe = 4;
-function vB(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Qxe), n = Math.round(e * t) / t;
+var Yxe = 4;
+function yB(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Yxe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function yB(e) {
+function bB(e) {
var t = [...arguments].slice(1);
return e.reduce((e, n, r) => {
var i = t[r - 1];
- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + vB(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + yB(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var bB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, xB = (e) => typeof e == "number" && e != +e, SB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !xB(e), CB = (e) => Z(e) || typeof e == "string", $xe = 0, wB = (e) => {
- var t = ++$xe;
+var xB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, SB = (e) => typeof e == "number" && e != +e, CB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !SB(e), wB = (e) => Z(e) || typeof e == "string", Xxe = 0, TB = (e) => {
+ var t = ++Xxe;
return `${e || ""}${t}`;
-}, TB = function(e, t) {
+}, EB = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
if (!Z(e) && typeof e != "string") return n;
var i;
- if (SB(e)) {
+ if (CB(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return xB(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, EB = (e) => {
+ return SB(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, DB = (e) => {
if (!Array.isArray(e)) return !1;
for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;
else return !0;
return !1;
};
-function DB(e, t, n) {
- return Z(e) && Z(t) ? vB(e + n * (t - e)) : t;
-}
function OB(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : _B(e, t)) === n);
+ return Z(e) && Z(t) ? yB(e + n * (t - e)) : t;
+}
+function kB(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : vB(e, t)) === n);
}
-var kB = (e) => e == null, AB = (e) => kB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function jB(e) {
+var AB = (e) => e == null, jB = (e) => AB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function MB(e) {
return e != null;
}
-function MB() {}
+function NB() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var eSe = [
+var Zxe = [
"type",
"size",
"sizeType"
];
-function NB() {
- return NB = Object.assign ? Object.assign.bind() : function(e) {
+function PB() {
+ return PB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, NB.apply(null, arguments);
+ }, PB.apply(null, arguments);
}
-function PB(e, t) {
+function FB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54365,30 +54349,30 @@ function PB(e, t) {
}
return n;
}
-function FB(e) {
+function IB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? PB(Object(n), !0).forEach(function(t) {
- tSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PB(Object(n)).forEach(function(t) {
+ t % 2 ? FB(Object(n), !0).forEach(function(t) {
+ Qxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tSe(e, t, n) {
- return (t = nSe(t)) in e ? Object.defineProperty(e, t, {
+function Qxe(e, t, n) {
+ return (t = $xe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nSe(e) {
- var t = rSe(e, "string");
+function $xe(e) {
+ var t = eSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rSe(e, t) {
+function eSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54398,16 +54382,16 @@ function rSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function iSe(e, t) {
+function tSe(e, t) {
if (e == null) return {};
- var n, r, i = aSe(e, t);
+ var n, r, i = nSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function aSe(e, t) {
+function nSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54416,68 +54400,68 @@ function aSe(e, t) {
}
return n;
}
-var IB = {
- symbolCircle: Bz,
- symbolCross: xxe,
- symbolDiamond: Cxe,
- symbolSquare: wxe,
- symbolStar: Oxe,
- symbolTriangle: kxe,
- symbolWye: jxe
-}, oSe = Math.PI / 180, sSe = (e) => IB[`symbol${AB(e)}`] || Bz, cSe = (e, t, n) => {
+var LB = {
+ symbolCircle: Vz,
+ symbolCross: vxe,
+ symbolDiamond: bxe,
+ symbolSquare: xxe,
+ symbolStar: Txe,
+ symbolTriangle: Exe,
+ symbolWye: Oxe
+}, rSe = Math.PI / 180, iSe = (e) => LB[`symbol${jB(e)}`] || Vz, aSe = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * oSe;
+ var r = 18 * rSe;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, lSe = (e, t) => {
- IB[`symbol${AB(e)}`] = t;
-}, LB = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = FB(FB({}, iSe(e, eSe)), {}, {
+}, oSe = (e, t) => {
+ LB[`symbol${jB(e)}`] = t;
+}, RB = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = IB(IB({}, tSe(e, Zxe)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = sSe(a), t = Mxe().type(e).size(cSe(n, r, a))();
+ var e = iSe(a), t = kxe().type(e).size(aSe(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = mz(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", NB({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = hz(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", PB({}, u, {
className: _h("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-LB.registerSymbol = lSe;
+RB.registerSymbol = oSe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var RB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, zB = (e, t) => {
+var zB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, BB = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, B.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- lz(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ uz(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, uSe = (e, t, n) => (r) => (e(t, n, r), null), BB = (e, t, n) => {
+}, sSe = (e, t, n) => (r) => (e(t, n, r), null), VB = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- lz(i) && typeof a == "function" && (r ||= {}, r[i] = uSe(a, t, n));
+ uz(i) && typeof a == "function" && (r ||= {}, r[i] = sSe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function VB(e, t) {
+function HB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54487,30 +54471,30 @@ function VB(e, t) {
}
return n;
}
-function dSe(e) {
+function cSe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? VB(Object(n), !0).forEach(function(t) {
- fSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VB(Object(n)).forEach(function(t) {
+ t % 2 ? HB(Object(n), !0).forEach(function(t) {
+ lSe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fSe(e, t, n) {
- return (t = pSe(t)) in e ? Object.defineProperty(e, t, {
+function lSe(e, t, n) {
+ return (t = uSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pSe(e) {
- var t = mSe(e, "string");
+function uSe(e) {
+ var t = dSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mSe(e, t) {
+function dSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54520,22 +54504,22 @@ function mSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HB(e, t) {
- var n = dSe({}, e), r = t;
+function UB(e, t) {
+ var n = cSe({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function UB() {
- return UB = Object.assign ? Object.assign.bind() : function(e) {
+function WB() {
+ return WB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, UB.apply(null, arguments);
+ }, WB.apply(null, arguments);
}
-function WB(e, t) {
+function GB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54545,30 +54529,30 @@ function WB(e, t) {
}
return n;
}
-function GB(e) {
+function KB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? WB(Object(n), !0).forEach(function(t) {
- hSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WB(Object(n)).forEach(function(t) {
+ t % 2 ? GB(Object(n), !0).forEach(function(t) {
+ fSe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hSe(e, t, n) {
- return (t = gSe(t)) in e ? Object.defineProperty(e, t, {
+function fSe(e, t, n) {
+ return (t = pSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gSe(e) {
- var t = _Se(e, "string");
+function pSe(e) {
+ var t = mSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Se(e, t) {
+function mSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54578,7 +54562,7 @@ function _Se(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KB = 32, vSe = {
+var qB = 32, hSe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -54586,20 +54570,20 @@ var KB = 32, vSe = {
verticalAlign: "middle",
labelStyle: {}
};
-function ySe(e) {
+function gSe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function bSe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = KB / 2, a = KB / 6, o = KB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function _Se(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = qB / 2, a = qB / 6, o = qB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ B.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: ySe(t.payload),
+ strokeDasharray: gSe(t.payload),
x1: 0,
y1: i,
- x2: KB,
+ x2: qB,
y2: i,
className: "recharts-legend-icon"
});
@@ -54609,35 +54593,35 @@ function bSe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${KB}M${2 * o},${i}
+ H${qB}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ B.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${KB / 8}h${KB}v${KB * 3 / 4}h${-KB}z`,
+ d: `M0,${qB / 8}h${qB}v${qB * 3 / 4}h${-qB}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ B.isValidElement(t.legendIcon)) {
- var l = GB({}, t);
+ var l = KB({}, t);
return delete l.legendIcon, /*#__PURE__*/ B.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ B.createElement(LB, {
+ return /*#__PURE__*/ B.createElement(RB, {
fill: s,
cx: i,
cy: i,
- size: KB,
+ size: qB,
sizeType: "diameter",
type: c
});
}
-function xSe(e) {
+function vSe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: KB,
- height: KB
+ width: qB,
+ height: qB
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -54653,20 +54637,20 @@ function xSe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? GB({}, s) : {};
+ var p = typeof s == "object" ? KB({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ B.createElement("li", UB({
+ return /*#__PURE__*/ B.createElement("li", WB({
className: f,
style: l,
key: `legend-item-${r}`
- }, BB(e, t, r)), /*#__PURE__*/ B.createElement(gz, {
+ }, VB(e, t, r)), /*#__PURE__*/ B.createElement(_z, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ B.createElement(bSe, {
+ }, /*#__PURE__*/ B.createElement(_Se, {
data: t,
iconType: o,
inactiveColor: a
@@ -54676,8 +54660,8 @@ function xSe(e) {
}, m));
});
}
-var SSe = (e) => {
- var t = HB(e, vSe), { payload: n, layout: r, align: i } = t;
+var ySe = (e) => {
+ var t = UB(e, hSe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -54687,11 +54671,11 @@ var SSe = (e) => {
return /*#__PURE__*/ B.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ B.createElement(xSe, UB({}, t, { payload: n })));
+ }, /*#__PURE__*/ B.createElement(vSe, WB({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function CSe(e, t) {
+function bSe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -54701,72 +54685,72 @@ function CSe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function wSe(e, t) {
+function xSe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function qB(e) {
+function JB(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function TSe(e) {
+function SSe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function JB(e) {
- return e != null && typeof e != "function" && TSe(e.length);
+function YB(e) {
+ return e != null && typeof e != "function" && SSe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function ESe(e) {
+function CSe(e) {
return function(t) {
- return _B(t, e);
+ return vB(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function YB(e) {
+function XB(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function DSe(e) {
+function wSe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function OSe(e) {
+function TSe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function XB(e) {
+function ZB(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var kSe = "[object RegExp]", ZB = "[object String]", QB = "[object Number]", $B = "[object Boolean]", eV = "[object Arguments]", ASe = "[object Symbol]", jSe = "[object Date]", MSe = "[object Map]", NSe = "[object Set]", PSe = "[object Array]", FSe = "[object ArrayBuffer]", ISe = "[object Object]", LSe = "[object DataView]", RSe = "[object Uint8Array]", zSe = "[object Uint8ClampedArray]", BSe = "[object Uint16Array]", VSe = "[object Uint32Array]", HSe = "[object Int8Array]", USe = "[object Int16Array]", WSe = "[object Int32Array]", GSe = "[object Float32Array]", KSe = "[object Float64Array]", tV = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var ESe = "[object RegExp]", QB = "[object String]", $B = "[object Number]", eV = "[object Boolean]", tV = "[object Arguments]", DSe = "[object Symbol]", OSe = "[object Date]", kSe = "[object Map]", ASe = "[object Set]", jSe = "[object Array]", MSe = "[object ArrayBuffer]", NSe = "[object Object]", PSe = "[object DataView]", FSe = "[object Uint8Array]", ISe = "[object Uint8ClampedArray]", LSe = "[object Uint16Array]", RSe = "[object Uint32Array]", zSe = "[object Int8Array]", BSe = "[object Int16Array]", VSe = "[object Int32Array]", HSe = "[object Float32Array]", USe = "[object Float64Array]", nV = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function qSe(e) {
- return tV.Buffer !== void 0 && tV.Buffer.isBuffer(e);
+function WSe(e) {
+ return nV.Buffer !== void 0 && nV.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function nV(e, t) {
+function GSe(e, t) {
return rV(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
function rV(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (YB(e)) return e;
+ if (XB(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
@@ -54791,8 +54775,8 @@ function rV(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
for (let a of e) t.add(rV(a, void 0, n, r, i));
return t;
}
- if (qSe(e)) return e.subarray();
- if (DSe(e)) {
+ if (WSe(e)) return e.subarray();
+ if (wSe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
for (let a = 0; a < e.length; a++) t[a] = rV(e[a], a, n, r, i);
@@ -54834,36 +54818,36 @@ function rV(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
return e;
}
function iV(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...OSe(t)];
+ let a = [...Object.keys(t), ...TSe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
(c == null || c.writable) && (e[s] = rV(t[s], s, n, r, i));
}
}
function aV(e) {
- switch (XB(e)) {
- case eV:
- case PSe:
- case FSe:
- case LSe:
- case $B:
+ switch (ZB(e)) {
+ case tV:
case jSe:
- case GSe:
- case KSe:
+ case MSe:
+ case PSe:
+ case eV:
+ case OSe:
case HSe:
case USe:
- case WSe:
- case MSe:
- case QB:
- case ISe:
+ case zSe:
+ case BSe:
+ case VSe:
case kSe:
+ case $B:
case NSe:
- case ZB:
+ case ESe:
case ASe:
- case RSe:
- case zSe:
- case BSe:
- case VSe: return !0;
+ case QB:
+ case DSe:
+ case FSe:
+ case ISe:
+ case LSe:
+ case RSe: return !0;
default: return !1;
}
}
@@ -54893,21 +54877,21 @@ function lV(e, t, n) {
function uV(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return JSe(e, t, n, r, i);
+ case "object": return KSe(e, t, n, r, i);
case "function": return Object.keys(t).length > 0 ? uV(e, { ...t }, n, r, i) : sV(e, t);
default: return cV(e) && i ? typeof t != "string" || t === "" : sV(e, t);
}
}
-function JSe(e, t, n, r, i = !1) {
+function KSe(e, t, n, r, i = !1) {
if (t == null) return !0;
if (Array.isArray(t)) return dV(e, t, n, r);
- if (t instanceof Map) return YSe(e, t, n, r);
- if (t instanceof Set) return XSe(e, t, n, r);
+ if (t instanceof Map) return qSe(e, t, n, r);
+ if (t instanceof Set) return JSe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) YB(e) && (e = Object(e));
+ if (i) XB(e) && (e = Object(e));
else {
- let t = XB(e);
+ let t = ZB(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -54923,7 +54907,7 @@ function JSe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function YSe(e, t, n, r) {
+function qSe(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
@@ -54947,7 +54931,7 @@ function dV(e, t, n, r) {
}
return !0;
}
-function XSe(e, t, n, r) {
+function JSe(e, t, n, r) {
return t.size === 0 || e instanceof Set && dV([...e], [...t], n, r);
}
//#endregion
@@ -54957,28 +54941,28 @@ function fV(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function ZSe(e) {
+function YSe(e) {
return e = oV(e), (t) => fV(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function QSe(e, t) {
- return nV(e, (n, r, i, a) => {
+function XSe(e, t) {
+ return GSe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (XB(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (ZB(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
return a.set(e, t), iV(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
+ case $B:
case QB:
- case ZB:
- case $B: {
+ case eV: {
let t = new e.constructor(e?.valueOf());
return iV(t, e), t;
}
- case eV: {
+ case tV: {
let t = {};
return iV(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
@@ -54989,70 +54973,70 @@ function QSe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function $Se(e) {
- return QSe(e);
+function ZSe(e) {
+ return XSe(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var eCe = /^(?:0|[1-9]\d*)$/;
+var QSe = /^(?:0|[1-9]\d*)$/;
function pV(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return eCe.test(e);
+ case "string": return QSe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function tCe(e) {
- return typeof e == "object" && !!e && XB(e) === "[object Arguments]";
+function $Se(e) {
+ return typeof e == "object" && !!e && ZB(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function nCe(e, t) {
+function eCe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && fB(t) && !(t in Object(e)) ? gB(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && pB(t) && !(t in Object(e)) ? _B(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = pB(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || tCe(r)) && pV(t) && Number(t) < r.length)) return !1;
+ let t = mB(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || $Se(r)) && pV(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function rCe(e, t) {
+function tCe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = pB(e);
+ case "number": e = mB(e);
}
- return t = $Se(t), function(n) {
- let r = _B(n, e);
- return r === void 0 ? nCe(n, e) : t === void 0 ? r === void 0 : fV(r, t);
+ return t = ZSe(t), function(n) {
+ let r = vB(n, e);
+ return r === void 0 ? eCe(n, e) : t === void 0 ? r === void 0 : fV(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
function mV(e) {
- if (e == null) return qB;
+ if (e == null) return JB;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? rCe(e[0], e[1]) : ZSe(e);
- default: return ESe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? tCe(e[0], e[1]) : YSe(e);
+ default: return CSe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function iCe(e) {
+function nCe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function hV(e, t = qB) {
- return JB(e) ? CSe(Array.from(e), wSe(mV(t), 1)).map(iCe) : [];
+function hV(e, t = JB) {
+ return YB(e) ? bSe(Array.from(e), xSe(mV(t), 1)).map(nCe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
@@ -55061,7 +55045,7 @@ function gV(e, t, n) {
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var aCe = /* @__PURE__ */ xt(((e) => {
+var rCe = /* @__PURE__ */ xt(((e) => {
var t = Ot(), n = Uh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -55106,53 +55090,53 @@ var aCe = /* @__PURE__ */ xt(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), oCe = /* @__PURE__ */ xt(((e, t) => {
- t.exports = aCe();
-})), _V = /*#__PURE__*/ (0, B.createContext)(null), sCe = oCe(), cCe = (e) => e, vV = () => {
+})), iCe = /* @__PURE__ */ xt(((e, t) => {
+ t.exports = rCe();
+})), _V = /*#__PURE__*/ (0, B.createContext)(null), aCe = iCe(), oCe = (e) => e, vV = () => {
var e = (0, B.useContext)(_V);
- return e ? e.store.dispatch : cCe;
-}, yV = () => {}, lCe = () => yV, uCe = (e, t) => e === t;
+ return e ? e.store.dispatch : oCe;
+}, yV = () => {}, sCe = () => yV, cCe = (e, t) => e === t;
function Q(e) {
var t = (0, B.useContext)(_V), n = (0, B.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
} : yV, [t, e]);
- return (0, sCe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : lCe, t ? t.store.getState : yV, t ? t.store.getState : yV, n, uCe);
+ return (0, aCe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : sCe, t ? t.store.getState : yV, t ? t.store.getState : yV, n, cCe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function dCe(e, t = `expected a function, instead received ${typeof e}`) {
+function lCe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function fCe(e, t = `expected an object, instead received ${typeof e}`) {
+function uCe(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function pCe(e, t = "expected all items to be functions, instead received the following types: ") {
+function dCe(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
var bV = (e) => Array.isArray(e) ? e : [e];
-function mCe(e) {
+function fCe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return pCe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return dCe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function hCe(e, t) {
+function pCe(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var gCe = class {
+var mCe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, _Ce = typeof WeakRef < "u" ? WeakRef : gCe, vCe = 0, xV = 1;
+}, hCe = typeof WeakRef < "u" ? WeakRef : mCe, gCe = 0, xV = 1;
function SV() {
return {
- s: vCe,
+ s: gCe,
v: void 0,
o: null,
p: null
@@ -55180,7 +55164,7 @@ function CV(e, t = {}) {
if (t.s === xV) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new _Ce(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new hCe(c) : c;
}
return s.s = xV, s.v = c, c;
}
@@ -55190,21 +55174,21 @@ function CV(e, t = {}) {
a = 0;
}, o;
}
-function yCe(e, ...t) {
+function _Ce(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), dCe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ typeof o == "object" && (a = o, o = e.pop()), lCe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
let { memoize: s, memoizeOptions: c = [], argsMemoize: l = CV, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = bV(c), p = bV(u), m = mCe(e), h = s(function() {
+ }, f = bV(c), p = bV(u), m = fCe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = hCe(m, arguments);
+ let e = pCe(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -55226,14 +55210,14 @@ function yCe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ yCe(CV), bCe = Object.assign((e, t = $) => {
- fCe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ _Ce(CV), vCe = Object.assign((e, t = $) => {
+ uCe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => bCe });
+}, { withTypes: () => vCe });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function xCe(e, t = 1) {
+function yCe(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -55245,14 +55229,14 @@ function xCe(e, t = 1) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
function wV(e, t, n) {
- return cV(n) && (typeof t == "number" && JB(n) && pV(t) && t < n.length || typeof t == "string" && t in n) ? sV(n[t], e) : !1;
+ return cV(n) && (typeof t == "number" && YB(n) && pV(t) && t < n.length || typeof t == "string" && t in n) ? sV(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
function TV(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var SCe = (e, t, n) => {
+var bCe = (e, t, n) => {
if (e !== t) {
let r = TV(e), i = TV(t);
if (r === i && r === 0) {
@@ -55262,15 +55246,15 @@ var SCe = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, CCe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, wCe = /^\w*$/;
-function TCe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || mB(e) ? !0 : typeof e == "string" && (wCe.test(e) || !CCe.test(e)) || t != null && Object.hasOwn(t, e);
+}, xCe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, SCe = /^\w*$/;
+function CCe(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || hB(e) ? !0 : typeof e == "string" && (SCe.test(e) || !xCe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function ECe(e, t, n, r) {
+function wCe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = JB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = YB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -55278,16 +55262,16 @@ function ECe(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || TCe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || CCe(e) ? e : {
key: e,
- path: gB(e)
+ path: _B(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = SCe(e.criteria[r], t.criteria[r], n[r]);
+ let i = bCe(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -55297,18 +55281,18 @@ function ECe(e, t, n, r) {
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
function EV(e, ...t) {
let n = t.length;
- return n > 1 && wV(e, t[0], t[1]) ? t = [] : n > 2 && wV(t[0], t[1], t[2]) && (t = [t[0]]), ECe(e, xCe(t), ["asc"]);
+ return n > 1 && wV(e, t[0], t[1]) ? t = [] : n > 2 && wV(t[0], t[1], t[2]) && (t = [t[0]]), wCe(e, yCe(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var DV = (e) => e.legend.settings, DCe = (e) => e.legend.size, OCe = $([(e) => e.legend.payload, DV], (e, t) => {
+var DV = (e) => e.legend.settings, TCe = (e) => e.legend.size, ECe = $([(e) => e.legend.payload, DV], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
return n ? EV(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function kCe() {
- return Q(OCe);
+function DCe() {
+ return Q(ECe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
@@ -55431,7 +55415,7 @@ function FV(e, t, n) {
[jV]: m
};
}
-function ACe(e) {
+function OCe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
if (n(void 0, { type: NV.INIT }) === void 0) throw Error(AV(12));
@@ -55446,7 +55430,7 @@ function IV(e) {
}
let r = Object.keys(n), i;
try {
- ACe(n);
+ OCe(n);
} catch (e) {
i = e;
}
@@ -55464,7 +55448,7 @@ function IV(e) {
function LV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function jCe(...e) {
+function kCe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
throw Error(AV(15));
@@ -55491,7 +55475,7 @@ var UV = Object, WV = UV.getPrototypeOf, GV = "constructor", KV = "prototype", q
function QV(e) {
return e ? eH(e) || oH(e) || !!e[BV] || !!e[GV]?.[BV] || sH(e) || cH(e) : !1;
}
-var MCe = UV[KV][GV].toString(), $V = /* @__PURE__ */ new WeakMap();
+var ACe = UV[KV][GV].toString(), $V = /* @__PURE__ */ new WeakMap();
function eH(e) {
if (!e || !lH(e)) return !1;
let t = WV(e);
@@ -55500,7 +55484,7 @@ function eH(e) {
if (n === Object) return !0;
if (!uH(n)) return !1;
let r = $V.get(n);
- return r === void 0 && (r = Function.toString.call(n), $V.set(n, r)), r === MCe;
+ return r === void 0 && (r = Function.toString.call(n), $V.set(n, r)), r === ACe;
}
function tH(e, t, n = !0) {
nH(e) === 0 ? (n ? Reflect.ownKeys(e) : UV.keys(e)).forEach((n) => {
@@ -55514,11 +55498,11 @@ function nH(e) {
var rH = (e, t, n = nH(e)) => n === 2 ? e.has(t) : UV[KV].hasOwnProperty.call(e, t), iH = (e, t, n = nH(e)) => n === 2 ? e.get(t) : e[t], aH = (e, t, n, r = nH(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function NCe(e, t) {
+function jCe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
var oH = Array.isArray, sH = (e) => e instanceof Map, cH = (e) => e instanceof Set, lH = (e) => typeof e == "object", uH = (e) => typeof e == "function", dH = (e) => typeof e == "boolean";
-function PCe(e) {
+function MCe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
@@ -55560,10 +55544,10 @@ function hH(e, t = !1) {
hH(t, !0);
}, !1), e);
}
-function FCe() {
+function NCe() {
HV(2);
}
-var gH = { [XV]: FCe };
+var gH = { [XV]: NCe };
function _H(e) {
return e === null || !lH(e) || UV.isFrozen(e);
}
@@ -55572,7 +55556,7 @@ function SH(e) {
let t = xH[e];
return t || HV(0, e), t;
}
-var CH = (e) => !!xH[e], wH, TH = () => wH, ICe = (e, t) => ({
+var CH = (e) => !!xH[e], wH, TH = () => wH, PCe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -55587,13 +55571,13 @@ function EH(e, t) {
t && (e.patchPlugin_ = SH(yH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function DH(e) {
- OH(e), e.drafts_.forEach(LCe), e.drafts_ = null;
+ OH(e), e.drafts_.forEach(FCe), e.drafts_ = null;
}
function OH(e) {
e === wH && (wH = e.parent_);
}
-var kH = (e) => wH = ICe(wH, e);
-function LCe(e) {
+var kH = (e) => wH = PCe(wH, e);
+function FCe(e) {
let t = e[VV];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -55605,7 +55589,7 @@ function AH(e, t) {
let { patchPlugin_: r } = t;
r && r.generateReplacementPatches_(n[VV].base_, e, t);
} else e = jH(t, n);
- return RCe(t, e, !0), DH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === zV ? void 0 : e;
+ return ICe(t, e, !0), DH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === zV ? void 0 : e;
}
function jH(e, t) {
if (_H(t)) return t;
@@ -55620,13 +55604,13 @@ function jH(e, t) {
}
return n.copy_;
}
-function RCe(e, t, n = !1) {
+function ICe(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && hH(t, n);
}
function MH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var NH = (e, t) => e.scope_ === t, zCe = [];
+var NH = (e, t) => e.scope_ === t, LCe = [];
function PH(e, t, n, r) {
let i = fH(e), a = e.type_;
if (r !== void 0 && iH(i, r, a) === t) {
@@ -55642,10 +55626,10 @@ function PH(e, t, n, r) {
}
});
}
- let o = e.draftLocations_.get(t) ?? zCe;
+ let o = e.draftLocations_.get(t) ?? LCe;
for (let e of o) aH(i, e, n, a);
}
-function BCe(e, t, n) {
+function RCe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
if (!i || !NH(i, r)) return;
@@ -55664,7 +55648,7 @@ function FH(e, t) {
MH(e);
}
}
-function VCe(e, t, n) {
+function zCe(e, t, n) {
let { scope_: r } = e;
if (ZV(n)) {
let i = n[VV];
@@ -55684,7 +55668,7 @@ function IH(e, t, n) {
} else QV(i) && IH(i, t, n);
}), e);
}
-function HCe(e, t) {
+function BCe(e, t) {
let n = oH(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : TH(),
@@ -55709,10 +55693,10 @@ var LH = {
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
let i = fH(e);
- if (!rH(i, t, e.type_)) return WCe(e, i, t);
+ if (!rH(i, t, e.type_)) return HCe(e, i, t);
let a = i[t];
- if (e.finalized_ || !QV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && PCe(t)) return a;
- if (a === zH(e.base_, t) || UCe(e, t, a)) {
+ if (e.finalized_ || !QV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && MCe(t)) return a;
+ if (a === zH(e.base_, t) || VCe(e, t, a)) {
HH(e);
let n = e.type_ === 1 ? +t : t, r = UH(e.scope_, a, e, n);
return e.copy_[n] = r;
@@ -55731,10 +55715,10 @@ var LH = {
if (!e.modified_) {
let r = zH(fH(e), t), i = r?.[VV];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (NCe(n, r) && (n !== void 0 || rH(e.base_, t, e.type_))) return !0;
+ if (jCe(n, r) && (n !== void 0 || rH(e.base_, t, e.type_))) return !0;
HH(e), VH(e);
}
- return e.copy_[t] === n && (n !== void 0 || rH(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), VCe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || rH(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), zCe(e, t, n), !0);
},
deleteProperty(e, t) {
return HH(e), zH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), VH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
@@ -55774,10 +55758,10 @@ function zH(e, t) {
let n = e[VV];
return (n ? fH(n) : e)[t];
}
-function UCe(e, t, n) {
+function VCe(e, t, n) {
return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !QV(n) || n[VV] ? !1 : e.baseRefs_.has(n);
}
-function WCe(e, t, n) {
+function HCe(e, t, n) {
let r = BH(t, n);
return r ? XV in r ? r[XV] : r.get?.call(e.draft_) : void 0;
}
@@ -55796,7 +55780,7 @@ function VH(e) {
function HH(e) {
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), mH(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var GCe = class {
+var UCe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
if (uH(e) && !uH(t)) {
@@ -55879,8 +55863,8 @@ var GCe = class {
}
};
function UH(e, t, n, r) {
- let [i, a] = sH(t) ? SH(vH).proxyMap_(t, n) : cH(t) ? SH(vH).proxySet_(t, n) : HCe(t, n);
- return (n?.scope_ ?? TH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? BCe(n, a, r) : a.callbacks_.push(function(e) {
+ let [i, a] = sH(t) ? SH(vH).proxyMap_(t, n) : cH(t) ? SH(vH).proxySet_(t, n) : BCe(t, n);
+ return (n?.scope_ ?? TH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? RCe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
@@ -55901,13 +55885,13 @@ function GH(e) {
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var KH = new GCe().produce;
+var KH = new UCe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
function qH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var KCe = qH(), qCe = qH, JCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+var WCe = qH(), GCe = qH, KCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
if (arguments.length !== 0) return typeof arguments[0] == "object" ? LV : LV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
@@ -55950,23 +55934,23 @@ function XH(e) {
function ZH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function YCe(e) {
+function qCe(e) {
return typeof e == "boolean";
}
-var XCe = () => function(e) {
+var JCe = () => function(e) {
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new YH();
- return t && (YCe(t) ? a.push(KCe) : a.push(qCe(t.extraArgument))), a;
+ return t && (qCe(t) ? a.push(WCe) : a.push(GCe(t.extraArgument))), a;
}, QH = "RTK_autoBatch", $H = () => (e) => ({
payload: e,
meta: { [QH]: !0 }
}), eU = (e) => (t) => {
setTimeout(t, e);
-}, ZCe = (e, t) => (n) => {
+}, YCe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
}, tU = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? ZCe(window.requestAnimationFrame, 100) : eU(10) : e.type === "callback" ? e.queueNotification : eU(e.timeout), l = () => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? YCe(window.requestAnimationFrame, 100) : eU(10) : e.type === "callback" ? e.queueNotification : eU(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -55984,23 +55968,23 @@ var XCe = () => function(e) {
}
}
});
-}, QCe = (e) => function(t) {
+}, XCe = (e) => function(t) {
let { autoBatch: n = !0 } = t ?? {}, r = new YH(e);
return n && r.push(tU(typeof n == "object" ? n : void 0)), r;
};
-function $Ce(e) {
- let t = XCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function ZCe(e) {
+ let t = JCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
else if (PV(n)) c = IV(n);
else throw Error(kU(1));
let l;
l = typeof r == "function" ? r(t) : t();
let u = LV;
- i && (u = JCe({
+ i && (u = KCe({
trace: !1,
...typeof i == "object" && i
}));
- let d = QCe(jCe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ let d = XCe(kCe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
return FV(c, o, p);
}
function nU(e) {
@@ -56033,12 +56017,12 @@ function nU(e) {
r
];
}
-function ewe(e) {
+function QCe(e) {
return typeof e == "function";
}
-function twe(e, t) {
+function $Ce(e, t) {
let [n, r, i] = nU(t), a;
- if (ewe(e)) a = () => XH(e());
+ if (QCe(e)) a = () => XH(e());
else {
let t = XH(e);
a = () => t;
@@ -56066,20 +56050,20 @@ function twe(e, t) {
}
return o.getInitialState = a, o;
}
-var nwe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", rwe = (e = 21) => {
+var ewe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", twe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += nwe[Math.random() * 64 | 0];
+ for (; n--;) t += ewe[Math.random() * 64 | 0];
return t;
-}, iwe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function awe(e, t) {
+}, nwe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function rwe(e, t) {
return `${e}/${t}`;
}
-function owe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[iwe];
+function iwe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[nwe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
if (!n) throw Error(kU(11));
- let i = (typeof e.reducers == "function" ? e.reducers(cwe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ let i = (typeof e.reducers == "function" ? e.reducers(owe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -56107,17 +56091,17 @@ function owe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: awe(n, r),
+ type: rwe(n, r),
createNotation: typeof e.reducers == "function"
};
- uwe(a) ? fwe(o, a, s, t) : lwe(o, a, s);
+ cwe(a) ? uwe(o, a, s, t) : swe(o, a, s);
});
function c() {
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? nU(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return twe(e.initialState, (e) => {
+ return $Ce(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -56139,7 +56123,7 @@ function owe({ creators: e } = {}) {
function i(t = l) {
return ZH(ZH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = swe(a, t, () => ZH(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = awe(a, t, () => ZH(d, t, m), n);
return r;
});
}
@@ -56173,15 +56157,15 @@ function owe({ creators: e } = {}) {
return g;
};
}
-function swe(e, t, n, r) {
+function awe(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var rU = /* @__PURE__ */ owe();
-function cwe() {
+var rU = /* @__PURE__ */ iwe();
+function owe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -56205,21 +56189,21 @@ function cwe() {
asyncThunk: e
};
}
-function lwe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function swe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !dwe(r)) throw Error(kU(17));
+ if (n && !lwe(r)) throw Error(kU(17));
a = r.reducer, o = r.prepare;
} else a = r;
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? JH(e, o) : JH(e));
}
-function uwe(e) {
+function cwe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function dwe(e) {
+function lwe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function fwe({ type: e, reducerName: t }, n, r, i) {
+function uwe({ type: e, reducerName: t }, n, r, i) {
if (!i) throw Error(kU(18));
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
@@ -56230,9 +56214,9 @@ function fwe({ type: e, reducerName: t }, n, r, i) {
});
}
function iU() {}
-var pwe = "task", aU = "listener", oU = "completed", sU = "cancelled", mwe = `task-${sU}`, hwe = `task-${oU}`, cU = `${aU}-${sU}`, gwe = `${aU}-${oU}`, lU = class {
+var dwe = "task", aU = "listener", oU = "completed", sU = "cancelled", fwe = `task-${sU}`, pwe = `task-${oU}`, cU = `${aU}-${sU}`, mwe = `${aU}-${oU}`, lU = class {
constructor(e) {
- this.code = e, this.message = `${pwe} ${sU} (reason: ${e})`;
+ this.code = e, this.message = `${dwe} ${sU} (reason: ${e})`;
}
code;
name = "TaskAbortError";
@@ -56255,7 +56239,7 @@ function hU(e, t) {
n = dU;
});
}
-var _we = async (e, t) => {
+var hwe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -56272,13 +56256,13 @@ var _we = async (e, t) => {
}, gU = (e) => (t) => fU(hU(e, t).then((t) => (mU(e), t))), _U = (e) => {
let t = gU(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: vU } = Object, yU = {}, bU = "listenerMiddleware", vwe = (e, t) => {
+}, { assign: vU } = Object, yU = {}, bU = "listenerMiddleware", gwe = (e, t) => {
let n = (t) => pU(e, () => t.abort(e.reason));
return (r, i) => {
uU(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = _we(async () => {
+ let o = hwe(async () => {
mU(e), mU(a.signal);
let t = await r({
pause: gU(a.signal),
@@ -56286,15 +56270,15 @@ var _we = async (e, t) => {
signal: a.signal
});
return mU(a.signal), t;
- }, () => a.abort(hwe));
+ }, () => a.abort(pwe));
return i?.autoJoin && t.push(o.catch(dU)), {
result: gU(e)(o),
cancel() {
- a.abort(mwe);
+ a.abort(fwe);
}
};
};
-}, ywe = (e, t) => {
+}, _we = (e, t) => {
let n = async (n, r) => {
mU(t);
let i = () => {}, a = [new Promise((t, r) => {
@@ -56335,7 +56319,7 @@ var _we = async (e, t) => {
}, SU = /* @__PURE__ */ vU((e) => {
let { type: t, predicate: n, effect: r } = xU(e);
return {
- id: rwe(),
+ id: twe(),
effect: r,
type: t,
predicate: n,
@@ -56351,7 +56335,7 @@ var _we = async (e, t) => {
e.pending.forEach((e) => {
e.abort(cU);
});
-}, bwe = (e, t) => () => {
+}, vwe = (e, t) => () => {
for (let e of t.keys()) wU(e);
e.clear();
}, TU = (e, t, n) => {
@@ -56362,7 +56346,7 @@ var _we = async (e, t) => {
throw e;
}, 0);
}
-}, EU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/add`), { withTypes: () => EU }), xwe = /* @__PURE__ */ JH(`${bU}/removeAll`), DU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/remove`), { withTypes: () => DU }), Swe = (...e) => {
+}, EU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/add`), { withTypes: () => EU }), ywe = /* @__PURE__ */ JH(`${bU}/removeAll`), DU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/remove`), { withTypes: () => DU }), bwe = (...e) => {
console.error(`${bU}/error`, ...e);
}, OU = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
@@ -56371,7 +56355,7 @@ var _we = async (e, t) => {
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = Swe } = e;
+ }, { extra: a, onError: o = bwe } = e;
uU(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
e.unsubscribe(), t?.cancelActive && wU(e);
@@ -56386,7 +56370,7 @@ var _we = async (e, t) => {
};
vU(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = ywe(c, u.signal), f = [];
+ let u = new AbortController(), d = _we(c, u.signal), f = [];
try {
e.pending.add(u), r(e), await Promise.resolve(e.effect(n, vU({}, s, {
getOriginalState: l,
@@ -56396,7 +56380,7 @@ var _we = async (e, t) => {
pause: gU(u.signal),
extra: a,
signal: u.signal,
- fork: vwe(u.signal, f),
+ fork: gwe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
@@ -56416,14 +56400,14 @@ var _we = async (e, t) => {
} catch (e) {
e instanceof lU || TU(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(gwe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(mwe), i(e), e.pending.delete(u);
}
- }, d = bwe(t, n);
+ }, d = vwe(t, n);
return {
middleware: (e) => (n) => (r) => {
if (!RV(r)) return n(r);
if (EU.match(r)) return c(r.payload);
- if (xwe.match(r)) {
+ if (ywe.match(r)) {
d();
return;
}
@@ -56488,7 +56472,7 @@ var AU = rU({
e.scale = t.payload;
}
}
-}), { setMargin: Cwe, setLayout: wwe, setChartSize: Twe, setScale: Ewe } = AU.actions, Dwe = AU.reducer;
+}), { setMargin: xwe, setLayout: Swe, setChartSize: Cwe, setScale: wwe } = AU.actions, Twe = AU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
function jU(e, t, n) {
@@ -56518,26 +56502,26 @@ function FU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? PU(Object(n), !0).forEach(function(t) {
- Owe(e, t, n[t]);
+ Ewe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Owe(e, t, n) {
- return (t = kwe(t)) in e ? Object.defineProperty(e, t, {
+function Ewe(e, t, n) {
+ return (t = Dwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kwe(e) {
- var t = Awe(e, "string");
+function Dwe(e) {
+ var t = Owe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Awe(e, t) {
+function Owe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56548,9 +56532,9 @@ function Awe(e, t) {
return (t === "string" ? String : Number)(e);
}
function IU(e, t, n) {
- return kB(e) || kB(t) ? n : CB(t) ? _B(e, t, n) : typeof t == "function" ? t(e) : n;
+ return AB(e) || AB(t) ? n : wB(t) ? vB(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var jwe = (e, t, n) => {
+var kwe = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return FU(FU({}, e), {}, { [a]: e[a] + (r || 0) });
@@ -56566,7 +56550,7 @@ var jwe = (e, t, n) => {
var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
- return h = p === "angleAxis" && a && a.length >= 2 ? bB(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? xB(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
var n = r ? r.indexOf(e) : e, i = o.map(n);
return MU(i) ? {
coordinate: i + h,
@@ -56574,7 +56558,7 @@ var jwe = (e, t, n) => {
offset: h,
index: t
} : null;
- }).filter(jB) : c && l ? l.map((e, t) => {
+ }).filter(MB) : c && l ? l.map((e, t) => {
var n = o.map(e);
return MU(n) ? {
coordinate: n + h,
@@ -56582,7 +56566,7 @@ var jwe = (e, t, n) => {
index: t,
offset: h
} : null;
- }).filter(jB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(MB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
return MU(n) ? {
coordinate: n + h,
@@ -56590,7 +56574,7 @@ var jwe = (e, t, n) => {
index: t,
offset: h
} : null;
- }).filter(jB) : o.domain().map((e, t) => {
+ }).filter(MB) : o.domain().map((e, t) => {
var n = o.map(e);
return MU(n) ? {
coordinate: n + h,
@@ -56598,12 +56582,12 @@ var jwe = (e, t, n) => {
index: t,
offset: h
} : null;
- }).filter(jB);
+ }).filter(MB);
}, BU = (e, t) => {
if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, Mwe = {
+}, Awe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -56611,16 +56595,16 @@ var jwe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {
var s = e[o]?.[r];
if (s != null) {
- var c = s[1], l = s[0], u = xB(c) ? l : c;
+ var c = s[1], l = s[0], u = SB(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Kxe,
- none: lB,
- silhouette: qxe,
- wiggle: Jxe,
+ expand: Uxe,
+ none: uB,
+ silhouette: Wxe,
+ wiggle: Gxe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -56628,14 +56612,14 @@ var jwe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {
var o = e[a]?.[r];
if (o != null) {
- var s = xB(o[1]) ? o[0] : o[1];
+ var s = SB(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, Nwe = (e, t, n) => {
- var r = Mwe[n] ?? lB, i = Gxe().keys(t).value((e, t) => Number(IU(e, t, 0))).order(uB).offset(r)(e);
+}, jwe = (e, t, n) => {
+ var r = Awe[n] ?? uB, i = Hxe().keys(t).value((e, t) => Number(IU(e, t, 0))).order(dB).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
var a = IU(e[i], t[r], 0);
@@ -56649,20 +56633,20 @@ function VU(e) {
function HU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !kB(i[t.dataKey])) {
- var s = OB(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !AB(i[t.dataKey])) {
+ var s = kB(n, "value", i[t.dataKey]);
if (s) return s.coordinate + r / 2;
}
return n != null && n[a] ? n[a].coordinate + r / 2 : null;
}
- var c = IU(i, kB(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = IU(i, AB(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
var UU = (e) => {
var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
var s = IU(a, t.dataKey, t.scale.domain()[o]);
- if (kB(s)) return null;
+ if (AB(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
}, WU = (e) => {
@@ -56672,15 +56656,15 @@ var UU = (e) => {
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, Pwe = (e) => {
+}, Mwe = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, Fwe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], Iwe = (e, t, n) => {
- if (e != null) return Fwe(Object.keys(e).reduce((r, i) => {
+}, Nwe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], Pwe = (e, t, n) => {
+ if (e != null) return Nwe(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = Pwe(jU(r, t, n));
+ var i = Mwe(jU(r, t, n));
return !MU(i[0]) || !MU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
@@ -56712,10 +56696,10 @@ function YU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var Lwe = (e, t) => {
+var Fwe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, Rwe = (e, t) => t === "centric" ? e.angle : e.radius, XU = (e) => e.layout.width, ZU = (e) => e.layout.height, zwe = (e) => e.layout.scale, QU = (e) => e.layout.margin, $U = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), eW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), Bwe = "data-recharts-item-index";
+}, Iwe = (e, t) => t === "centric" ? e.angle : e.radius, XU = (e) => e.layout.width, ZU = (e) => e.layout.height, Lwe = (e) => e.layout.scale, QU = (e) => e.layout.margin, $U = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), eW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), Rwe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
function tW(e, t) {
@@ -56732,26 +56716,26 @@ function nW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? tW(Object(n), !0).forEach(function(t) {
- Vwe(e, t, n[t]);
+ zwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vwe(e, t, n) {
- return (t = Hwe(t)) in e ? Object.defineProperty(e, t, {
+function zwe(e, t, n) {
+ return (t = Bwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Hwe(e) {
- var t = Uwe(e, "string");
+function Bwe(e) {
+ var t = Vwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Uwe(e, t) {
+function Vwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56761,30 +56745,30 @@ function Uwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Wwe = (e) => e.brush.height;
-function Gwe(e) {
+var Hwe = (e) => e.brush.height;
+function Uwe(e) {
return eW(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function Kwe(e) {
+function Wwe(e) {
return eW(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function qwe(e) {
+function Gwe(e) {
return $U(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function Jwe(e) {
+function Kwe(e) {
return $U(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
var rW = $([
XU,
ZU,
QU,
+ Hwe,
+ Uwe,
Wwe,
Gwe,
Kwe,
- qwe,
- Jwe,
DV,
- DCe
+ TCe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
@@ -56793,13 +56777,13 @@ var rW = $([
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = jwe(d, c, l);
+ d.bottom += r, d = kwe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
return nW(nW({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), Ywe = $(rW, (e) => ({
+}), qwe = $(rW, (e) => ({
x: e.left,
y: e.top,
width: e.width,
@@ -56809,7 +56793,7 @@ var rW = $([
y: 0,
width: e,
height: t
-})), Xwe = /*#__PURE__*/ (0, B.createContext)(null), aW = () => (0, B.useContext)(Xwe) != null, oW = (e) => e.brush, sW = $([
+})), Jwe = /*#__PURE__*/ (0, B.createContext)(null), aW = () => (0, B.useContext)(Jwe) != null, oW = (e) => e.brush, sW = $([
oW,
rW,
QU
@@ -56821,7 +56805,7 @@ var rW = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function Zwe(e, t, { signal: n, edges: r } = {}) {
+function Ywe(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -56846,11 +56830,11 @@ function Zwe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function Qwe(e, t = 0, n = {}) {
+function Xwe(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = Zwe(function(...t) {
+ let s, c = null, l = Ywe(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -56859,9 +56843,9 @@ function Qwe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function $we(e, t = 0, n = {}) {
+function Zwe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return Qwe(e, t, {
+ return Xwe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -56888,26 +56872,26 @@ var cW = function(e, t) {
height: -1
}
}, uW = (e, t, n) => {
- var { width: r = lW.width, height: i = lW.height, aspect: a, maxHeight: o } = n, s = SB(r) ? e : Number(r), c = SB(i) ? t : Number(i);
+ var { width: r = lW.width, height: i = lW.height, aspect: a, maxHeight: o } = n, s = CB(r) ? e : Number(r), c = CB(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, eTe = {
+}, Qwe = {
width: 0,
height: 0,
overflow: "visible"
-}, tTe = {
+}, $we = {
width: 0,
overflowX: "visible"
-}, nTe = {
+}, eTe = {
height: 0,
overflowY: "visible"
-}, rTe = {}, iTe = (e) => {
- var { width: t, height: n } = e, r = SB(t), i = SB(n);
- return r && i ? eTe : r ? tTe : i ? nTe : rTe;
+}, tTe = {}, nTe = (e) => {
+ var { width: t, height: n } = e, r = CB(t), i = CB(n);
+ return r && i ? Qwe : r ? $we : i ? eTe : tTe;
};
-function aTe(e) {
+function rTe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
return i === void 0 && a === void 0 ? (i = lW.width, a = lW.height) : i === void 0 ? i = r && r > 0 ? void 0 : lW.width : a === void 0 && (a = r && r > 0 ? void 0 : lW.height), {
width: i,
@@ -56939,26 +56923,26 @@ function pW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? fW(Object(n), !0).forEach(function(t) {
- oTe(e, t, n[t]);
+ iTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oTe(e, t, n) {
- return (t = sTe(t)) in e ? Object.defineProperty(e, t, {
+function iTe(e, t, n) {
+ return (t = aTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sTe(e) {
- var t = cTe(e, "string");
+function aTe(e) {
+ var t = oTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cTe(e, t) {
+function oTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56969,7 +56953,7 @@ function cTe(e, t) {
return (t === "string" ? String : Number)(e);
}
var mW = /*#__PURE__*/ (0, B.createContext)(lW.initialDimension);
-function lTe(e) {
+function sTe(e) {
return NU(e.width) && NU(e.height);
}
function hW(e) {
@@ -56977,9 +56961,9 @@ function hW(e) {
width: n,
height: r
}), [n, r]);
- return lTe(i) ? /*#__PURE__*/ B.createElement(mW.Provider, { value: i }, t) : null;
+ return sTe(i) ? /*#__PURE__*/ B.createElement(mW.Provider, { value: i }, t) : null;
}
-var gW = () => (0, B.useContext)(mW), uTe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+var gW = () => (0, B.useContext)(mW), cTe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { aspect: n, initialDimension: r = lW.initialDimension, width: i, height: a, minWidth: o = lW.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = lW.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, B.useRef)(null), g = (0, B.useRef)();
g.current = p, (0, B.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, B.useState)({
@@ -56995,7 +56979,7 @@ var gW = () => (0, B.useContext)(mW), uTe = /*#__PURE__*/ (0, B.forwardRef)((e,
});
}, []);
(0, B.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return MB;
+ if (h.current == null || typeof ResizeObserver > "u") return NB;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -57003,7 +56987,7 @@ var gW = () => (0, B.useContext)(mW), uTe = /*#__PURE__*/ (0, B.forwardRef)((e,
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = $we(e, u, {
+ u > 0 && (e = Zwe(e, u, {
trailing: !0,
leading: !1
}));
@@ -57031,7 +57015,7 @@ var gW = () => (0, B.useContext)(mW), uTe = /*#__PURE__*/ (0, B.forwardRef)((e,
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ B.createElement("div", { style: iTe({
+ }, /*#__PURE__*/ B.createElement("div", { style: nTe({
width: i,
height: a
}) }, /*#__PURE__*/ B.createElement(hW, {
@@ -57041,7 +57025,7 @@ var gW = () => (0, B.useContext)(mW), uTe = /*#__PURE__*/ (0, B.forwardRef)((e,
}), _W = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = gW();
if (NU(n.width) && NU(n.height)) return e.children;
- var { width: r, height: i } = aTe({
+ var { width: r, height: i } = rTe({
width: e.width,
height: e.height,
aspect: e.aspect
@@ -57054,7 +57038,7 @@ var gW = () => (0, B.useContext)(mW), uTe = /*#__PURE__*/ (0, B.forwardRef)((e,
return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(hW, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ B.createElement(uTe, dW({}, e, {
+ }, e.children) : /*#__PURE__*/ B.createElement(cTe, dW({}, e, {
width: r,
height: i,
ref: t
@@ -57073,14 +57057,14 @@ function vW(e) {
};
}
var yW = () => {
- var e = aW(), t = Q(Ywe), n = Q(sW), r = Q(oW)?.padding;
+ var e = aW(), t = Q(qwe), n = Q(sW), r = Q(oW)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, dTe = {
+}, lTe = {
top: 0,
bottom: 0,
left: 0,
@@ -57088,16 +57072,16 @@ var yW = () => {
width: 0,
height: 0,
brushBottom: 0
-}, bW = () => Q(rW) ?? dTe, xW = () => Q(XU), SW = () => Q(ZU), fTe = () => Q((e) => e.layout.margin), CW = (e) => e.layout.layoutType, wW = () => Q(CW), TW = () => {
+}, bW = () => Q(rW) ?? lTe, xW = () => Q(XU), SW = () => Q(ZU), uTe = () => Q((e) => e.layout.margin), CW = (e) => e.layout.layoutType, wW = () => Q(CW), TW = () => {
var e = wW();
if (e === "horizontal" || e === "vertical") return e;
}, EW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, DW = () => Q(EW), pTe = () => wW() !== void 0, OW = (e) => {
+}, DW = () => Q(EW), dTe = () => wW() !== void 0, OW = (e) => {
var t = vV(), n = aW(), { width: r, height: i } = e, a = gW(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, B.useEffect)(() => {
- !n && NU(o) && NU(s) && t(Twe({
+ !n && NU(o) && NU(s) && t(Cwe({
width: o,
height: s
}));
@@ -57118,7 +57102,7 @@ function PW(e) {
function FW(e) {
return e ? LW(e) || Array.isArray(e) || !!e[AW] || !!e.constructor?.[AW] || HW(e) || UW(e) : !1;
}
-var mTe = Object.prototype.constructor.toString(), IW = /* @__PURE__ */ new WeakMap();
+var fTe = Object.prototype.constructor.toString(), IW = /* @__PURE__ */ new WeakMap();
function LW(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
@@ -57127,7 +57111,7 @@ function LW(e) {
if (n === Object) return !0;
if (typeof n != "function") return !1;
let r = IW.get(n);
- return r === void 0 && (r = Function.toString.call(n), IW.set(n, r)), r === mTe;
+ return r === void 0 && (r = Function.toString.call(n), IW.set(n, r)), r === fTe;
}
function RW(e, t, n = !0) {
zW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
@@ -57145,7 +57129,7 @@ function VW(e, t, n) {
let r = zW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function hTe(e, t) {
+function pTe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
function HW(e) {
@@ -57192,23 +57176,23 @@ function KW(e, t = !1) {
delete: qW
}), Object.freeze(e), t && Object.values(e).forEach((e) => KW(e, !0)), e);
}
-function gTe() {
+function mTe() {
MW(2);
}
-var qW = { value: gTe };
+var qW = { value: mTe };
function JW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var _Te = {};
+var hTe = {};
function YW(e) {
- let t = _Te[e];
+ let t = hTe[e];
return t || MW(0, e), t;
}
var XW;
function ZW() {
return XW;
}
-function vTe(e, t) {
+function gTe(e, t) {
return {
drafts_: [],
parent_: e,
@@ -57221,15 +57205,15 @@ function QW(e, t) {
t && (YW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function $W(e) {
- eG(e), e.drafts_.forEach(yTe), e.drafts_ = null;
+ eG(e), e.drafts_.forEach(_Te), e.drafts_ = null;
}
function eG(e) {
e === XW && (XW = e.parent_);
}
function tG(e) {
- return XW = vTe(XW, e);
+ return XW = gTe(XW, e);
}
-function yTe(e) {
+function _Te(e) {
let t = e[jW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -57269,7 +57253,7 @@ function iG(e, t, n, r, i, a, o) {
function aG(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && KW(t, n);
}
-function bTe(e, t) {
+function vTe(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : ZW(),
@@ -57291,7 +57275,7 @@ var oG = {
get(e, t) {
if (t === jW) return e;
let n = WW(e);
- if (!BW(n, t)) return xTe(e, n, t);
+ if (!BW(n, t)) return yTe(e, n, t);
let r = n[t];
return e.finalized_ || !FW(r) ? r : r === cG(e.base_, t) ? (dG(e), e.copy_[t] = fG(r, e)) : r;
},
@@ -57307,7 +57291,7 @@ var oG = {
if (!e.modified_) {
let r = cG(WW(e), t), i = r?.[jW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (hTe(n, r) && (n !== void 0 || BW(e.base_, t))) return !0;
+ if (pTe(n, r) && (n !== void 0 || BW(e.base_, t))) return !0;
dG(e), uG(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
@@ -57347,7 +57331,7 @@ function cG(e, t) {
let n = e[jW];
return (n ? WW(n) : e)[t];
}
-function xTe(e, t, n) {
+function yTe(e, t, n) {
let r = lG(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
@@ -57366,7 +57350,7 @@ function uG(e) {
function dG(e) {
e.copy_ ||= GW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var STe = class {
+var bTe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -57409,7 +57393,7 @@ var STe = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- FW(e) || MW(8), PW(e) && (e = CTe(e));
+ FW(e) || MW(8), PW(e) && (e = xTe(e));
let t = tG(this), n = fG(e, void 0);
return n[jW].isManual_ = !0, eG(t), n;
}
@@ -57446,10 +57430,10 @@ var STe = class {
}
};
function fG(e, t) {
- let n = HW(e) ? YW("MapSet").proxyMap_(e, t) : UW(e) ? YW("MapSet").proxySet_(e, t) : bTe(e, t);
+ let n = HW(e) ? YW("MapSet").proxyMap_(e, t) : UW(e) ? YW("MapSet").proxySet_(e, t) : vTe(e, t);
return (t ? t.scope_ : ZW()).drafts_.push(n), n;
}
-function CTe(e) {
+function xTe(e) {
return PW(e) || MW(10, e), pG(e);
}
function pG(e) {
@@ -57463,7 +57447,7 @@ function pG(e) {
VW(n, e, pG(t));
}, r), t && (t.finalized_ = !1), n;
}
-new STe().produce;
+new bTe().produce;
function mG(e) {
return e;
}
@@ -57512,24 +57496,24 @@ var hG = rU({
prepare: $H()
}
}
-}), { setLegendSize: gG, setLegendSettings: wTe, addLegendPayload: _G, replaceLegendPayload: vG, removeLegendPayload: yG } = hG.actions, TTe = hG.reducer, ETe = /* @__PURE__ */ xt(((e) => {
+}), { setLegendSize: gG, setLegendSettings: STe, addLegendPayload: _G, replaceLegendPayload: vG, removeLegendPayload: yG } = hG.actions, CTe = hG.reducer, wTe = /* @__PURE__ */ xt(((e) => {
var t = Ot();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ xt(((e, t) => {
- t.exports = ETe();
+ t.exports = wTe();
})))();
-function DTe(e) {
+function TTe(e) {
e();
}
-function OTe() {
+function ETe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- DTe(() => {
+ TTe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -57555,7 +57539,7 @@ var bG = {
notify() {},
get: () => []
};
-function kTe(e, t) {
+function DTe(e, t) {
let n, r = bG, i = 0, a = !1;
function o(e) {
u();
@@ -57574,7 +57558,7 @@ function kTe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = OTe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = ETe());
}
function d() {
i--, n && i === 0 && (n(), n = void 0, r.clear(), r = bG);
@@ -57596,11 +57580,11 @@ function kTe(e, t) {
};
return m;
}
-var ATe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, jTe = typeof navigator < "u" && navigator.product === "ReactNative", MTe = ATe || jTe ? B.useLayoutEffect : B.useEffect;
+var OTe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, kTe = typeof navigator < "u" && navigator.product === "ReactNative", ATe = OTe || kTe ? B.useLayoutEffect : B.useEffect;
function xG(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function NTe(e, t) {
+function jTe(e, t) {
if (xG(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
@@ -57608,32 +57592,32 @@ function NTe(e, t) {
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !xG(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var PTe = /* @__PURE__ */ Symbol.for("react-redux-context"), FTe = typeof globalThis < "u" ? globalThis : {};
-function ITe() {
+var MTe = /* @__PURE__ */ Symbol.for("react-redux-context"), NTe = typeof globalThis < "u" ? globalThis : {};
+function PTe() {
if (!B.createContext) return {};
- let e = FTe[PTe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
+ let e = NTe[MTe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
return t || (t = B.createContext(null), e.set(B.createContext, t)), t;
}
-var LTe = /* @__PURE__ */ ITe();
-function RTe(e) {
+var FTe = /* @__PURE__ */ PTe();
+function ITe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = B.useMemo(() => {
- let e = kTe(i);
+ let e = DTe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = B.useMemo(() => i.getState(), [i]);
- MTe(() => {
+ ATe(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || LTe;
+ let s = n || FTe;
return /* @__PURE__ */ B.createElement(s.Provider, { value: a }, t);
}
-var zTe = RTe, BTe = /* @__PURE__ */ new Set([
+var LTe = ITe, RTe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -57656,19 +57640,19 @@ var zTe = RTe, BTe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function VTe(e, t) {
+function zTe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
function SG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (BTe.has(n)) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (RTe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!NTe(e[n], t[n])) return !1;
- } else if (!VTe(e[n], t[n])) return !1;
+ if (!jTe(e[n], t[n])) return !1;
+ } else if (!zTe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var HTe = ["contextPayload"];
+var BTe = ["contextPayload"];
function CG() {
return CG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57692,26 +57676,26 @@ function TG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? wG(Object(n), !0).forEach(function(t) {
- UTe(e, t, n[t]);
+ VTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UTe(e, t, n) {
- return (t = WTe(t)) in e ? Object.defineProperty(e, t, {
+function VTe(e, t, n) {
+ return (t = HTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WTe(e) {
- var t = GTe(e, "string");
+function HTe(e) {
+ var t = UTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GTe(e, t) {
+function UTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57721,16 +57705,16 @@ function GTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function KTe(e, t) {
+function WTe(e, t) {
if (e == null) return {};
- var n, r, i = qTe(e, t);
+ var n, r, i = GTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qTe(e, t) {
+function GTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57739,24 +57723,24 @@ function qTe(e, t) {
}
return n;
}
-function JTe(e) {
+function KTe(e) {
return e.value;
}
-function YTe(e) {
- var { contextPayload: t } = e, n = KTe(e, HTe), r = gV(t, e.payloadUniqBy, JTe), i = TG(TG({}, n), {}, { payload: r });
- return /*#__PURE__*/ B.isValidElement(e.content) ? /*#__PURE__*/ B.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ B.createElement(e.content, i) : /*#__PURE__*/ B.createElement(SSe, i);
+function qTe(e) {
+ var { contextPayload: t } = e, n = WTe(e, BTe), r = gV(t, e.payloadUniqBy, KTe), i = TG(TG({}, n), {}, { payload: r });
+ return /*#__PURE__*/ B.isValidElement(e.content) ? /*#__PURE__*/ B.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ B.createElement(e.content, i) : /*#__PURE__*/ B.createElement(ySe, i);
}
-function XTe(e, t, n, r, i, a) {
+function JTe(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), TG(TG({}, l), u);
}
-function ZTe(e) {
+function YTe(e) {
var t = vV();
return (0, B.useEffect)(() => {
- t(wTe(e));
+ t(STe(e));
}, [t, e]), null;
}
-function QTe(e) {
+function XTe(e) {
var t = vV();
return (0, B.useEffect)(() => (t(gG(e)), () => {
t(gG({
@@ -57765,10 +57749,10 @@ function QTe(e) {
}));
}), [t, e]), null;
}
-function $Te(e, t, n, r) {
+function ZTe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var eEe = {
+var QTe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -57776,28 +57760,28 @@ var eEe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function tEe(e) {
- var t = HB(e, eEe), n = kCe(), r = gxe(), i = fTe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = kV([n]), d = xW(), f = SW();
+function $Te(e) {
+ var t = UB(e, QTe), n = DCe(), r = pxe(), i = uTe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = kV([n]), d = xW(), f = SW();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = $Te(t.layout, o, a, p), h = c ? s : TG(TG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = ZTe(t.layout, o, a, p), h = c ? s : TG(TG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, XTe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, JTe(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ B.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ B.createElement(ZTe, {
+ }, /*#__PURE__*/ B.createElement(YTe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ B.createElement(QTe, {
+ }), !c && /*#__PURE__*/ B.createElement(XTe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ B.createElement(YTe, CG({}, t, m, {
+ }), /*#__PURE__*/ B.createElement(qTe, CG({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -57805,7 +57789,7 @@ function tEe(e) {
})));
return /*#__PURE__*/ (0, $f.createPortal)(_, g);
}
-var EG = /*#__PURE__*/ B.memo(tEe, SG);
+var EG = /*#__PURE__*/ B.memo($Te, SG);
EG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
@@ -57832,26 +57816,26 @@ function kG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? OG(Object(n), !0).forEach(function(t) {
- nEe(e, t, n[t]);
+ eEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nEe(e, t, n) {
- return (t = rEe(t)) in e ? Object.defineProperty(e, t, {
+function eEe(e, t, n) {
+ return (t = tEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rEe(e) {
- var t = iEe(e, "string");
+function tEe(e) {
+ var t = nEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iEe(e, t) {
+function nEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57861,8 +57845,8 @@ function iEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function aEe(e) {
- return Array.isArray(e) && CB(e[0]) && CB(e[1]) ? e.join(" ~ ") : e;
+function rEe(e) {
+ return Array.isArray(e) && wB(e[0]) && wB(e[1]) ? e.join(" ~ ") : e;
}
var AG = {
separator: " : ",
@@ -57882,18 +57866,18 @@ var AG = {
labelStyle: {},
accessibilityLayer: !1
};
-function oEe(e, t) {
+function iEe(e, t) {
return t == null ? e : EV(e, t);
}
-var sEe = (e) => {
+var aEe = (e) => {
var { separator: t = AG.separator, contentStyle: n, itemStyle: r, labelStyle: i = AG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = AG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = oEe(a, s).map((e, n) => {
+ }, n = iEe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || aEe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || rEe, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
@@ -57905,7 +57889,7 @@ var sEe = (e) => {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, CB(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, CB(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, wB(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, wB(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ B.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -57913,7 +57897,7 @@ var sEe = (e) => {
}, n);
}
return null;
- }, m = kG(kG({}, AG.contentStyle), n), h = kG({ margin: 0 }, i), g = !kB(u), _ = g ? u : "", v = _h("recharts-default-tooltip", c), y = _h("recharts-tooltip-label", l);
+ }, m = kG(kG({}, AG.contentStyle), n), h = kG({ margin: 0 }, i), g = !AB(u), _ = g ? u : "", v = _h("recharts-default-tooltip", c), y = _h("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
@@ -57926,8 +57910,8 @@ var sEe = (e) => {
className: y,
style: h
}, /*#__PURE__*/ B.isValidElement(_) ? _ : `${_}`), p());
-}, jG = "recharts-tooltip-wrapper", cEe = { visibility: "hidden" };
-function lEe(e) {
+}, jG = "recharts-tooltip-wrapper", oEe = { visibility: "hidden" };
+function sEe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
return _h(jG, {
[`${jG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
@@ -57944,11 +57928,11 @@ function MG(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function uEe(e) {
+function cEe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function dEe(e) {
+function lEe(e) {
var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;
return s.height > 0 && s.width > 0 && n ? (d = MG({
allowEscapeViewBox: t,
@@ -57970,13 +57954,13 @@ function dEe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = uEe({
+ }), u = cEe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = cEe, {
+ })) : u = oEe, {
cssProperties: u,
- cssClasses: lEe({
+ cssClasses: sEe({
translateX: d,
translateY: f,
coordinate: n
@@ -58018,26 +58002,26 @@ function IG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? FG(Object(n), !0).forEach(function(t) {
- fEe(e, t, n[t]);
+ uEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fEe(e, t, n) {
- return (t = pEe(t)) in e ? Object.defineProperty(e, t, {
+function uEe(e, t, n) {
+ return (t = dEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pEe(e) {
- var t = mEe(e, "string");
+function dEe(e) {
+ var t = fEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mEe(e, t) {
+function fEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58047,10 +58031,10 @@ function mEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hEe(e) {
+function pEe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function gEe(e) {
+function mEe(e) {
var t = PG(), [n, r] = B.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
@@ -58072,7 +58056,7 @@ function gEe(e) {
document.removeEventListener("keydown", t);
};
}, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(IG(IG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = dEe({
+ var { cssClasses: i, cssProperties: a } = lEe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -58085,7 +58069,7 @@ function gEe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = IG(IG({}, e.hasPortalFromProps ? {} : IG(IG({ transition: hEe({
+ }), o = IG(IG({}, e.hasPortalFromProps ? {} : IG(IG({ transition: pEe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -58105,7 +58089,7 @@ function gEe(e) {
ref: e.innerRef
}, e.children);
}
-var _Ee = /*#__PURE__*/ B.memo(gEe), LG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var hEe = /*#__PURE__*/ B.memo(mEe), LG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
function RG() {
@@ -58131,26 +58115,26 @@ function BG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? zG(Object(n), !0).forEach(function(t) {
- vEe(e, t, n[t]);
+ gEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vEe(e, t, n) {
- return (t = yEe(t)) in e ? Object.defineProperty(e, t, {
+function gEe(e, t, n) {
+ return (t = _Ee(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yEe(e) {
- var t = bEe(e, "string");
+function _Ee(e) {
+ var t = vEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bEe(e, t) {
+function vEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58161,37 +58145,37 @@ function bEe(e, t) {
return (t === "string" ? String : Number)(e);
}
var VG = {
- curveBasisClosed: Pxe,
- curveBasisOpen: Fxe,
- curveBasis: Nxe,
- curveBumpX: yxe,
- curveBumpY: bxe,
- curveLinearClosed: Ixe,
- curveLinear: Pz,
- curveMonotoneX: Lxe,
- curveMonotoneY: Rxe,
- curveNatural: zxe,
- curveStep: Bxe,
- curveStepAfter: Hxe,
- curveStepBefore: Vxe
-}, HG = (e) => MU(e.x) && MU(e.y), UG = (e) => e.base != null && HG(e.base) && HG(e), WG = (e) => e.x, GG = (e) => e.y, xEe = (e, t) => {
+ curveBasisClosed: jxe,
+ curveBasisOpen: Mxe,
+ curveBasis: Axe,
+ curveBumpX: gxe,
+ curveBumpY: _xe,
+ curveLinearClosed: Nxe,
+ curveLinear: Fz,
+ curveMonotoneX: Pxe,
+ curveMonotoneY: Fxe,
+ curveNatural: Ixe,
+ curveStep: Lxe,
+ curveStepAfter: zxe,
+ curveStepBefore: Rxe
+}, HG = (e) => MU(e.x) && MU(e.y), UG = (e) => e.base != null && HG(e.base) && HG(e), WG = (e) => e.x, GG = (e) => e.y, yEe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${AB(e)}`;
+ var n = `curve${jB(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
var r = VG[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return VG[n] || Pz;
+ return VG[n] || Fz;
}, KG = {
connectNulls: !1,
type: "linear"
-}, SEe = (e) => {
- var { type: t = KG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = KG.connectNulls } = e, o = xEe(t, i), s = a ? n.filter(HG) : n;
+}, bEe = (e) => {
+ var { type: t = KG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = KG.connectNulls } = e, o = yEe(t, i), s = a ? n.filter(HG) : n;
if (Array.isArray(r)) {
var c, l = n.map((e, t) => BG(BG({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? Rz().y(GG).x1(WG).x0((e) => e.base.x) : Rz().x(WG).y1(GG).y0((e) => e.base.y), c.defined(UG).curve(o)(a ? l.filter(UG) : l);
+ return c = i === "vertical" ? zz().y(GG).x1(WG).x0((e) => e.base.x) : zz().x(WG).y1(GG).y0((e) => e.base.y), c.defined(UG).curve(o)(a ? l.filter(UG) : l);
}
- return (i === "vertical" && Z(r) ? Rz().y(GG).x1(WG).x0(r) : Z(r) ? Rz().x(WG).y1(GG).y0(r) : Lz().x(WG).y(GG)).defined(HG).curve(o)(s);
+ return (i === "vertical" && Z(r) ? zz().y(GG).x1(WG).x0(r) : Z(r) ? zz().x(WG).y1(GG).y0(r) : Rz().x(WG).y(GG)).defined(HG).curve(o)(s);
}, qG = (e) => {
var { className: t, points: n, path: r, pathRef: i } = e, a = wW();
if ((!n || !n.length) && !r) return null;
@@ -58201,13 +58185,13 @@ var VG = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? SEe(o) : r;
- return /*#__PURE__*/ B.createElement("path", RG({}, fz(e), zB(e), {
+ }, s = n && n.length ? bEe(o) : r;
+ return /*#__PURE__*/ B.createElement("path", RG({}, pz(e), BB(e), {
className: _h("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, CEe = [
+}, xEe = [
"x",
"y",
"top",
@@ -58235,30 +58219,30 @@ function YG(e, t) {
}
return n;
}
-function wEe(e) {
+function SEe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? YG(Object(n), !0).forEach(function(t) {
- TEe(e, t, n[t]);
+ CEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function TEe(e, t, n) {
- return (t = EEe(t)) in e ? Object.defineProperty(e, t, {
+function CEe(e, t, n) {
+ return (t = wEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function EEe(e) {
- var t = DEe(e, "string");
+function wEe(e) {
+ var t = TEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DEe(e, t) {
+function TEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58268,16 +58252,16 @@ function DEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function OEe(e, t) {
+function EEe(e, t) {
if (e == null) return {};
- var n, r, i = kEe(e, t);
+ var n, r, i = DEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function kEe(e, t) {
+function DEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58286,8 +58270,8 @@ function kEe(e, t) {
}
return n;
}
-var AEe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, jEe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = OEe(e, CEe), l = wEe({
+var OEe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, kEe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = EEe(e, xEe), l = SEe({
x: t,
y: n,
top: r,
@@ -58295,14 +58279,14 @@ var AEe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, jEe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", JG({}, mz(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", JG({}, hz(l), {
className: _h("recharts-cross", s),
- d: AEe(t, n, a, o, r, i)
+ d: OEe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function MEe(e, t, n, r) {
+function AEe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -58329,26 +58313,26 @@ function ZG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? XG(Object(n), !0).forEach(function(t) {
- NEe(e, t, n[t]);
+ jEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NEe(e, t, n) {
- return (t = PEe(t)) in e ? Object.defineProperty(e, t, {
+function jEe(e, t, n) {
+ return (t = MEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PEe(e) {
- var t = FEe(e, "string");
+function MEe(e) {
+ var t = NEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FEe(e, t) {
+function NEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58358,7 +58342,7 @@ function FEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var IEe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), QG = (e, t, n) => e.map((e) => `${IEe(e)} ${t}ms ${n}`).join(","), LEe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), $G = (e, t) => Object.keys(t).reduce((n, r) => ZG(ZG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var PEe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), QG = (e, t, n) => e.map((e) => `${PEe(e)} ${t}ms ${n}`).join(","), FEe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), $G = (e, t) => Object.keys(t).reduce((n, r) => ZG(ZG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
function eK(e, t) {
@@ -58375,26 +58359,26 @@ function tK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? eK(Object(n), !0).forEach(function(t) {
- REe(e, t, n[t]);
+ IEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function REe(e, t, n) {
- return (t = zEe(t)) in e ? Object.defineProperty(e, t, {
+function IEe(e, t, n) {
+ return (t = LEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zEe(e) {
- var t = BEe(e, "string");
+function LEe(e) {
+ var t = REe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function BEe(e, t) {
+function REe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58423,7 +58407,7 @@ var nK = (e, t, n) => e + (t - e) * n, rK = (e) => {
from: nK(t.from, r[e].from, n)
}) : t, t) : iK(e, r, n - 1);
};
-function VEe(e, t, n, r, i, a) {
+function zEe(e, t, n, r, i, a) {
var o, s = r.reduce((n, r) => tK(tK({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
@@ -58438,7 +58422,7 @@ function VEe(e, t, n, r, i, a) {
(e = u) == null || e();
});
}
-function HEe(e, t, n, r, i, a, o) {
+function BEe(e, t, n, r, i, a, o) {
var s = null, c = i.reduce((n, r) => {
var i = e[r], a = t[r];
return i == null || a == null ? n : tK(tK({}, n), {}, { [r]: [i, a] });
@@ -58456,15 +58440,15 @@ function HEe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var UEe = (e, t, n, r, i, a) => {
- var o = LEe(e, t);
- return n == null ? () => (i(tK(tK({}, e), t)), () => {}) : n.isStepper === !0 ? VEe(e, t, n, o, i, a) : HEe(e, t, n, r, o, i, a);
+var VEe = (e, t, n, r, i, a) => {
+ var o = FEe(e, t);
+ return n == null ? () => (i(tK(tK({}, e), t)), () => {}) : n.isStepper === !0 ? zEe(e, t, n, o, i, a) : BEe(e, t, n, r, o, i, a);
}, aK = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], oK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), sK = (e, t) => (n) => oK(aK(e, t), n), WEe = (e, t) => (n) => oK([...aK(e, t).map((e, t) => e * t).slice(1), 0], n), GEe = (e) => {
+], oK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), sK = (e, t) => (n) => oK(aK(e, t), n), HEe = (e, t) => (n) => oK([...aK(e, t).map((e, t) => e * t).slice(1), 0], n), UEe = (e) => {
var t, n = e.split("(");
if (n.length !== 2 || n[0] !== "cubic-bezier") return null;
var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");
@@ -58476,7 +58460,7 @@ var UEe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, KEe = function() {
+}, WEe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -58510,7 +58494,7 @@ var UEe = (e, t, n, r, i, a) => {
1
];
default:
- var t = GEe(e[0]);
+ var t = UEe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -58519,8 +58503,8 @@ var UEe = (e, t, n, r, i, a) => {
1,
1
];
-}, qEe = (e, t, n, r) => {
- var i = sK(e, n), a = sK(t, r), o = WEe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, GEe = (e, t, n, r) => {
+ var i = sK(e, n), a = sK(t, r), o = HEe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {
var c = i(n) - t, l = o(n);
if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);
@@ -58530,28 +58514,28 @@ var UEe = (e, t, n, r, i, a) => {
};
return c.isStepper = !1, c;
}, cK = function() {
- return qEe(...KEe(...arguments));
-}, JEe = function() {
+ return GEe(...WEe(...arguments));
+}, KEe = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, YEe = (e) => {
+}, qEe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
case "linear": return cK(e);
- case "spring": return JEe();
+ case "spring": return KEe();
default: if (e.split("(")[0] === "cubic-bezier") return cK(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function XEe(e) {
+function JEe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -58582,7 +58566,7 @@ function XEe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var ZEe = class {
+var YEe = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -58594,14 +58578,14 @@ var ZEe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function QEe() {
- return XEe(new ZEe());
+function XEe() {
+ return JEe(new YEe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var $Ee = /*#__PURE__*/ (0, B.createContext)(QEe);
-function eDe(e, t) {
- var n = (0, B.useContext)($Ee);
+var ZEe = /*#__PURE__*/ (0, B.createContext)(XEe);
+function QEe(e, t) {
+ var n = (0, B.useContext)(ZEe);
return (0, B.useMemo)(() => t ?? n(e), [
e,
t,
@@ -58610,7 +58594,7 @@ function eDe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var tDe = {
+var $Ee = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -58620,12 +58604,12 @@ var tDe = {
onAnimationStart: () => {}
}, lK = { t: 0 }, uK = { t: 1 };
function dK(e) {
- var t = HB(e, tDe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = PG(), d = n === "auto" ? !NG.isSsr && !u : n, f = eDe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? lK : uK), h = (0, B.useRef)(null);
+ var t = UB(e, $Ee), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = PG(), d = n === "auto" ? !NG.isSsr && !u : n, f = QEe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? lK : uK), h = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
d || m(uK);
}, [d]), (0, B.useEffect)(() => {
- if (!d || !r) return MB;
- var e = UEe(lK, uK, YEe(a), i, m, f.getTimeoutController());
+ if (!d || !r) return NB;
+ var e = VEe(lK, uK, qEe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -58651,12 +58635,12 @@ function dK(e) {
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
function fK(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(wB(t)), r = (0, B.useRef)(e);
- return r.current !== e && (n.current = wB(t), r.current = e), n.current;
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(TB(t)), r = (0, B.useRef)(e);
+ return r.current !== e && (n.current = TB(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var nDe = ["radius"], rDe = ["radius"], iDe, aDe, oDe, sDe, cDe, lDe, uDe, dDe, fDe, pDe;
+var eDe = ["radius"], tDe = ["radius"], nDe, rDe, iDe, aDe, oDe, sDe, cDe, lDe, uDe, dDe;
function pK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58671,26 +58655,26 @@ function mK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? pK(Object(n), !0).forEach(function(t) {
- mDe(e, t, n[t]);
+ fDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mDe(e, t, n) {
- return (t = hDe(t)) in e ? Object.defineProperty(e, t, {
+function fDe(e, t, n) {
+ return (t = pDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hDe(e) {
- var t = gDe(e, "string");
+function pDe(e) {
+ var t = mDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gDe(e, t) {
+function mDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58711,14 +58695,14 @@ function hK() {
}
function gK(e, t) {
if (e == null) return {};
- var n, r, i = _De(e, t);
+ var n, r, i = hDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _De(e, t) {
+function hDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58731,7 +58715,7 @@ function _K(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var vK = (e, t, n, r, i) => {
- var a = vB(n), o = vB(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+ var a = yB(n), o = yB(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@ -58742,44 +58726,44 @@ var vK = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = yB(iDe ||= _K([
+ d = bB(nDe ||= _K([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += yB(aDe ||= _K([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += bB(rDe ||= _K([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += yB(oDe ||= _K([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += bB(iDe ||= _K([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += yB(sDe ||= _K([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += bB(aDe ||= _K([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += yB(cDe ||= _K([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += bB(oDe ||= _K([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += yB(lDe ||= _K([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += bB(sDe ||= _K([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += yB(uDe ||= _K([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += bB(cDe ||= _K([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += yB(dDe ||= _K([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += bB(lDe ||= _K([
"A ",
",",
",0,0,",
@@ -58789,8 +58773,8 @@ var vK = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = yB(fDe ||= _K(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = yB(pDe ||= _K([
+ d = bB(uDe ||= _K(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = bB(dDe ||= _K([
"M ",
",",
" h ",
@@ -58811,7 +58795,7 @@ var vK = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, bK = (e) => {
- var t = HB(e, yK), n = (0, B.useRef)(null), [r, i] = (0, B.useState)(-1);
+ var t = UB(e, yK), n = (0, B.useRef)(null), [r, i] = (0, B.useState)(-1);
(0, B.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
@@ -58834,12 +58818,12 @@ var vK = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = _h("recharts-rectangle", u);
if (!h) {
- var S = mz(t), { radius: C } = S, w = gK(S, nDe);
+ var S = hz(t), { radius: C } = S, w = gK(S, eDe);
return /*#__PURE__*/ B.createElement("path", hK({}, w, {
- x: vB(a),
- y: vB(o),
- width: vB(s),
- height: vB(c),
+ x: yB(a),
+ y: yB(o),
+ width: yB(s),
+ height: yB(c),
radius: typeof l == "number" ? l : void 0,
className: x,
d: vK(a, o, s, c, l)
@@ -58855,12 +58839,12 @@ var vK = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = DB(T, s, e), i = DB(E, c, e), u = DB(D, a, e), d = DB(O, o, e);
+ var r = OB(T, s, e), i = OB(E, c, e), u = OB(D, a, e), d = OB(O, o, e);
n.current && (g.current = r, _.current = i, v.current = u, y.current = d);
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = mz(t), { radius: h } = p, b = gK(p, rDe);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = hz(t), { radius: h } = p, b = gK(p, tDe);
return /*#__PURE__*/ B.createElement("path", hK({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -58886,26 +58870,26 @@ function SK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? xK(Object(n), !0).forEach(function(t) {
- vDe(e, t, n[t]);
+ gDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vDe(e, t, n) {
- return (t = yDe(t)) in e ? Object.defineProperty(e, t, {
+function gDe(e, t, n) {
+ return (t = _De(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yDe(e) {
- var t = bDe(e, "string");
+function _De(e) {
+ var t = vDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bDe(e, t) {
+function vDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58915,10 +58899,10 @@ function bDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, xDe = (e) => e * 180 / Math.PI, TK = (e, t, n, r) => ({
+var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, yDe = (e) => e * 180 / Math.PI, TK = (e, t, n, r) => ({
x: e + Math.cos(-CK * r) * n,
y: t + Math.sin(-CK * r) * n
-}), SDe = function(e, t) {
+}), bDe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -58929,11 +58913,11 @@ var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, xDe = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, CDe = (e, t) => {
+}, xDe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, wDe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = CDe({
+}, SDe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = xDe({
x: n,
y: r
}, {
@@ -58947,25 +58931,25 @@ var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, xDe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: xDe(c),
+ angle: yDe(c),
angleInRadian: c
};
-}, TDe = (e) => {
+}, CDe = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, EDe = (e, t) => {
+}, wDe = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, DDe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = wDe({
+}, TDe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = SDe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = TDe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = CDe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -58977,7 +58961,7 @@ var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, xDe = (e) => e * 180 / Ma
}
return d ? SK(SK({}, t), {}, {
radius: i,
- angle: EDe(u, t)
+ angle: wDe(u, t)
}) : null;
};
//#endregion
@@ -58995,7 +58979,7 @@ function EK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var ODe, kDe, ADe, jDe, MDe, NDe, PDe;
+var EDe, DDe, ODe, kDe, ADe, jDe, MDe;
function DK() {
return DK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59008,7 +58992,7 @@ function DK() {
function OK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) => {
+var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) => {
var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / CK, d = c ? i : i + a * u, f = TK(t, n, l, d), p = TK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -59017,7 +59001,7 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
theta: u
};
}, AK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = FDe(a, o), c = a + s, l = TK(t, n, i, a), u = TK(t, n, i, c), d = yB(ODe ||= OK([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = NDe(a, o), c = a + s, l = TK(t, n, i, a), u = TK(t, n, i, c), d = bB(EDe ||= OK([
"M ",
",",
"\n A ",
@@ -59030,7 +59014,7 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = TK(t, n, r, a), p = TK(t, n, r, c);
- d += yB(kDe ||= OK([
+ d += bB(DDe ||= OK([
"L ",
",",
"\n A ",
@@ -59041,14 +59025,14 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += yB(ADe ||= OK([
+ } else d += bB(ODe ||= OK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, IDe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = bB(l - c), { circleTangency: d, lineTangency: f, theta: p } = kK({
+}, PDe = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = xB(l - c), { circleTangency: d, lineTangency: f, theta: p } = kK({
cx: t,
cy: n,
radius: i,
@@ -59065,7 +59049,7 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? yB(jDe ||= OK([
+ if (_ < 0) return o ? bB(kDe ||= OK([
"M ",
",",
"\n a",
@@ -59083,7 +59067,7 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
startAngle: c,
endAngle: l
});
- var v = yB(MDe ||= OK([
+ var v = bB(ADe ||= OK([
"M ",
",",
"\n A",
@@ -59125,7 +59109,7 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += yB(NDe ||= OK([
+ v += bB(jDe ||= OK([
"L",
",",
"\n A",
@@ -59146,13 +59130,13 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += yB(PDe ||= OK([
+ } else v += bB(MDe ||= OK([
"L",
",",
"Z"
]), t, n);
return v;
-}, LDe = {
+}, FDe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -59163,9 +59147,9 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, jK = (e) => {
- var t = HB(e, LDe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = UB(e, FDe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
if (a < i || l === u) return null;
- var f = _h("recharts-sector", d), p = a - i, m = TB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? IDe({
+ var f = _h("recharts-sector", d), p = a - i, m = EB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? PDe({
cx: n,
cy: r,
innerRadius: i,
@@ -59183,14 +59167,14 @@ var FDe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ B.createElement("path", DK({}, mz(t), {
+ return /*#__PURE__*/ B.createElement("path", DK({}, hz(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function RDe(e, t, n) {
+function IDe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -59205,7 +59189,7 @@ function RDe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (RB(t)) {
+ if (zB(t)) {
if (e === "centric") {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = TK(r, i, a, s), l = TK(r, i, o, s);
return [{
@@ -59221,13 +59205,13 @@ function RDe(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function zDe(e) {
- return mB(e) ? NaN : Number(e);
+function LDe(e) {
+ return hB(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function MK(e) {
- return e ? (e = zDe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = LDe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
@@ -59271,7 +59255,7 @@ function BK(e, t) {
if (RK(o)) return o;
}
}
-function BDe(e, t, n) {
+function RDe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -59718,7 +59702,7 @@ var WK = (e) => {
}
var u = r[c] ?? 1, d = new VK.default(u).mul(o);
return t ? d : new VK.default(Math.ceil(d.toNumber()));
-}, VDe = (e, t, n) => {
+}, zDe = (e, t, n) => {
var r = new VK.default(1), i = new VK.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -59747,7 +59731,7 @@ var WK = (e) => {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return VDe(s, r, i);
+ if (s === c) return zDe(s, r, i);
var { step: u, tickMin: d, tickMax: f } = qK(s, c, o, i, 0, a === "snap125" ? KK : GK), p = UK(d, f.add(new VK.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, YK = function(e, t) {
@@ -59756,7 +59740,7 @@ var WK = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? KK : GK, l = Math.max(t, 2), u = c(new VK.default(s).sub(o).div(l - 1), i, 0), d = [...UK(new VK.default(o), new VK.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, XK = (e) => e.rootProps.maxBarSize, ZK = (e) => e.rootProps.barGap, QK = (e) => e.rootProps.barCategoryGap, $K = (e) => e.rootProps.barSize, eq = (e) => e.rootProps.stackOffset, tq = (e) => e.rootProps.reverseStackOrder, nq = (e) => e.options.chartName, rq = (e) => e.rootProps.syncId, iq = (e) => e.rootProps.syncMethod, aq = (e) => e.options.eventEmitter, HDe = (e) => e.rootProps.baseValue, oq = {
+}, XK = (e) => e.rootProps.maxBarSize, ZK = (e) => e.rootProps.barGap, QK = (e) => e.rootProps.barCategoryGap, $K = (e) => e.rootProps.barSize, eq = (e) => e.rootProps.stackOffset, tq = (e) => e.rootProps.reverseStackOrder, nq = (e) => e.options.chartName, rq = (e) => e.rootProps.syncId, iq = (e) => e.rootProps.syncMethod, aq = (e) => e.options.eventEmitter, BDe = (e) => e.rootProps.baseValue, oq = {
grid: -100,
barBackground: -50,
area: 100,
@@ -59836,26 +59820,26 @@ function fq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? dq(Object(n), !0).forEach(function(t) {
- UDe(e, t, n[t]);
+ VDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UDe(e, t, n) {
- return (t = WDe(t)) in e ? Object.defineProperty(e, t, {
+function VDe(e, t, n) {
+ return (t = HDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WDe(e) {
- var t = GDe(e, "string");
+function HDe(e) {
+ var t = UDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GDe(e, t) {
+function UDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59913,21 +59897,21 @@ var pq = {
XU,
ZU,
rW
-], SDe), yq = $([_q, vq], (e, t) => {
- if (e != null) return TB(e.innerRadius, t, 0);
+], bDe), yq = $([_q, vq], (e, t) => {
+ if (e != null) return EB(e.innerRadius, t, 0);
}), bq = $([_q, vq], (e, t) => {
- if (e != null) return TB(e.outerRadius, t, t * .8);
+ if (e != null) return EB(e.outerRadius, t, t * .8);
}), xq = $([_q], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), KDe = $([hq, xq], lq), Sq = $([
+}), WDe = $([hq, xq], lq), Sq = $([
vq,
yq,
bq
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), qDe = $([gq, Sq], lq), Cq = $([
+}), GDe = $([gq, Sq], lq), Cq = $([
CW,
_q,
yq,
@@ -59938,8 +59922,8 @@ var pq = {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var { cx: o, cy: s, startAngle: c, endAngle: l } = t;
return {
- cx: TB(o, i, i / 2),
- cy: TB(s, a, a / 2),
+ cx: EB(o, i, i / 2),
+ cy: EB(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -59981,7 +59965,7 @@ var kq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function Aq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function JDe(e, t) {
+function KDe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -60060,7 +60044,7 @@ function Fq(e, t) {
//#region node_modules/d3-array/src/bisector.js
function Iq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = YDe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = qDe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -60086,7 +60070,7 @@ function Iq(e) {
right: i
};
}
-function YDe(e) {
+function qDe(e) {
return (t, n) => Fq(e(t), n);
}
//#endregion
@@ -60094,7 +60078,7 @@ function YDe(e) {
function Lq(e) {
return e === null ? NaN : +e;
}
-function* XDe(e, t) {
+function* JDe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -60108,7 +60092,7 @@ Rq.left, Iq(Lq).center;
//#endregion
//#region node_modules/internmap/src/index.js
var Bq = class extends Map {
- constructor(e, t = $De) {
+ constructor(e, t = ZDe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -60121,25 +60105,25 @@ var Bq = class extends Map {
return super.has(Vq(this, e));
}
set(e, t) {
- return super.set(ZDe(this, e), t);
+ return super.set(YDe(this, e), t);
}
delete(e) {
- return super.delete(QDe(this, e));
+ return super.delete(XDe(this, e));
}
};
function Vq({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function ZDe({ _intern: e, _key: t }, n) {
+function YDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function QDe({ _intern: e, _key: t }, n) {
+function XDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function $De(e) {
+function ZDe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -60212,15 +60196,15 @@ function Zq(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function eOe(e, t, n) {
- if (e = Float64Array.from(XDe(e, n)), r = e.length) {
+function QDe(e, t, n) {
+ if (e = Float64Array.from(JDe(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return Yq(e);
if (t >= 1) return Jq(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = Jq(Xq(e, a).subarray(0, a + 1));
return o + (Yq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function tOe(e, t, n = Lq) {
+function $De(e, t, n = Lq) {
if (r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -60230,7 +60214,7 @@ function tOe(e, t, n = Lq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function nOe(e, t, n) {
+function eOe(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
@@ -60302,7 +60286,7 @@ function rJ() {
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = nOe(e).map(function(e) {
+ var m = eOe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -60337,7 +60321,7 @@ function iJ(e) {
return iJ(t());
}, e;
}
-function rOe() {
+function tOe() {
return iJ(rJ.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -60353,7 +60337,7 @@ function oJ(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function sJ() {}
-var cJ = .7, lJ = 1 / cJ, uJ = "\\s*([+-]?\\d+)\\s*", dJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", fJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", iOe = /^#([0-9a-f]{3,8})$/, aOe = RegExp(`^rgb\\(${uJ},${uJ},${uJ}\\)$`), oOe = RegExp(`^rgb\\(${fJ},${fJ},${fJ}\\)$`), sOe = RegExp(`^rgba\\(${uJ},${uJ},${uJ},${dJ}\\)$`), cOe = RegExp(`^rgba\\(${fJ},${fJ},${fJ},${dJ}\\)$`), lOe = RegExp(`^hsl\\(${dJ},${fJ},${fJ}\\)$`), uOe = RegExp(`^hsla\\(${dJ},${fJ},${fJ},${dJ}\\)$`), pJ = {
+var cJ = .7, lJ = 1 / cJ, uJ = "\\s*([+-]?\\d+)\\s*", dJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", fJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", nOe = /^#([0-9a-f]{3,8})$/, rOe = RegExp(`^rgb\\(${uJ},${uJ},${uJ}\\)$`), iOe = RegExp(`^rgb\\(${fJ},${fJ},${fJ}\\)$`), aOe = RegExp(`^rgba\\(${uJ},${uJ},${uJ},${dJ}\\)$`), oOe = RegExp(`^rgba\\(${fJ},${fJ},${fJ},${dJ}\\)$`), sOe = RegExp(`^hsl\\(${dJ},${fJ},${fJ}\\)$`), cOe = RegExp(`^hsla\\(${dJ},${fJ},${fJ},${dJ}\\)$`), pJ = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -60503,7 +60487,7 @@ var cJ = .7, lJ = 1 / cJ, uJ = "\\s*([+-]?\\d+)\\s*", dJ = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-aJ(sJ, _J, {
+aJ(sJ, gJ, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
@@ -60512,161 +60496,161 @@ aJ(sJ, _J, {
},
hex: mJ,
formatHex: mJ,
- formatHex8: dOe,
- formatHsl: hJ,
- formatRgb: gJ,
- toString: gJ
+ formatHex8: lOe,
+ formatHsl: uOe,
+ formatRgb: hJ,
+ toString: hJ
});
function mJ() {
return this.rgb().formatHex();
}
-function dOe() {
+function lOe() {
return this.rgb().formatHex8();
}
-function hJ() {
- return OJ(this).formatHsl();
+function uOe() {
+ return DJ(this).formatHsl();
}
-function gJ() {
+function hJ() {
return this.rgb().formatRgb();
}
-function _J(e) {
+function gJ(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = iOe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? vJ(t) : n === 3 ? new xJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? yJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? yJ(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = aOe.exec(e)) ? new xJ(t[1], t[2], t[3], 1) : (t = oOe.exec(e)) ? new xJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = sOe.exec(e)) ? yJ(t[1], t[2], t[3], t[4]) : (t = cOe.exec(e)) ? yJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = lOe.exec(e)) ? DJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = uOe.exec(e)) ? DJ(t[1], t[2] / 100, t[3] / 100, t[4]) : pJ.hasOwnProperty(e) ? vJ(pJ[e]) : e === "transparent" ? new xJ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = nOe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? _J(t) : n === 3 ? new bJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? vJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? vJ(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = rOe.exec(e)) ? new bJ(t[1], t[2], t[3], 1) : (t = iOe.exec(e)) ? new bJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = aOe.exec(e)) ? vJ(t[1], t[2], t[3], t[4]) : (t = oOe.exec(e)) ? vJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = sOe.exec(e)) ? EJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = cOe.exec(e)) ? EJ(t[1], t[2] / 100, t[3] / 100, t[4]) : pJ.hasOwnProperty(e) ? _J(pJ[e]) : e === "transparent" ? new bJ(NaN, NaN, NaN, 0) : null;
}
-function vJ(e) {
- return new xJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function _J(e) {
+ return new bJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function yJ(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new xJ(e, t, n, r);
+function vJ(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new bJ(e, t, n, r);
}
-function fOe(e) {
- return e instanceof sJ || (e = _J(e)), e ? (e = e.rgb(), new xJ(e.r, e.g, e.b, e.opacity)) : new xJ();
+function dOe(e) {
+ return e instanceof sJ || (e = gJ(e)), e ? (e = e.rgb(), new bJ(e.r, e.g, e.b, e.opacity)) : new bJ();
}
-function bJ(e, t, n, r) {
- return arguments.length === 1 ? fOe(e) : new xJ(e, t, n, r ?? 1);
+function yJ(e, t, n, r) {
+ return arguments.length === 1 ? dOe(e) : new bJ(e, t, n, r ?? 1);
}
-function xJ(e, t, n, r) {
+function bJ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-aJ(xJ, bJ, oJ(sJ, {
+aJ(bJ, yJ, oJ(sJ, {
brighter(e) {
- return e = e == null ? lJ : lJ ** +e, new xJ(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? lJ : lJ ** +e, new bJ(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? cJ : cJ ** +e, new xJ(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? cJ : cJ ** +e, new bJ(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new xJ(TJ(this.r), TJ(this.g), TJ(this.b), wJ(this.opacity));
+ return new bJ(wJ(this.r), wJ(this.g), wJ(this.b), CJ(this.opacity));
},
displayable() {
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
},
- hex: SJ,
- formatHex: SJ,
- formatHex8: pOe,
- formatRgb: CJ,
- toString: CJ
+ hex: xJ,
+ formatHex: xJ,
+ formatHex8: fOe,
+ formatRgb: SJ,
+ toString: SJ
}));
-function SJ() {
- return `#${EJ(this.r)}${EJ(this.g)}${EJ(this.b)}`;
+function xJ() {
+ return `#${TJ(this.r)}${TJ(this.g)}${TJ(this.b)}`;
}
-function pOe() {
- return `#${EJ(this.r)}${EJ(this.g)}${EJ(this.b)}${EJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+function fOe() {
+ return `#${TJ(this.r)}${TJ(this.g)}${TJ(this.b)}${TJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function CJ() {
- let e = wJ(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${TJ(this.r)}, ${TJ(this.g)}, ${TJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function SJ() {
+ let e = CJ(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${wJ(this.r)}, ${wJ(this.g)}, ${wJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function wJ(e) {
+function CJ(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function TJ(e) {
+function wJ(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function EJ(e) {
- return e = TJ(e), (e < 16 ? "0" : "") + e.toString(16);
+function TJ(e) {
+ return e = wJ(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function DJ(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new kJ(e, t, n, r);
+function EJ(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new OJ(e, t, n, r);
}
-function OJ(e) {
- if (e instanceof kJ) return new kJ(e.h, e.s, e.l, e.opacity);
- if (e instanceof sJ || (e = _J(e)), !e) return new kJ();
- if (e instanceof kJ) return e;
+function DJ(e) {
+ if (e instanceof OJ) return new OJ(e.h, e.s, e.l, e.opacity);
+ if (e instanceof sJ || (e = gJ(e)), !e) return new OJ();
+ if (e instanceof OJ) return e;
e = e.rgb();
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new kJ(o, s, c, e.opacity);
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new OJ(o, s, c, e.opacity);
}
-function mOe(e, t, n, r) {
- return arguments.length === 1 ? OJ(e) : new kJ(e, t, n, r ?? 1);
+function pOe(e, t, n, r) {
+ return arguments.length === 1 ? DJ(e) : new OJ(e, t, n, r ?? 1);
}
-function kJ(e, t, n, r) {
+function OJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-aJ(kJ, mOe, oJ(sJ, {
+aJ(OJ, pOe, oJ(sJ, {
brighter(e) {
- return e = e == null ? lJ : lJ ** +e, new kJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? lJ : lJ ** +e, new OJ(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? cJ : cJ ** +e, new kJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? cJ : cJ ** +e, new OJ(this.h, this.s, this.l * e, this.opacity);
},
rgb() {
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
- return new xJ(MJ(e >= 240 ? e - 240 : e + 120, i, r), MJ(e, i, r), MJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new bJ(jJ(e >= 240 ? e - 240 : e + 120, i, r), jJ(e, i, r), jJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new kJ(AJ(this.h), jJ(this.s), jJ(this.l), wJ(this.opacity));
+ return new OJ(kJ(this.h), AJ(this.s), AJ(this.l), CJ(this.opacity));
},
displayable() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
},
formatHsl() {
- let e = wJ(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${AJ(this.h)}, ${jJ(this.s) * 100}%, ${jJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = CJ(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${kJ(this.h)}, ${AJ(this.s) * 100}%, ${AJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function AJ(e) {
+function kJ(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function jJ(e) {
+function AJ(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function MJ(e, t, n) {
+function jJ(e, t, n) {
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
}
//#endregion
//#region node_modules/d3-interpolate/src/constant.js
-var NJ = (e) => () => e;
+var MJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function hOe(e, t) {
+function mOe(e, t) {
return function(n) {
return e + n * t;
};
}
-function gOe(e, t, n) {
+function hOe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function _Oe(e) {
- return (e = +e) == 1 ? PJ : function(t, n) {
- return n - t ? gOe(t, n, e) : NJ(isNaN(t) ? n : t);
+function gOe(e) {
+ return (e = +e) == 1 ? NJ : function(t, n) {
+ return n - t ? hOe(t, n, e) : MJ(isNaN(t) ? n : t);
};
}
-function PJ(e, t) {
+function NJ(e, t) {
var n = t - e;
- return n ? hOe(e, n) : NJ(isNaN(e) ? t : e);
+ return n ? mOe(e, n) : MJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var FJ = (function e(t) {
- var n = _Oe(t);
+var PJ = (function e(t) {
+ var n = gOe(t);
function r(e, t) {
- var r = n((e = bJ(e)).r, (t = bJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = PJ(e.opacity, t.opacity);
+ var r = n((e = yJ(e)).r, (t = yJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = NJ(e.opacity, t.opacity);
return function(t) {
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
};
@@ -60675,7 +60659,7 @@ var FJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function vOe(e, t) {
+function _Oe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -60683,14 +60667,14 @@ function vOe(e, t) {
return r;
};
}
-function yOe(e) {
+function vOe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function bOe(e, t) {
+function yOe(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
- for (o = 0; o < r; ++o) i[o] = zJ(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = RJ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
return function(e) {
for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -60699,7 +60683,7 @@ function bOe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function xOe(e, t) {
+function bOe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -60707,16 +60691,16 @@ function xOe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function IJ(e, t) {
+function FJ(e, t) {
return e = +e, t = +t, function(n) {
return e * (1 - n) + t * n;
};
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function SOe(e, t) {
+function xOe(e, t) {
var n = {}, r = {}, i;
- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = zJ(e[i], t[i]) : r[i] = t[i];
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = RJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -60724,45 +60708,45 @@ function SOe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var LJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, RJ = new RegExp(LJ.source, "g");
-function COe(e) {
+var IJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, LJ = new RegExp(IJ.source, "g");
+function SOe(e) {
return function() {
return e;
};
}
-function wOe(e) {
+function COe(e) {
return function(t) {
return e(t) + "";
};
}
-function TOe(e, t) {
- var n = LJ.lastIndex = RJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = LJ.exec(e)) && (i = RJ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
+function wOe(e, t) {
+ var n = IJ.lastIndex = LJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = IJ.exec(e)) && (i = LJ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
i: o,
- x: IJ(r, i)
- })), n = RJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? wOe(c[0].x) : COe(t) : (t = c.length, function(e) {
+ x: FJ(r, i)
+ })), n = LJ.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? COe(c[0].x) : SOe(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
}
//#endregion
//#region node_modules/d3-interpolate/src/value.js
-function zJ(e, t) {
+function RJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? NJ(t) : (n === "number" ? IJ : n === "string" ? (r = _J(t)) ? (t = r, FJ) : TOe : t instanceof _J ? FJ : t instanceof Date ? xOe : yOe(t) ? vOe : Array.isArray(t) ? bOe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? SOe : IJ)(e, t);
+ return t == null || n === "boolean" ? MJ(t) : (n === "number" ? FJ : n === "string" ? (r = gJ(t)) ? (t = r, PJ) : wOe : t instanceof gJ ? PJ : t instanceof Date ? bOe : vOe(t) ? _Oe : Array.isArray(t) ? yOe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? xOe : FJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function BJ(e, t) {
+function zJ(e, t) {
return e = +e, t = +t, function(n) {
return Math.round(e * (1 - n) + t * n);
};
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function EOe(e, t) {
- t === void 0 && (t = e, e = zJ);
+function TOe(e, t) {
+ t === void 0 && (t = e, e = RJ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
var t = Math.max(0, Math.min(r - 1, Math.floor(e *= r)));
@@ -60771,69 +60755,69 @@ function EOe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function DOe(e) {
+function EOe(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function VJ(e) {
+function BJ(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var HJ = [0, 1];
-function UJ(e) {
+var VJ = [0, 1];
+function HJ(e) {
return e;
}
-function WJ(e, t) {
+function UJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : DOe(isNaN(t) ? NaN : .5);
+ } : EOe(isNaN(t) ? NaN : .5);
}
-function OOe(e, t) {
+function DOe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function kOe(e, t, n) {
+function OOe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = WJ(i, r), a = n(o, a)) : (r = WJ(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = UJ(i, r), a = n(o, a)) : (r = UJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function AOe(e, t, n) {
+function kOe(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = WJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = UJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
var n = zq(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function GJ(e, t) {
+function WJ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function KJ() {
- var e = HJ, t = HJ, n = zJ, r, i, a, o = UJ, s, c, l;
+function GJ() {
+ var e = VJ, t = VJ, n = RJ, r, i, a, o = HJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== UJ && (o = OOe(e[0], e[n - 1])), s = n > 2 ? AOe : kOe, c = l = null, d;
+ return o !== HJ && (o = DOe(e[0], e[n - 1])), s = n > 2 ? kOe : OOe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
}
return d.invert = function(n) {
- return o(i((l ||= s(t, e.map(r), IJ))(n)));
+ return o(i((l ||= s(t, e.map(r), FJ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, VJ), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, BJ), u()) : e.slice();
}, d.range = function(e) {
return arguments.length ? (t = Array.from(e), u()) : t.slice();
}, d.rangeRound = function(e) {
- return t = Array.from(e), n = BJ, u();
+ return t = Array.from(e), n = zJ, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : UJ, u()) : o !== UJ;
+ return arguments.length ? (o = e ? !0 : HJ, u()) : o !== HJ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -60842,27 +60826,27 @@ function KJ() {
return r = e, i = t, u();
};
}
-function qJ() {
- return KJ()(UJ, UJ);
+function KJ() {
+ return GJ()(HJ, HJ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function jOe(e) {
+function AOe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function JJ(e, t) {
+function qJ(e, t) {
if (!isFinite(e) || e === 0) return null;
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
}
//#endregion
//#region node_modules/d3-format/src/exponent.js
-function YJ(e) {
- return e = JJ(Math.abs(e)), e ? e[1] : NaN;
+function JJ(e) {
+ return e = qJ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function MOe(e, t) {
+function jOe(e, t) {
return function(n, r) {
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
return a.reverse().join(t);
@@ -60870,7 +60854,7 @@ function MOe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function NOe(e) {
+function MOe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -60879,11 +60863,11 @@ function NOe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var POe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function XJ(e) {
- if (!(t = POe.exec(e))) throw Error("invalid format: " + e);
+var NOe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+function YJ(e) {
+ if (!(t = NOe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new ZJ({
+ return new XJ({
fill: t[1],
align: t[2],
sign: t[3],
@@ -60896,16 +60880,16 @@ function XJ(e) {
type: t[10]
});
}
-XJ.prototype = ZJ.prototype;
-function ZJ(e) {
+YJ.prototype = XJ.prototype;
+function XJ(e) {
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
}
-ZJ.prototype.toString = function() {
+XJ.prototype.toString = function() {
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function FOe(e) {
+function POe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -60921,46 +60905,46 @@ function FOe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var QJ;
-function IOe(e, t) {
- var n = JJ(e, t);
- if (!n) return QJ = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (QJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + JJ(e, Math.max(0, t + a - 1))[0];
+var ZJ;
+function FOe(e, t) {
+ var n = qJ(e, t);
+ if (!n) return ZJ = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (ZJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + qJ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function $J(e, t) {
- var n = JJ(e, t);
+function QJ(e, t) {
+ var n = qJ(e, t);
if (!n) return e + "";
var r = n[0], i = n[1];
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
}
//#endregion
//#region node_modules/d3-format/src/formatTypes.js
-var eY = {
+var $J = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: jOe,
+ d: AOe,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
- p: (e, t) => $J(e * 100, t),
- r: $J,
- s: IOe,
+ p: (e, t) => QJ(e * 100, t),
+ r: QJ,
+ s: FOe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
//#endregion
//#region node_modules/d3-format/src/identity.js
-function tY(e) {
+function eY(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var nY = Array.prototype.map, rY = [
+var tY = Array.prototype.map, nY = [
"y",
"z",
"a",
@@ -60979,13 +60963,13 @@ var nY = Array.prototype.map, rY = [
"Z",
"Y"
];
-function LOe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? tY : MOe(nY.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? tY : NOe(nY.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
+function IOe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? eY : jOe(tY.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? eY : MOe(tY.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
function l(e, l) {
- e = XJ(e);
+ e = YJ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
- y === "n" ? (g = !0, y = "g") : eY[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
- var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = eY[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : $J[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
+ var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = $J[y], C = /[defgprs%]/.test(y);
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
function w(e) {
var n = b, r = x, o, l, p;
@@ -60993,7 +60977,7 @@ function LOe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = FOe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && QJ !== void 0 ? rY[8 + QJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = POe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && ZJ !== void 0 ? nY[8 + ZJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
break;
@@ -61021,7 +61005,7 @@ function LOe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(YJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = XJ(e), e.type = "f", e), { suffix: rY[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(JJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = YJ(e), e.type = "f", e), { suffix: nY[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -61033,60 +61017,60 @@ function LOe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var iY, aY, oY;
-ROe({
+var rY, iY, aY;
+LOe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function ROe(e) {
- return iY = LOe(e), aY = iY.format, oY = iY.formatPrefix, iY;
+function LOe(e) {
+ return rY = IOe(e), iY = rY.format, aY = rY.formatPrefix, rY;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function zOe(e) {
- return Math.max(0, -YJ(Math.abs(e)));
+function ROe(e) {
+ return Math.max(0, -JJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function BOe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(YJ(t) / 3))) * 3 - YJ(Math.abs(e)));
+function zOe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(JJ(t) / 3))) * 3 - JJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function VOe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, YJ(t) - YJ(e)) + 1;
+function BOe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, JJ(t) - JJ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function sY(e, t, n, r) {
+function oY(e, t, n, r) {
var i = qq(e, t, n), a;
- switch (r = XJ(r ?? ",f"), r.type) {
+ switch (r = YJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = BOe(i, o)) && (r.precision = a), oY(r, o);
+ return r.precision == null && !isNaN(a = zOe(i, o)) && (r.precision = a), aY(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = VOe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = BOe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = zOe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = ROe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return aY(r);
+ return iY(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function cY(e) {
+function sY(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
return Gq(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return sY(r[0], r[r.length - 1], e ?? 10, n);
+ return oY(r[0], r[r.length - 1], e ?? 10, n);
}, e.nice = function(n) {
n ??= 10;
var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
@@ -61100,64 +61084,64 @@ function cY(e) {
return e;
}, e;
}
-function lY() {
- var e = qJ();
+function cY() {
+ var e = KJ();
return e.copy = function() {
- return GJ(e, lY());
- }, $q.apply(e, arguments), cY(e);
+ return WJ(e, cY());
+ }, $q.apply(e, arguments), sY(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function uY(e) {
+function lY(e) {
var t;
function n(e) {
return e == null || isNaN(e = +e) ? t : e;
}
return n.invert = n, n.domain = n.range = function(t) {
- return arguments.length ? (e = Array.from(t, VJ), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, BJ), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return uY(e).unknown(t);
- }, e = arguments.length ? Array.from(e, VJ) : [0, 1], cY(n);
+ return lY(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, BJ) : [0, 1], sY(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function dY(e, t) {
+function uY(e, t) {
e = e.slice();
var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
}
//#endregion
//#region node_modules/d3-scale/src/log.js
-function fY(e) {
+function dY(e) {
return Math.log(e);
}
-function pY(e) {
+function fY(e) {
return Math.exp(e);
}
-function HOe(e) {
+function VOe(e) {
return -Math.log(-e);
}
-function UOe(e) {
+function HOe(e) {
return -Math.exp(-e);
}
-function WOe(e) {
+function UOe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function GOe(e) {
- return e === 10 ? WOe : e === Math.E ? Math.exp : (t) => e ** +t;
+function WOe(e) {
+ return e === 10 ? UOe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function KOe(e) {
+function GOe(e) {
return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
}
-function mY(e) {
+function pY(e) {
return (t, n) => -e(-t, n);
}
-function hY(e) {
- let t = e(fY, pY), n = t.domain, r = 10, i, a;
+function mY(e) {
+ let t = e(dY, fY), n = t.domain, r = 10, i, a;
function o() {
- return i = KOe(r), a = GOe(r), n()[0] < 0 ? (i = mY(i), a = mY(a), e(HOe, UOe)) : e(fY, pY), t;
+ return i = GOe(r), a = WOe(r), n()[0] < 0 ? (i = pY(i), a = pY(a), e(VOe, HOe)) : e(dY, fY), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -61181,96 +61165,96 @@ function hY(e) {
} else m = Gq(l, u, Math.min(u - l, p)).map(a);
return c ? m.reverse() : m;
}, t.tickFormat = (e, n) => {
- if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = XJ(n)).precision == null && (n.trim = !0), n = aY(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = YJ(n)).precision == null && (n.trim = !0), n = iY(n)), e === Infinity) return n;
let o = Math.max(1, r * e / t.ticks().length);
return (e) => {
let t = e / a(Math.round(i(e)));
return t * r < r - .5 && (t *= r), t <= o ? n(e) : "";
};
- }, t.nice = () => n(dY(n(), {
+ }, t.nice = () => n(uY(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function gY() {
- let e = hY(KJ()).domain([1, 10]);
- return e.copy = () => GJ(e, gY()).base(e.base()), $q.apply(e, arguments), e;
+function hY() {
+ let e = mY(GJ()).domain([1, 10]);
+ return e.copy = () => WJ(e, hY()).base(e.base()), $q.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function _Y(e) {
+function gY(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function vY(e) {
+function _Y(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function yY(e) {
- var t = 1, n = e(_Y(t), vY(t));
+function vY(e) {
+ var t = 1, n = e(gY(t), _Y(t));
return n.constant = function(n) {
- return arguments.length ? e(_Y(t = +n), vY(t)) : t;
- }, cY(n);
+ return arguments.length ? e(gY(t = +n), _Y(t)) : t;
+ }, sY(n);
}
-function bY() {
- var e = yY(KJ());
+function yY() {
+ var e = vY(GJ());
return e.copy = function() {
- return GJ(e, bY()).constant(e.constant());
+ return WJ(e, yY()).constant(e.constant());
}, $q.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function xY(e) {
+function bY(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function qOe(e) {
+function KOe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function JOe(e) {
+function qOe(e) {
return e < 0 ? -e * e : e * e;
}
-function SY(e) {
- var t = e(UJ, UJ), n = 1;
+function xY(e) {
+ var t = e(HJ, HJ), n = 1;
function r() {
- return n === 1 ? e(UJ, UJ) : n === .5 ? e(qOe, JOe) : e(xY(n), xY(1 / n));
+ return n === 1 ? e(HJ, HJ) : n === .5 ? e(KOe, qOe) : e(bY(n), bY(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, cY(t);
+ }, sY(t);
}
-function CY() {
- var e = SY(KJ());
+function SY() {
+ var e = xY(GJ());
return e.copy = function() {
- return GJ(e, CY()).exponent(e.exponent());
+ return WJ(e, SY()).exponent(e.exponent());
}, $q.apply(e, arguments), e;
}
-function YOe() {
- return CY.apply(null, arguments).exponent(.5);
+function JOe() {
+ return SY.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function wY(e) {
+function CY(e) {
return Math.sign(e) * e * e;
}
-function XOe(e) {
+function YOe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function TY() {
- var e = qJ(), t = [0, 1], n = !1, r;
+function wY() {
+ var e = KJ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = XOe(e(t));
+ var i = YOe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert(wY(t));
+ return e.invert(CY(t));
}, i.domain = function(t) {
return arguments.length ? (e.domain(t), i) : e.domain();
}, i.range = function(n) {
- return arguments.length ? (e.range((t = Array.from(n, VJ)).map(wY)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, BJ)).map(CY)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -61280,16 +61264,16 @@ function TY() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return TY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, $q.apply(i, arguments), cY(i);
+ return wY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, $q.apply(i, arguments), sY(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function EY() {
+function TY() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = tOe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = $De(e, r / i);
return a;
}
function a(e) {
@@ -61310,12 +61294,12 @@ function EY() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return EY().domain(e).range(t).unknown(r);
+ return TY().domain(e).range(t).unknown(r);
}, $q.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function DY() {
+function EY() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
return e != null && e <= e ? i[zq(r, e, 0, n)] : a;
@@ -61337,12 +61321,12 @@ function DY() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return DY().domain([e, t]).range(i).unknown(a);
- }, $q.apply(cY(o), arguments);
+ return EY().domain([e, t]).range(i).unknown(a);
+ }, $q.apply(sY(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function OY() {
+function DY() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
return i != null && i <= i ? t[zq(e, i, 0, r)] : n;
@@ -61357,13 +61341,13 @@ function OY() {
}, i.unknown = function(e) {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
- return OY().domain(e).range(t).unknown(n);
+ return DY().domain(e).range(t).unknown(n);
}, $q.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var kY = /* @__PURE__ */ new Date(), AY = /* @__PURE__ */ new Date();
-function jY(e, t, n, r) {
+var OY = /* @__PURE__ */ new Date(), kY = /* @__PURE__ */ new Date();
+function AY(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -61378,226 +61362,226 @@ function jY(e, t, n, r) {
o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
while (s < n && n < r);
return o;
- }, i.filter = (n) => jY((t) => {
+ }, i.filter = (n) => AY((t) => {
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
}, (e, r) => {
if (e >= e) {
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
else for (; --r >= 0;) for (; t(e, 1), !n(e););
}
- }), n && (i.count = (t, r) => (kY.setTime(+t), AY.setTime(+r), e(kY), e(AY), Math.floor(n(kY, AY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
+ }), n && (i.count = (t, r) => (OY.setTime(+t), kY.setTime(+r), e(OY), e(kY), Math.floor(n(OY, kY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
}
//#endregion
//#region node_modules/d3-time/src/millisecond.js
-var MY = jY(() => {}, (e, t) => {
+var jY = AY(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-MY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? jY((t) => {
+jY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? AY((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : MY), MY.range;
+}, (t, n) => (n - t) / e) : jY), jY.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var NY = 1e3, PY = NY * 60, FY = PY * 60, IY = FY * 24, LY = IY * 7, RY = IY * 30, zY = IY * 365, BY = jY((e) => {
+var MY = 1e3, NY = MY * 60, PY = NY * 60, FY = PY * 24, IY = FY * 7, LY = FY * 30, RY = FY * 365, zY = AY((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * NY);
-}, (e, t) => (t - e) / NY, (e) => e.getUTCSeconds());
-BY.range;
+ e.setTime(+e + t * MY);
+}, (e, t) => (t - e) / MY, (e) => e.getUTCSeconds());
+zY.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var VY = jY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * NY);
+var BY = AY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * MY);
}, (e, t) => {
- e.setTime(+e + t * PY);
-}, (e, t) => (t - e) / PY, (e) => e.getMinutes());
-VY.range;
-var HY = jY((e) => {
+ e.setTime(+e + t * NY);
+}, (e, t) => (t - e) / NY, (e) => e.getMinutes());
+BY.range;
+var VY = AY((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * PY);
-}, (e, t) => (t - e) / PY, (e) => e.getUTCMinutes());
-HY.range;
+ e.setTime(+e + t * NY);
+}, (e, t) => (t - e) / NY, (e) => e.getUTCMinutes());
+VY.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var UY = jY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * NY - e.getMinutes() * PY);
+var HY = AY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * MY - e.getMinutes() * NY);
}, (e, t) => {
- e.setTime(+e + t * FY);
-}, (e, t) => (t - e) / FY, (e) => e.getHours());
-UY.range;
-var WY = jY((e) => {
+ e.setTime(+e + t * PY);
+}, (e, t) => (t - e) / PY, (e) => e.getHours());
+HY.range;
+var UY = AY((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * FY);
-}, (e, t) => (t - e) / FY, (e) => e.getUTCHours());
-WY.range;
+ e.setTime(+e + t * PY);
+}, (e, t) => (t - e) / PY, (e) => e.getUTCHours());
+UY.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var GY = jY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * PY) / IY, (e) => e.getDate() - 1);
-GY.range;
-var KY = jY((e) => {
+var WY = AY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * NY) / FY, (e) => e.getDate() - 1);
+WY.range;
+var GY = AY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / IY, (e) => e.getUTCDate() - 1);
-KY.range;
-var qY = jY((e) => {
+}, (e, t) => (t - e) / FY, (e) => e.getUTCDate() - 1);
+GY.range;
+var KY = AY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / IY, (e) => Math.floor(e / IY));
-qY.range;
+}, (e, t) => (t - e) / FY, (e) => Math.floor(e / FY));
+KY.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function JY(e) {
- return jY((t) => {
+function qY(e) {
+ return AY((t) => {
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setDate(e.getDate() + t * 7);
- }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * PY) / LY);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * NY) / IY);
}
-var YY = JY(0), XY = JY(1), ZOe = JY(2), QOe = JY(3), ZY = JY(4), $Oe = JY(5), eke = JY(6);
-YY.range, XY.range, ZOe.range, QOe.range, ZY.range, $Oe.range, eke.range;
-function QY(e) {
- return jY((t) => {
+var JY = qY(0), YY = qY(1), XOe = qY(2), ZOe = qY(3), XY = qY(4), QOe = qY(5), $Oe = qY(6);
+JY.range, YY.range, XOe.range, ZOe.range, XY.range, QOe.range, $Oe.range;
+function ZY(e) {
+ return AY((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t * 7);
- }, (e, t) => (t - e) / LY);
+ }, (e, t) => (t - e) / IY);
}
-var $Y = QY(0), eX = QY(1), tke = QY(2), nke = QY(3), tX = QY(4), rke = QY(5), ike = QY(6);
-$Y.range, eX.range, tke.range, nke.range, tX.range, rke.range, ike.range;
+var QY = ZY(0), $Y = ZY(1), eke = ZY(2), tke = ZY(3), eX = ZY(4), nke = ZY(5), rke = ZY(6);
+QY.range, $Y.range, eke.range, tke.range, eX.range, nke.range, rke.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var nX = jY((e) => {
+var tX = AY((e) => {
e.setDate(1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setMonth(e.getMonth() + t);
}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
-nX.range;
-var rX = jY((e) => {
+tX.range;
+var nX = AY((e) => {
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCMonth(e.getUTCMonth() + t);
}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
-rX.range;
+nX.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var iX = jY((e) => {
+var rX = AY((e) => {
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setFullYear(e.getFullYear() + t);
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
-iX.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : jY((t) => {
+rX.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : AY((t) => {
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, (t, n) => {
t.setFullYear(t.getFullYear() + n * e);
-}), iX.range;
-var aX = jY((e) => {
+}), rX.range;
+var iX = AY((e) => {
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCFullYear(e.getUTCFullYear() + t);
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
-aX.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : jY((t) => {
+iX.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : AY((t) => {
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, (t, n) => {
t.setUTCFullYear(t.getUTCFullYear() + n * e);
-}), aX.range;
+}), iX.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function oX(e, t, n, r, i, a) {
+function aX(e, t, n, r, i, a) {
let o = [
[
- BY,
+ zY,
1,
- NY
+ MY
],
[
- BY,
+ zY,
5,
- 5 * NY
+ 5 * MY
],
[
- BY,
+ zY,
15,
- 15 * NY
+ 15 * MY
],
[
- BY,
+ zY,
30,
- 30 * NY
+ 30 * MY
],
[
a,
1,
- PY
+ NY
],
[
a,
5,
- 5 * PY
+ 5 * NY
],
[
a,
15,
- 15 * PY
+ 15 * NY
],
[
a,
30,
- 30 * PY
+ 30 * NY
],
[
i,
1,
- FY
+ PY
],
[
i,
3,
- 3 * FY
+ 3 * PY
],
[
i,
6,
- 6 * FY
+ 6 * PY
],
[
i,
12,
- 12 * FY
+ 12 * PY
],
[
r,
1,
- IY
+ FY
],
[
r,
2,
- 2 * IY
+ 2 * FY
],
[
n,
1,
- LY
+ IY
],
[
t,
1,
- RY
+ LY
],
[
t,
3,
- 3 * RY
+ 3 * LY
],
[
e,
1,
- zY
+ RY
]
];
function s(e, t, n) {
@@ -61608,31 +61592,31 @@ function oX(e, t, n, r, i, a) {
}
function c(t, n, r) {
let i = Math.abs(n - t) / r, a = Iq(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(qq(t / zY, n / zY, r));
- if (a === 0) return MY.every(Math.max(qq(t, n, r), 1));
+ if (a === o.length) return e.every(qq(t / RY, n / RY, r));
+ if (a === 0) return jY.every(Math.max(qq(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
return s.every(c);
}
return [s, c];
}
-var [ake, oke] = oX(aX, rX, $Y, qY, WY, HY), [ske, cke] = oX(iX, nX, YY, GY, UY, VY);
+var [ike, ake] = aX(iX, nX, QY, KY, UY, VY), [oke, ske] = aX(rX, tX, JY, WY, HY, BY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function sX(e) {
+function oX(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
return t.setFullYear(e.y), t;
}
return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
}
-function cX(e) {
+function sX(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
return t.setUTCFullYear(e.y), t;
}
return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
}
-function lX(e, t, n) {
+function cX(e, t, n) {
return {
y: e,
m: t,
@@ -61643,133 +61627,133 @@ function lX(e, t, n) {
L: 0
};
}
-function lke(e) {
- var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = pX(i), u = mX(i), d = pX(a), f = mX(a), p = pX(o), m = mX(o), h = pX(s), g = mX(s), _ = pX(c), v = mX(c), y = {
+function cke(e) {
+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = fX(i), u = pX(i), d = fX(a), f = pX(a), p = fX(o), m = pX(o), h = fX(s), g = pX(s), _ = fX(c), v = pX(c), y = {
a: N,
A: P,
b: ee,
B: F,
c: null,
- d: yX,
- e: yX,
- f: Mke,
- g: Hke,
- G: Wke,
- H: kke,
- I: Ake,
- j: jke,
- L: bX,
- m: Nke,
- M: Pke,
+ d: vX,
+ e: vX,
+ f: jke,
+ g: Vke,
+ G: Uke,
+ H: Oke,
+ I: kke,
+ j: Ake,
+ L: yX,
+ m: Mke,
+ M: Nke,
p: I,
q: te,
- Q: EX,
- s: DX,
- S: Fke,
- u: Ike,
- U: Lke,
- V: Rke,
- w: zke,
- W: Bke,
+ Q: TX,
+ s: EX,
+ S: Pke,
+ u: Fke,
+ U: Ike,
+ V: Lke,
+ w: Rke,
+ W: zke,
x: null,
X: null,
- y: Vke,
- Y: Uke,
- Z: Gke,
- "%": TX
+ y: Bke,
+ Y: Hke,
+ Z: Wke,
+ "%": wX
}, b = {
a: ne,
A: re,
b: ie,
B: ae,
c: null,
- d: SX,
- e: SX,
- f: Yke,
- g: aAe,
- G: sAe,
- H: Kke,
- I: qke,
- j: Jke,
- L: CX,
- m: Xke,
- M: Zke,
+ d: xX,
+ e: xX,
+ f: Jke,
+ g: iAe,
+ G: oAe,
+ H: Gke,
+ I: Kke,
+ j: qke,
+ L: SX,
+ m: Yke,
+ M: Xke,
p: oe,
q: se,
- Q: EX,
- s: DX,
- S: Qke,
- u: $ke,
- U: eAe,
- V: tAe,
- w: nAe,
- W: rAe,
+ Q: TX,
+ s: EX,
+ S: Zke,
+ u: Qke,
+ U: $ke,
+ V: eAe,
+ w: tAe,
+ W: nAe,
x: null,
X: null,
- y: iAe,
- Y: oAe,
- Z: cAe,
- "%": TX
+ y: rAe,
+ Y: aAe,
+ Z: sAe,
+ "%": wX
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: _X,
- e: _X,
- f: Tke,
- g: gX,
- G: hX,
- H: vX,
- I: vX,
- j: xke,
- L: wke,
- m: bke,
- M: Ske,
+ d: gX,
+ e: gX,
+ f: wke,
+ g: hX,
+ G: mX,
+ H: _X,
+ I: _X,
+ j: bke,
+ L: Cke,
+ m: yke,
+ M: xke,
p: T,
- q: yke,
- Q: Dke,
- s: Oke,
- S: Cke,
- u: mke,
- U: hke,
- V: gke,
- w: pke,
- W: _ke,
+ q: vke,
+ Q: Eke,
+ s: Dke,
+ S: Ske,
+ u: pke,
+ U: mke,
+ V: hke,
+ w: fke,
+ W: gke,
x: j,
X: M,
- y: gX,
- Y: hX,
- Z: vke,
- "%": Eke
+ y: hX,
+ Y: mX,
+ Z: _ke,
+ "%": Tke
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
return function(n) {
var r = [], i = -1, a = 0, o = e.length, s, c, l;
- for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = uX[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = lX[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
return r.push(e.slice(a, i)), r.join("");
};
}
function C(e, t) {
return function(n) {
- var r = lX(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = cX(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
if (i != n.length) return null;
if ("Q" in r) return new Date(r.Q);
if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
if (r.V < 1 || r.V > 53) return null;
- "w" in r || (r.w = 1), "Z" in r ? (a = cX(lX(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? eX.ceil(a) : eX(a), a = KY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = sX(lX(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? XY.ceil(a) : XY(a), a = GY.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
- } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? cX(lX(r.y, 0, 1)).getUTCDay() : sX(lX(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
- return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, cX(r)) : sX(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = sX(cX(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? $Y.ceil(a) : $Y(a), a = GY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = oX(cX(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? YY.ceil(a) : YY(a), a = WY.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? sX(cX(r.y, 0, 1)).getUTCDay() : oX(cX(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, sX(r)) : oX(r);
};
}
function w(e, t, n, r) {
for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
if (r >= o) return -1;
if (s = t.charCodeAt(i++), s === 37) {
- if (s = t.charAt(i++), c = x[s in uX ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in lX ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -61866,244 +61850,244 @@ function lke(e) {
}
};
}
-var uX = {
+var lX = {
"-": "",
_: " ",
0: "0"
-}, dX = /^\s*\d+/, uke = /^%/, dke = /[\\^$*+?|[\]().{}]/g;
-function fX(e, t, n) {
+}, uX = /^\s*\d+/, lke = /^%/, uke = /[\\^$*+?|[\]().{}]/g;
+function dX(e, t, n) {
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
-function fke(e) {
- return e.replace(dke, "\\$&");
+function dke(e) {
+ return e.replace(uke, "\\$&");
}
-function pX(e) {
- return RegExp("^(?:" + e.map(fke).join("|") + ")", "i");
+function fX(e) {
+ return RegExp("^(?:" + e.map(dke).join("|") + ")", "i");
}
-function mX(e) {
+function pX(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function pke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 1));
+function fke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function mke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 1));
+function pke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function hke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function mke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function gke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function hke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function _ke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function gke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function hX(e, t, n) {
- var r = dX.exec(t.slice(n, n + 4));
+function mX(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function gX(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function hX(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function vke(e, t, n) {
+function _ke(e, t, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
-function yke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 1));
+function vke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function bke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function yke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function _X(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function gX(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function xke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 3));
+function bke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function vX(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function _X(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function Ske(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function xke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function Cke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 2));
+function Ske(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function wke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 3));
+function Cke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function Tke(e, t, n) {
- var r = dX.exec(t.slice(n, n + 6));
+function wke(e, t, n) {
+ var r = uX.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function Eke(e, t, n) {
- var r = uke.exec(t.slice(n, n + 1));
+function Tke(e, t, n) {
+ var r = lke.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function Dke(e, t, n) {
- var r = dX.exec(t.slice(n));
+function Eke(e, t, n) {
+ var r = uX.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function Oke(e, t, n) {
- var r = dX.exec(t.slice(n));
+function Dke(e, t, n) {
+ var r = uX.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function yX(e, t) {
- return fX(e.getDate(), t, 2);
+function vX(e, t) {
+ return dX(e.getDate(), t, 2);
+}
+function Oke(e, t) {
+ return dX(e.getHours(), t, 2);
}
function kke(e, t) {
- return fX(e.getHours(), t, 2);
+ return dX(e.getHours() % 12 || 12, t, 2);
}
function Ake(e, t) {
- return fX(e.getHours() % 12 || 12, t, 2);
+ return dX(1 + WY.count(rX(e), e), t, 3);
}
-function jke(e, t) {
- return fX(1 + GY.count(iX(e), e), t, 3);
+function yX(e, t) {
+ return dX(e.getMilliseconds(), t, 3);
}
-function bX(e, t) {
- return fX(e.getMilliseconds(), t, 3);
+function jke(e, t) {
+ return yX(e, t) + "000";
}
function Mke(e, t) {
- return bX(e, t) + "000";
+ return dX(e.getMonth() + 1, t, 2);
}
function Nke(e, t) {
- return fX(e.getMonth() + 1, t, 2);
+ return dX(e.getMinutes(), t, 2);
}
function Pke(e, t) {
- return fX(e.getMinutes(), t, 2);
-}
-function Fke(e, t) {
- return fX(e.getSeconds(), t, 2);
+ return dX(e.getSeconds(), t, 2);
}
-function Ike(e) {
+function Fke(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function Lke(e, t) {
- return fX(YY.count(iX(e) - 1, e), t, 2);
+function Ike(e, t) {
+ return dX(JY.count(rX(e) - 1, e), t, 2);
}
-function xX(e) {
+function bX(e) {
var t = e.getDay();
- return t >= 4 || t === 0 ? ZY(e) : ZY.ceil(e);
+ return t >= 4 || t === 0 ? XY(e) : XY.ceil(e);
}
-function Rke(e, t) {
- return e = xX(e), fX(ZY.count(iX(e), e) + (iX(e).getDay() === 4), t, 2);
+function Lke(e, t) {
+ return e = bX(e), dX(XY.count(rX(e), e) + (rX(e).getDay() === 4), t, 2);
}
-function zke(e) {
+function Rke(e) {
return e.getDay();
}
+function zke(e, t) {
+ return dX(YY.count(rX(e) - 1, e), t, 2);
+}
function Bke(e, t) {
- return fX(XY.count(iX(e) - 1, e), t, 2);
+ return dX(e.getFullYear() % 100, t, 2);
}
function Vke(e, t) {
- return fX(e.getFullYear() % 100, t, 2);
+ return e = bX(e), dX(e.getFullYear() % 100, t, 2);
}
function Hke(e, t) {
- return e = xX(e), fX(e.getFullYear() % 100, t, 2);
+ return dX(e.getFullYear() % 1e4, t, 4);
}
function Uke(e, t) {
- return fX(e.getFullYear() % 1e4, t, 4);
-}
-function Wke(e, t) {
var n = e.getDay();
- return e = n >= 4 || n === 0 ? ZY(e) : ZY.ceil(e), fX(e.getFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? XY(e) : XY.ceil(e), dX(e.getFullYear() % 1e4, t, 4);
}
-function Gke(e) {
+function Wke(e) {
var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + fX(t / 60 | 0, "0", 2) + fX(t % 60, "0", 2);
+ return (t > 0 ? "-" : (t *= -1, "+")) + dX(t / 60 | 0, "0", 2) + dX(t % 60, "0", 2);
}
-function SX(e, t) {
- return fX(e.getUTCDate(), t, 2);
+function xX(e, t) {
+ return dX(e.getUTCDate(), t, 2);
+}
+function Gke(e, t) {
+ return dX(e.getUTCHours(), t, 2);
}
function Kke(e, t) {
- return fX(e.getUTCHours(), t, 2);
+ return dX(e.getUTCHours() % 12 || 12, t, 2);
}
function qke(e, t) {
- return fX(e.getUTCHours() % 12 || 12, t, 2);
+ return dX(1 + GY.count(iX(e), e), t, 3);
}
-function Jke(e, t) {
- return fX(1 + KY.count(aX(e), e), t, 3);
+function SX(e, t) {
+ return dX(e.getUTCMilliseconds(), t, 3);
}
-function CX(e, t) {
- return fX(e.getUTCMilliseconds(), t, 3);
+function Jke(e, t) {
+ return SX(e, t) + "000";
}
function Yke(e, t) {
- return CX(e, t) + "000";
+ return dX(e.getUTCMonth() + 1, t, 2);
}
function Xke(e, t) {
- return fX(e.getUTCMonth() + 1, t, 2);
+ return dX(e.getUTCMinutes(), t, 2);
}
function Zke(e, t) {
- return fX(e.getUTCMinutes(), t, 2);
+ return dX(e.getUTCSeconds(), t, 2);
}
-function Qke(e, t) {
- return fX(e.getUTCSeconds(), t, 2);
-}
-function $ke(e) {
+function Qke(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function eAe(e, t) {
- return fX($Y.count(aX(e) - 1, e), t, 2);
+function $ke(e, t) {
+ return dX(QY.count(iX(e) - 1, e), t, 2);
}
-function wX(e) {
+function CX(e) {
var t = e.getUTCDay();
- return t >= 4 || t === 0 ? tX(e) : tX.ceil(e);
+ return t >= 4 || t === 0 ? eX(e) : eX.ceil(e);
}
-function tAe(e, t) {
- return e = wX(e), fX(tX.count(aX(e), e) + (aX(e).getUTCDay() === 4), t, 2);
+function eAe(e, t) {
+ return e = CX(e), dX(eX.count(iX(e), e) + (iX(e).getUTCDay() === 4), t, 2);
}
-function nAe(e) {
+function tAe(e) {
return e.getUTCDay();
}
+function nAe(e, t) {
+ return dX($Y.count(iX(e) - 1, e), t, 2);
+}
function rAe(e, t) {
- return fX(eX.count(aX(e) - 1, e), t, 2);
+ return dX(e.getUTCFullYear() % 100, t, 2);
}
function iAe(e, t) {
- return fX(e.getUTCFullYear() % 100, t, 2);
+ return e = CX(e), dX(e.getUTCFullYear() % 100, t, 2);
}
function aAe(e, t) {
- return e = wX(e), fX(e.getUTCFullYear() % 100, t, 2);
+ return dX(e.getUTCFullYear() % 1e4, t, 4);
}
function oAe(e, t) {
- return fX(e.getUTCFullYear() % 1e4, t, 4);
-}
-function sAe(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? tX(e) : tX.ceil(e), fX(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? eX(e) : eX.ceil(e), dX(e.getUTCFullYear() % 1e4, t, 4);
}
-function cAe() {
+function sAe() {
return "+0000";
}
-function TX() {
+function wX() {
return "%";
}
-function EX(e) {
+function TX(e) {
return +e;
}
-function DX(e) {
+function EX(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var OX, kX, AX;
-lAe({
+var DX, OX, kX;
+cAe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -62155,26 +62139,26 @@ lAe({
"Dec"
]
});
-function lAe(e) {
- return OX = lke(e), kX = OX.format, OX.parse, AX = OX.utcFormat, OX.utcParse, OX;
+function cAe(e) {
+ return DX = cke(e), OX = DX.format, DX.parse, kX = DX.utcFormat, DX.utcParse, DX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function uAe(e) {
+function lAe(e) {
return new Date(e);
}
-function dAe(e) {
+function uAe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function jX(e, t, n, r, i, a, o, s, c, l) {
- var u = qJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
+function AX(e, t, n, r, i, a, o, s, c, l) {
+ var u = KJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
function x(e) {
return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
}
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, dAe)) : f().map(uAe);
+ return arguments.length ? f(Array.from(e, uAe)) : f().map(lAe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -62182,23 +62166,23 @@ function jX(e, t, n, r, i, a, o, s, c, l) {
return t == null ? x : l(t);
}, u.nice = function(e) {
var n = f();
- return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(dY(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(uY(n, e)) : u;
}, u.copy = function() {
- return GJ(u, jX(e, t, n, r, i, a, o, s, c, l));
+ return WJ(u, AX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function fAe() {
- return $q.apply(jX(ske, cke, iX, nX, YY, GY, UY, VY, BY, kX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function dAe() {
+ return $q.apply(AX(oke, ske, rX, tX, JY, WY, HY, BY, zY, OX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function pAe() {
- return $q.apply(jX(ake, oke, aX, rX, $Y, KY, WY, HY, BY, AX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function fAe() {
+ return $q.apply(AX(ike, ake, iX, nX, QY, GY, UY, VY, zY, kX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function MX() {
- var e = 0, t = 1, n, r, i, a, o = UJ, s = !1, c;
+function jX() {
+ var e = 0, t = 1, n, r, i, a, o = HJ, s = !1, c;
function l(e) {
return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));
}
@@ -62215,46 +62199,46 @@ function MX() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(zJ), l.rangeRound = u(BJ), l.unknown = function(e) {
+ return l.range = u(RJ), l.rangeRound = u(zJ), l.unknown = function(e) {
return arguments.length ? (c = e, l) : c;
}, function(o) {
return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;
};
}
-function NX(e, t) {
+function MX(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
-function PX() {
- var e = cY(MX()(UJ));
+function NX() {
+ var e = sY(jX()(HJ));
return e.copy = function() {
- return NX(e, PX());
+ return MX(e, NX());
}, eJ.apply(e, arguments);
}
-function FX() {
- var e = hY(MX()).domain([1, 10]);
+function PX() {
+ var e = mY(jX()).domain([1, 10]);
return e.copy = function() {
- return NX(e, FX()).base(e.base());
+ return MX(e, PX()).base(e.base());
}, eJ.apply(e, arguments);
}
-function IX() {
- var e = yY(MX());
+function FX() {
+ var e = vY(jX());
return e.copy = function() {
- return NX(e, IX()).constant(e.constant());
+ return MX(e, FX()).constant(e.constant());
}, eJ.apply(e, arguments);
}
-function LX() {
- var e = SY(MX());
+function IX() {
+ var e = xY(jX());
return e.copy = function() {
- return NX(e, LX()).exponent(e.exponent());
+ return MX(e, IX()).exponent(e.exponent());
}, eJ.apply(e, arguments);
}
-function mAe() {
- return LX.apply(null, arguments).exponent(.5);
+function pAe() {
+ return IX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function RX() {
- var e = [], t = UJ;
+function LX() {
+ var e = [], t = HJ;
function n(n) {
if (n != null && !isNaN(n = +n)) return t((zq(e, n, 1) - 1) / (e.length - 1));
}
@@ -62268,15 +62252,15 @@ function RX() {
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => eOe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => QDe(e, r / t));
}, n.copy = function() {
- return RX(t).domain(e);
+ return LX(t).domain(e);
}, eJ.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function zX() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = UJ, u, d = !1, f;
+function RX() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = HJ, u, d = !1, f;
function p(e) {
return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));
}
@@ -62294,7 +62278,7 @@ function zX() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = EOe(e, [
+ return arguments.length ? ([n, r, i] = t, l = TOe(e, [
n,
r,
i
@@ -62305,121 +62289,121 @@ function zX() {
];
};
}
- return p.range = m(zJ), p.rangeRound = m(BJ), p.unknown = function(e) {
+ return p.range = m(RJ), p.rangeRound = m(zJ), p.unknown = function(e) {
return arguments.length ? (f = e, p) : f;
}, function(l) {
return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;
};
}
-function BX() {
- var e = cY(zX()(UJ));
+function zX() {
+ var e = sY(RX()(HJ));
return e.copy = function() {
- return NX(e, BX());
+ return MX(e, zX());
}, eJ.apply(e, arguments);
}
-function VX() {
- var e = hY(zX()).domain([
+function BX() {
+ var e = mY(RX()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return NX(e, VX()).base(e.base());
+ return MX(e, BX()).base(e.base());
}, eJ.apply(e, arguments);
}
-function HX() {
- var e = yY(zX());
+function VX() {
+ var e = vY(RX());
return e.copy = function() {
- return NX(e, HX()).constant(e.constant());
+ return MX(e, VX()).constant(e.constant());
}, eJ.apply(e, arguments);
}
-function UX() {
- var e = SY(zX());
+function HX() {
+ var e = xY(RX());
return e.copy = function() {
- return NX(e, UX()).exponent(e.exponent());
+ return MX(e, HX()).exponent(e.exponent());
}, eJ.apply(e, arguments);
}
-function hAe() {
- return UX.apply(null, arguments).exponent(.5);
+function mAe() {
+ return HX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var WX = /* @__PURE__ */ St({
+var UX = /* @__PURE__ */ St({
scaleBand: () => rJ,
- scaleDiverging: () => BX,
- scaleDivergingLog: () => VX,
- scaleDivergingPow: () => UX,
- scaleDivergingSqrt: () => hAe,
- scaleDivergingSymlog: () => HX,
- scaleIdentity: () => uY,
+ scaleDiverging: () => zX,
+ scaleDivergingLog: () => BX,
+ scaleDivergingPow: () => HX,
+ scaleDivergingSqrt: () => mAe,
+ scaleDivergingSymlog: () => VX,
+ scaleIdentity: () => lY,
scaleImplicit: () => tJ,
- scaleLinear: () => lY,
- scaleLog: () => gY,
+ scaleLinear: () => cY,
+ scaleLog: () => hY,
scaleOrdinal: () => nJ,
- scalePoint: () => rOe,
- scalePow: () => CY,
- scaleQuantile: () => EY,
- scaleQuantize: () => DY,
- scaleRadial: () => TY,
- scaleSequential: () => PX,
- scaleSequentialLog: () => FX,
- scaleSequentialPow: () => LX,
- scaleSequentialQuantile: () => RX,
- scaleSequentialSqrt: () => mAe,
- scaleSequentialSymlog: () => IX,
- scaleSqrt: () => YOe,
- scaleSymlog: () => bY,
- scaleThreshold: () => OY,
- scaleTime: () => fAe,
- scaleUtc: () => pAe,
- tickFormat: () => sY
+ scalePoint: () => tOe,
+ scalePow: () => SY,
+ scaleQuantile: () => TY,
+ scaleQuantize: () => EY,
+ scaleRadial: () => wY,
+ scaleSequential: () => NX,
+ scaleSequentialLog: () => PX,
+ scaleSequentialPow: () => IX,
+ scaleSequentialQuantile: () => LX,
+ scaleSequentialSqrt: () => pAe,
+ scaleSequentialSymlog: () => FX,
+ scaleSqrt: () => JOe,
+ scaleSymlog: () => yY,
+ scaleThreshold: () => DY,
+ scaleTime: () => dAe,
+ scaleUtc: () => fAe,
+ tickFormat: () => oY
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function gAe(e) {
- if (e in WX) return WX[e]();
- var t = `scale${AB(e)}`;
- if (t in WX) return WX[t]();
+function hAe(e) {
+ if (e in UX) return UX[e]();
+ var t = `scale${jB(e)}`;
+ if (t in UX) return UX[t]();
}
-function GX(e, t, n) {
+function WX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = gAe(e);
+ var r = hAe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function KX(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? GX(e.scale, n, r) : GX(t, n, r);
+function GX(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? WX(e.scale, n, r) : WX(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function _Ae(e) {
- return `scale${AB(e)}`;
+function gAe(e) {
+ return `scale${jB(e)}`;
}
-function vAe(e) {
- return _Ae(e) in WX;
+function _Ae(e) {
+ return gAe(e) in UX;
}
-var qX = (e, t, n) => {
+var KX = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return vAe(r) ? r : "point";
+ if (typeof r == "string") return _Ae(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function yAe(e, t) {
+function vAe(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
}
return n;
}
-function JX(e, t) {
+function qX(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = yAe(r, e);
+ var t = vAe(r, e);
if (t <= 0) return n[0];
if (t >= n.length) return n[n.length - 1];
var i = r[t - 1] ?? 0, a = r[t] ?? 0;
@@ -62429,12 +62413,12 @@ function JX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function bAe(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : JX(e, void 0);
+function yAe(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : qX(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function YX(e, t) {
+function JX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62444,30 +62428,30 @@ function YX(e, t) {
}
return n;
}
-function XX(e) {
+function YX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? YX(Object(n), !0).forEach(function(t) {
- xAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YX(Object(n)).forEach(function(t) {
+ t % 2 ? JX(Object(n), !0).forEach(function(t) {
+ bAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xAe(e, t, n) {
- return (t = SAe(t)) in e ? Object.defineProperty(e, t, {
+function bAe(e, t, n) {
+ return (t = xAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SAe(e) {
- var t = CAe(e, "string");
+function xAe(e) {
+ var t = SAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CAe(e, t) {
+function SAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62477,7 +62461,7 @@ function CAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ZX = [0, "auto"], QX = {
+var XX = [0, "auto"], ZX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -62506,13 +62490,13 @@ var ZX = [0, "auto"], QX = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, $X = (e, t) => e.cartesianAxis.xAxis[t], eZ = (e, t) => $X(e, t) ?? QX, tZ = {
+}, QX = (e, t) => e.cartesianAxis.xAxis[t], $X = (e, t) => QX(e, t) ?? ZX, eZ = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: ZX,
+ domain: XX,
hide: !0,
id: 0,
includeHidden: !1,
@@ -62535,7 +62519,7 @@ var ZX = [0, "auto"], QX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, nZ = (e, t) => e.cartesianAxis.yAxis[t], rZ = (e, t) => nZ(e, t) ?? tZ, wAe = {
+}, tZ = (e, t) => e.cartesianAxis.yAxis[t], nZ = (e, t) => tZ(e, t) ?? eZ, CAe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -62548,31 +62532,31 @@ var ZX = [0, "auto"], QX = {
scale: "auto",
type: "number",
unit: ""
-}, iZ = (e, t) => e.cartesianAxis.zAxis[t] ?? wAe, aZ = (e, t, n) => {
+}, rZ = (e, t) => e.cartesianAxis.zAxis[t] ?? CAe, iZ = (e, t, n) => {
switch (t) {
- case "xAxis": return eZ(e, n);
- case "yAxis": return rZ(e, n);
- case "zAxis": return iZ(e, n);
+ case "xAxis": return $X(e, n);
+ case "yAxis": return nZ(e, n);
+ case "zAxis": return rZ(e, n);
case "angleAxis": return hq(e, n);
case "radiusAxis": return gq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, TAe = (e, t, n) => {
+}, wAe = (e, t, n) => {
switch (t) {
- case "xAxis": return eZ(e, n);
- case "yAxis": return rZ(e, n);
+ case "xAxis": return $X(e, n);
+ case "yAxis": return nZ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, oZ = (e, t, n) => {
+}, aZ = (e, t, n) => {
switch (t) {
- case "xAxis": return eZ(e, n);
- case "yAxis": return rZ(e, n);
+ case "xAxis": return $X(e, n);
+ case "yAxis": return nZ(e, n);
case "angleAxis": return hq(e, n);
case "radiusAxis": return gq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, sZ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function cZ(e, t) {
+}, oZ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function sZ(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -62584,58 +62568,58 @@ function cZ(e, t) {
}
};
}
-var lZ = (e) => e.graphicalItems.cartesianItems, EAe = $([wq, Tq], cZ), uZ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), dZ = $([
- lZ,
- aZ,
- EAe
-], uZ, { memoizeOptions: { resultEqualityCheck: Aq } }), fZ = $([dZ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(Oq)), pZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), DAe = $([dZ], pZ), mZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), OAe = $([dZ], mZ, { memoizeOptions: { resultEqualityCheck: Aq } }), hZ = (e, t) => {
+var cZ = (e) => e.graphicalItems.cartesianItems, TAe = $([wq, Tq], sZ), lZ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), uZ = $([
+ cZ,
+ iZ,
+ TAe
+], lZ, { memoizeOptions: { resultEqualityCheck: Aq } }), dZ = $([uZ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(Oq)), fZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), EAe = $([uZ], fZ), pZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), DAe = $([uZ], pZ, { memoizeOptions: { resultEqualityCheck: Aq } }), mZ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, gZ = $([OAe, IK], hZ), _Z = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: IU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: IU(e, t.dataKey) })), vZ = $([
- gZ,
- aZ,
- dZ
-], _Z);
-function yZ(e) {
- if (CB(e) || e instanceof Date) {
+}, hZ = $([DAe, IK], mZ), gZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: IU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: IU(e, t.dataKey) })), _Z = $([
+ hZ,
+ iZ,
+ uZ
+], gZ);
+function vZ(e) {
+ if (wB(e) || e instanceof Date) {
var t = Number(e);
if (MU(t)) return t;
}
}
-function bZ(e) {
+function yZ(e) {
if (Array.isArray(e)) {
- var t = [yZ(e[0]), yZ(e[1])];
+ var t = [vZ(e[0]), vZ(e[1])];
return RK(t) ? t : void 0;
}
- var n = yZ(e);
+ var n = vZ(e);
if (n != null) return [n, n];
}
-function xZ(e) {
- return e.map(yZ).filter(jB);
+function bZ(e) {
+ return e.map(vZ).filter(MB);
}
-function kAe(e, t) {
- var n = yZ(e), r = yZ(t);
+function OAe(e, t) {
+ var n = vZ(e), r = vZ(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var AAe = $([vZ], (e) => e?.map((e) => e.value).sort(kAe));
-function SZ(e, t) {
+var kAe = $([_Z], (e) => e?.map((e) => e.value).sort(OAe));
+function xZ(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function jAe(e, t, n) {
- return !n || typeof t != "number" || xB(t) || !n.length ? [] : xZ(n.flatMap((n) => {
+function AAe(e, t, n) {
+ return !n || typeof t != "number" || SB(t) || !n.length ? [] : bZ(n.flatMap((n) => {
var r = IU(e, n.dataKey), i, a;
if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!MU(i) || !MU(a))) return [t - i, t + a];
}));
}
-var CZ = (e) => oZ(e, jq(e), Mq(e)), wZ = $([CZ], (e) => e?.dataKey), MAe = $([
- fZ,
+var SZ = (e) => aZ(e, jq(e), Mq(e)), CZ = $([SZ], (e) => e?.dataKey), jAe = $([
+ dZ,
IK,
- CZ
-], Dq), TZ = (e, t, n, r) => {
+ SZ
+], Dq), wZ = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -62644,141 +62628,141 @@ var CZ = (e) => oZ(e, jq(e), Mq(e)), wZ = $([CZ], (e) => e?.dataKey), MAe = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: Nwe(e, o.map(Eq), n),
+ stackedData: jwe(e, o.map(Eq), n),
graphicalItems: o
}];
}));
-}, EZ = $([
- MAe,
- fZ,
+}, TZ = $([
+ jAe,
+ dZ,
eq,
tq
-], TZ), DZ = (e, t, n, r) => {
+], wZ), EZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = Iwe(e, i, a);
+ var o = Pwe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, NAe = $([aZ], (e) => e.allowDataOverflow), OZ = (e) => {
- if (e == null || !("domain" in e)) return ZX;
+}, MAe = $([iZ], (e) => e.allowDataOverflow), DZ = (e) => {
+ if (e == null || !("domain" in e)) return XX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = xZ(e.ticks);
+ var t = bZ(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? ZX;
-}, kZ = $([aZ], OZ), AZ = $([kZ, NAe], BK), PAe = $([
- EZ,
+ return e?.domain ?? XX;
+}, OZ = $([iZ], DZ), kZ = $([OZ, MAe], BK), NAe = $([
+ TZ,
PK,
wq,
- AZ
-], DZ, { memoizeOptions: { resultEqualityCheck: kq } }), jZ = (e) => e.errorBars, FAe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => SZ(n, e)), MZ = function() {
+ kZ
+], EZ, { memoizeOptions: { resultEqualityCheck: kq } }), AZ = (e) => e.errorBars, PAe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => xZ(n, e)), jZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, NZ = (e, t, n, r, i) => {
+}, MZ = (e, t, n, r, i) => {
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => SZ(i, e)), c = IU(e, t.dataKey ?? n.dataKey), l = jAe(e, c, s);
+ var s = r[n.id]?.filter((e) => xZ(i, e)), c = IU(e, t.dataKey ?? n.dataKey), l = AAe(e, c, s);
if (l.length >= 2) {
var u = Math.min(...l), d = Math.max(...l);
(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);
}
- var f = bZ(c);
+ var f = yZ(c);
f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));
});
}), t?.dataKey != null && e.forEach((e) => {
- var n = bZ(IU(e, t.dataKey));
+ var n = yZ(IU(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
}), MU(a) && MU(o)) return [a, o];
-}, IAe = $([
- gZ,
- aZ,
- DAe,
- jZ,
+}, FAe = $([
+ hZ,
+ iZ,
+ EAe,
+ AZ,
wq
-], NZ, { memoizeOptions: { resultEqualityCheck: kq } });
-function LAe(e) {
+], MZ, { memoizeOptions: { resultEqualityCheck: kq } });
+function IAe(e) {
var { value: t } = e;
- if (CB(t) || t instanceof Date) return t;
+ if (wB(t) || t instanceof Date) return t;
}
-var RAe = (e, t, n) => {
- var r = e.map(LAe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && EB(r)) ? NK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, PZ = (e) => e.referenceElements.dots, FZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), zAe = $([
- PZ,
+var LAe = (e, t, n) => {
+ var r = e.map(IAe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && DB(r)) ? NK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, NZ = (e) => e.referenceElements.dots, PZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), RAe = $([
+ NZ,
wq,
Tq
-], FZ), IZ = (e) => e.referenceElements.areas, BAe = $([
- IZ,
+], PZ), FZ = (e) => e.referenceElements.areas, zAe = $([
+ FZ,
wq,
Tq
-], FZ), LZ = (e) => e.referenceElements.lines, VAe = $([
- LZ,
+], PZ), IZ = (e) => e.referenceElements.lines, BAe = $([
+ IZ,
wq,
Tq
-], FZ), RZ = (e, t) => {
+], PZ), LZ = (e, t) => {
if (e != null) {
- var n = xZ(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = bZ(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, HAe = $(zAe, wq, RZ), zZ = (e, t) => {
+}, VAe = $(RAe, wq, LZ), RZ = (e, t) => {
if (e != null) {
- var n = xZ(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = bZ(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, UAe = $([BAe, wq], zZ);
-function WAe(e) {
- if (e.x != null) return xZ([e.x]);
+}, HAe = $([zAe, wq], RZ);
+function UAe(e) {
+ if (e.x != null) return bZ([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : xZ(t);
+ return t == null || t.length === 0 ? [] : bZ(t);
}
-function GAe(e) {
- if (e.y != null) return xZ([e.y]);
+function WAe(e) {
+ if (e.y != null) return bZ([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : xZ(t);
+ return t == null || t.length === 0 ? [] : bZ(t);
}
-var BZ = (e, t) => {
+var zZ = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? WAe(e) : GAe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? UAe(e) : WAe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, KAe = $(HAe, $([VAe, wq], BZ), UAe, (e, t, n) => MZ(e, n, t)), VZ = (e, t, n, r, i, a, o, s) => n ?? BDe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? MZ(r, a, i) : MZ(a, i), e.allowDataOverflow), qAe = $([
- aZ,
+}, GAe = $(VAe, $([BAe, wq], zZ), HAe, (e, t, n) => jZ(e, n, t)), BZ = (e, t, n, r, i, a, o, s) => n ?? RDe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? jZ(r, a, i) : jZ(a, i), e.allowDataOverflow), KAe = $([
+ iZ,
+ OZ,
kZ,
- AZ,
- PAe,
- IAe,
- KAe,
+ NAe,
+ FAe,
+ GAe,
CW,
wq
-], VZ, { memoizeOptions: { resultEqualityCheck: kq } }), JAe = [0, 1], HZ = (e, t, n, r, i, a, o) => {
+], BZ, { memoizeOptions: { resultEqualityCheck: kq } }), qAe = [0, 1], VZ = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
var { dataKey: s, type: c } = e, l = LU(t, a);
- return l && s == null ? NK(0, n?.length ?? 0) : c === "category" ? RAe(r, e, l) : i === "expand" ? JAe : o;
+ return l && s == null ? NK(0, n?.length ?? 0) : c === "category" ? LAe(r, e, l) : i === "expand" ? qAe : o;
}
-}, UZ = $([
- aZ,
+}, HZ = $([
+ iZ,
CW,
- gZ,
- vZ,
+ hZ,
+ _Z,
eq,
wq,
- qAe
-], HZ), WZ = $([
- aZ,
- sZ,
+ KAe
+], VZ), UZ = $([
+ iZ,
+ oZ,
nq
-], qX), GZ = (e, t, n) => {
+], KX), WZ = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = OZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ var i = DZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && RK(e)) {
if (a) return JK(e, t.tickCount, t.allowDecimals, r);
if (t.type === "number") return YK(e, t.tickCount, t.allowDecimals, r);
@@ -62788,24 +62772,24 @@ var BZ = (e, t) => {
if (t.type === "number" && RK(e)) return YK(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, KZ = $([
- UZ,
- oZ,
- WZ
-], GZ), qZ = (e, t, n, r) => {
+}, GZ = $([
+ HZ,
+ aZ,
+ UZ
+], WZ), KZ = (e, t, n, r) => {
if (r !== "angleAxis" && e?.type === "number" && RK(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, YAe = $([
- aZ,
- UZ,
- KZ,
+}, JAe = $([
+ iZ,
+ HZ,
+ GZ,
wq
-], qZ), JZ = $($(vZ, aZ, (e, t) => {
+], KZ), qZ = $($(_Z, iZ, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(xZ(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(bZ(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
if (i == null || a == null) return Infinity;
var o = a - i;
if (o === 0) return Infinity;
@@ -62823,17 +62807,17 @@ var BZ = (e, t) => {
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = TB(n, e * a), s = e * a / 2;
+ var o = EB(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), XAe = (e, t, n) => {
- var r = eZ(e, t);
- return r == null || typeof r.padding != "string" ? 0 : JZ(e, "xAxis", t, n, r.padding);
-}, ZAe = (e, t, n) => {
- var r = rZ(e, t);
- return r == null || typeof r.padding != "string" ? 0 : JZ(e, "yAxis", t, n, r.padding);
-}, QAe = $(eZ, XAe, (e, t) => {
+}), YAe = (e, t, n) => {
+ var r = $X(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : qZ(e, "xAxis", t, n, r.padding);
+}, XAe = (e, t, n) => {
+ var r = nZ(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : qZ(e, "yAxis", t, n, r.padding);
+}, ZAe = $($X, YAe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -62846,7 +62830,7 @@ var BZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), $Ae = $(rZ, ZAe, (e, t) => {
+}), QAe = $(nZ, XAe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -62859,98 +62843,98 @@ var BZ = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), eje = $([
+}), $Ae = $([
rW,
- QAe,
+ ZAe,
sW,
oW,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), tje = $([
+}), eje = $([
rW,
CW,
- $Ae,
+ QAe,
sW,
oW,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
-}), YZ = (e, t, n, r) => {
+}), JZ = (e, t, n, r) => {
switch (t) {
- case "xAxis": return eje(e, n, r);
- case "yAxis": return tje(e, n, r);
- case "zAxis": return iZ(e, n)?.range;
+ case "xAxis": return $Ae(e, n, r);
+ case "yAxis": return eje(e, n, r);
+ case "zAxis": return rZ(e, n)?.range;
case "angleAxis": return xq(e);
case "radiusAxis": return Sq(e, n);
default: return;
}
-}, XZ = $([aZ, YZ], lq), ZZ = $([
- aZ,
- WZ,
- $([WZ, YAe], Pq),
- XZ
-], KX), QZ = (e, t, n, r) => {
+}, YZ = $([iZ, JZ], lq), XZ = $([
+ iZ,
+ UZ,
+ $([UZ, JAe], Pq),
+ YZ
+], GX), ZZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
if (LU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, $Z = $([
+}, QZ = $([
CW,
- vZ,
- oZ,
+ _Z,
+ aZ,
wq
-], QZ), eQ = $([ZZ], Nq);
-$([ZZ], bAe), $([ZZ, AAe], JX), $([
- dZ,
- jZ,
+], ZZ), $Z = $([XZ], Nq);
+$([XZ], yAe), $([XZ, kAe], qX), $([
+ uZ,
+ AZ,
wq
-], FAe);
-function tQ(e, t) {
+], PAe);
+function eQ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(tQ)), rje = $(eW, nQ, rQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(tQ)), iQ = (e, t) => ({
+var tQ = (e, t) => t, nQ = (e, t, n) => n, tje = $($U, tQ, nQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(eQ)), nje = $(eW, tQ, nQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(eQ)), rQ = (e, t) => ({
width: e.width,
height: t.height
-}), ije = (e, t) => ({
+}), rje = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), aQ = $(rW, eZ, iQ), aje = (e, t, n) => {
+}), iQ = $(rW, $X, rQ), ije = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, oje = (e, t, n) => {
+}, aje = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, sje = $(ZU, rW, nje, nQ, rQ, (e, t, n, r, i) => {
+}, oje = $(ZU, rW, tje, tQ, nQ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = iQ(t, n);
- o ??= aje(t, r, e);
+ var s = rQ(t, n);
+ o ??= ije(t, r, e);
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), cje = $(XU, rW, rje, nQ, rQ, (e, t, n, r, i) => {
+}), sje = $(XU, rW, nje, tQ, nQ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = ije(t, n);
- o ??= oje(t, r, e);
+ var s = rje(t, n);
+ o ??= aje(t, r, e);
var c = r === "left" && !i || r === "right" && i;
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
-}), lje = $([
+}), cje = $([
rW,
- eZ,
+ $X,
(e, t) => {
- var n = eZ(e, t);
- if (n != null) return sje(e, n.orientation, n.mirror);
+ var n = $X(e, t);
+ if (n != null) return oje(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -62964,12 +62948,12 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
y: i
};
}
-}), uje = $([
+}), lje = $([
rW,
- rZ,
+ nZ,
(e, t) => {
- var n = rZ(e, t);
- if (n != null) return cje(e, n.orientation, n.mirror);
+ var n = nZ(e, t);
+ if (n != null) return sje(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -62983,34 +62967,34 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
y: e.top
};
}
-}), oQ = $(rW, rZ, (e, t) => ({
+}), aQ = $(rW, nZ, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), sQ = (e, t, n) => {
+})), oQ = (e, t, n) => {
switch (t) {
- case "xAxis": return aQ(e, n).width;
- case "yAxis": return oQ(e, n).height;
+ case "xAxis": return iQ(e, n).width;
+ case "yAxis": return aQ(e, n).height;
default: return;
}
-}, cQ = (e, t, n, r) => {
+}, sQ = (e, t, n, r) => {
if (n != null) {
var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = LU(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && EB(c)) return c;
+ if (o && s && a === "category" && i && DB(c)) return c;
}
-}, lQ = $([
+}, cQ = $([
CW,
- vZ,
- aZ,
+ _Z,
+ iZ,
wq
-], cQ), uQ = $([
+], sQ), lQ = $([
CW,
- TAe,
- WZ,
- eQ,
- lQ,
+ wAe,
+ UZ,
$Z,
- YZ,
- KZ,
+ cQ,
+ QZ,
+ JZ,
+ GZ,
wq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
@@ -63036,10 +63020,10 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
scale: r
};
}
-}), dQ = (e, t, n, r, i, a, o, s, c) => {
+}), uQ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
var l = LU(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? bB(a[0] - a[1]) * 2 * m : m;
+ m = c === "angleAxis" && a != null && a.length >= 2 ? xB(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
@@ -63049,7 +63033,7 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
value: e,
offset: m
} : null;
- }).filter(jB) : l && s ? s.map((e, t) => {
+ }).filter(MB) : l && s ? s.map((e, t) => {
var n = r.map(e);
return MU(n) ? {
coordinate: n + m,
@@ -63057,7 +63041,7 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
index: t,
offset: m
} : null;
- }).filter(jB) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(MB) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
return MU(n) ? {
coordinate: n + m,
@@ -63065,7 +63049,7 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
index: t,
offset: m
} : null;
- }).filter(jB) : r.domain().map((e, t) => {
+ }).filter(MB) : r.domain().map((e, t) => {
var n = r.map(e);
return MU(n) ? {
coordinate: n + m,
@@ -63073,22 +63057,22 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
index: t,
offset: m
} : null;
- }).filter(jB);
+ }).filter(MB);
}
-}, fQ = $([
+}, dQ = $([
CW,
- oZ,
- WZ,
- eQ,
- KZ,
- YZ,
- lQ,
+ aZ,
+ UZ,
$Z,
+ GZ,
+ JZ,
+ cQ,
+ QZ,
wq
-], dQ), pQ = (e, t, n, r, i, a, o) => {
+], uQ), fQ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
var s = LU(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? bB(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ return l = o === "angleAxis" && r?.length >= 2 ? xB(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
return MU(r) ? {
coordinate: r + l,
@@ -63096,7 +63080,7 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
index: t,
offset: l
} : null;
- }).filter(jB) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(MB) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
return MU(r) ? {
coordinate: r + l,
@@ -63104,7 +63088,7 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
index: t,
offset: l
} : null;
- }).filter(jB) : n.domain().map((e, t) => {
+ }).filter(MB) : n.domain().map((e, t) => {
var r = n.map(e);
return MU(r) ? {
coordinate: r + l,
@@ -63112,28 +63096,28 @@ var nQ = (e, t) => t, rQ = (e, t, n) => n, nje = $($U, nQ, rQ, (e, t, n) => e.fi
index: t,
offset: l
} : null;
- }).filter(jB);
+ }).filter(MB);
}
-}, mQ = $([
+}, pQ = $([
CW,
- oZ,
- eQ,
- YZ,
- lQ,
+ aZ,
$Z,
+ JZ,
+ cQ,
+ QZ,
wq
-], pQ), hQ = $(aZ, eQ, (e, t) => {
- if (e != null && t != null) return XX(XX({}, e), {}, { scale: t });
+], fQ), mQ = $(iZ, $Z, (e, t) => {
+ if (e != null && t != null) return YX(YX({}, e), {}, { scale: t });
});
-$((e, t, n) => iZ(e, n), $([$([
- aZ,
- WZ,
+$((e, t, n) => rZ(e, n), $([$([
+ iZ,
UZ,
- XZ
-], KX)], Nq), (e, t) => {
- if (e != null && t != null) return XX(XX({}, e), {}, { scale: t });
+ HZ,
+ YZ
+], GX)], Nq), (e, t) => {
+ if (e != null && t != null) return YX(YX({}, e), {}, { scale: t });
});
-var dje = $([
+var uje = $([
CW,
$U,
eW
@@ -63158,41 +63142,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var gQ = (e) => e.options.defaultTooltipEventType, _Q = (e) => e.options.validateTooltipEventTypes;
-function vQ(e, t, n) {
+var hQ = (e) => e.options.defaultTooltipEventType, gQ = (e) => e.options.validateTooltipEventTypes;
+function _Q(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function yQ(e, t) {
- return vQ(t, gQ(e), _Q(e));
+function vQ(e, t) {
+ return _Q(t, hQ(e), gQ(e));
}
-function fje(e) {
- return Q((t) => yQ(t, e));
+function dje(e) {
+ return Q((t) => vQ(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var bQ = (e, t) => {
+var yQ = (e, t) => {
var n, r = Number(t);
- if (!(xB(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, pje = (e) => e.tooltip.settings, xQ = {
+ if (!(SB(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, fje = (e) => e.tooltip.settings, bQ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, SQ = rU({
+}, xQ = rU({
name: "tooltip",
initialState: {
itemInteraction: {
- click: xQ,
- hover: xQ
+ click: bQ,
+ hover: bQ
},
axisInteraction: {
- click: xQ,
- hover: xQ
+ click: bQ,
+ hover: bQ
},
- keyboardInteraction: xQ,
+ keyboardInteraction: bQ,
syncInteraction: {
active: !1,
index: null,
@@ -63260,10 +63244,10 @@ var bQ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: mje, replaceTooltipEntrySettings: hje, removeTooltipEntrySettings: gje, setTooltipSettingsState: _je, setActiveMouseOverItemIndex: CQ, mouseLeaveItem: vje, mouseLeaveChart: wQ, setActiveClickItemIndex: yje, setMouseOverAxisIndex: TQ, setMouseClickAxisIndex: bje, setSyncInteraction: EQ, setKeyboardInteraction: DQ } = SQ.actions, xje = SQ.reducer;
+}), { addTooltipEntrySettings: pje, replaceTooltipEntrySettings: mje, removeTooltipEntrySettings: hje, setTooltipSettingsState: gje, setActiveMouseOverItemIndex: SQ, mouseLeaveItem: _je, mouseLeaveChart: CQ, setActiveClickItemIndex: vje, setMouseOverAxisIndex: wQ, setMouseClickAxisIndex: yje, setSyncInteraction: TQ, setKeyboardInteraction: EQ } = xQ.actions, bje = xQ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function OQ(e, t) {
+function DQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63273,30 +63257,30 @@ function OQ(e, t) {
}
return n;
}
-function kQ(e) {
+function OQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? OQ(Object(n), !0).forEach(function(t) {
- Sje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OQ(Object(n)).forEach(function(t) {
+ t % 2 ? DQ(Object(n), !0).forEach(function(t) {
+ xje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Sje(e, t, n) {
- return (t = Cje(t)) in e ? Object.defineProperty(e, t, {
+function xje(e, t, n) {
+ return (t = Sje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Cje(e) {
- var t = wje(e, "string");
+function Sje(e) {
+ var t = Cje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wje(e, t) {
+function Cje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63306,22 +63290,22 @@ function wje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Tje(e, t, n) {
+function wje(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function Eje(e) {
+function Tje(e) {
return e.index != null;
}
-var AQ = (e, t, n, r) => {
- if (t == null) return xQ;
- var i = Tje(e, t, n);
- if (i == null) return xQ;
+var kQ = (e, t, n, r) => {
+ if (t == null) return bQ;
+ var i = wje(e, t, n);
+ if (i == null) return bQ;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (Eje(i)) {
- if (a) return kQ(kQ({}, i), {}, { active: !0 });
+ if (Tje(i)) {
+ if (a) return OQ(OQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -63329,11 +63313,11 @@ var AQ = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return kQ(kQ({}, xQ), {}, { coordinate: i.coordinate });
+ return OQ(OQ({}, bQ), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function Dje(e) {
+function Eje(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -63342,16 +63326,16 @@ function Dje(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function Oje(e, t) {
- var n = Dje(e), r = t[0], i = t[1];
+function Dje(e, t) {
+ var n = Eje(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function kje(e, t, n) {
+function Oje(e, t, n) {
if (n == null || t == null) return !0;
var r = IU(e, t);
- return r == null || !RK(n) || Oje(r, n);
+ return r == null || !RK(n) || Dje(r, n);
}
-var jQ = (e, t, n, r) => {
+var AQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
@@ -63359,8 +63343,8 @@ var jQ = (e, t, n, r) => {
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
- return l == null || kje(l, n, r) ? String(c) : null;
-}, MQ = (e, t, n, r, i, a, o) => {
+ return l == null || Oje(l, n, r) ? String(c) : null;
+}, jQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -63376,7 +63360,7 @@ var jQ = (e, t, n, r) => {
};
}
}
-}, NQ = (e, t, n, r) => {
+}, MQ = (e, t, n, r) => {
if (t === "axis") return e.tooltipItemPayloads;
if (e.tooltipItemPayloads.length === 0) return [];
var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;
@@ -63386,10 +63370,10 @@ var jQ = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, PQ = (e) => e.options.tooltipPayloadSearcher, FQ = (e) => e.tooltip;
+}, NQ = (e) => e.options.tooltipPayloadSearcher, PQ = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function IQ(e, t) {
+function FQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63399,30 +63383,30 @@ function IQ(e, t) {
}
return n;
}
-function LQ(e) {
+function IQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? IQ(Object(n), !0).forEach(function(t) {
- Aje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : IQ(Object(n)).forEach(function(t) {
+ t % 2 ? FQ(Object(n), !0).forEach(function(t) {
+ kje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Aje(e, t, n) {
- return (t = jje(t)) in e ? Object.defineProperty(e, t, {
+function kje(e, t, n) {
+ return (t = Aje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jje(e) {
- var t = Mje(e, "string");
+function Aje(e) {
+ var t = jje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Mje(e, t) {
+function jje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63432,39 +63416,39 @@ function Mje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Nje(e) {
+function Mje(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function Pje(e) {
+function Nje(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function Fje(e) {
+function Pje(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function RQ(e) {
+function LQ(e) {
if (typeof e == "string") return e;
}
-function Ije(e) {
+function Fje(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? Nje(e.name) : void 0,
- unit: "unit" in e ? Pje(e.unit) : void 0,
- dataKey: "dataKey" in e ? Fje(e.dataKey) : void 0,
+ name: "name" in e ? Mje(e.name) : void 0,
+ unit: "unit" in e ? Nje(e.unit) : void 0,
+ dataKey: "dataKey" in e ? Pje(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? RQ(e.color) : void 0,
- fill: "fill" in e ? RQ(e.fill) : void 0
+ color: "color" in e ? LQ(e.color) : void 0,
+ fill: "fill" in e ? LQ(e.fill) : void 0
};
}
-function Lje(e, t) {
+function Ije(e, t) {
return e ?? t;
}
-var zQ = (e, t, n, r, i, a, o) => {
+var RQ = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = Lje(d, s), m = Array.isArray(p) ? jU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? OB(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = Ije(d, s), m = Array.isArray(p) ? jU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? kB(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = Ije(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = LQ(LQ({}, f), {}, {
+ var n = Fje(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = IQ(IQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
@@ -63486,110 +63470,110 @@ var zQ = (e, t, n, r, i, a, o) => {
})), e;
}, []);
}
-}, BQ = $([
- CZ,
- sZ,
+}, zQ = $([
+ SZ,
+ oZ,
nq
-], qX), VQ = $([
+], KX), BQ = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- CZ,
- $([jq, Mq], cZ)
-], uZ, { memoizeOptions: { resultEqualityCheck: Aq } }), Rje = $([VQ], (e) => e.filter(Oq)), HQ = $([$([VQ], mZ, { memoizeOptions: { resultEqualityCheck: Aq } }), PK], hZ), zje = $([
- Rje,
+ SZ,
+ $([jq, Mq], sZ)
+], lZ, { memoizeOptions: { resultEqualityCheck: Aq } }), Lje = $([BQ], (e) => e.filter(Oq)), VQ = $([$([BQ], pZ, { memoizeOptions: { resultEqualityCheck: Aq } }), PK], mZ), Rje = $([
+ Lje,
PK,
- CZ
-], Dq), UQ = $([
- HQ,
- CZ,
- VQ
-], _Z), WQ = $([CZ], OZ), GQ = $([WQ, $([CZ], (e) => e.allowDataOverflow)], BK), Bje = $([
+ SZ
+], Dq), HQ = $([
+ VQ,
+ SZ,
+ BQ
+], gZ), UQ = $([SZ], DZ), WQ = $([UQ, $([SZ], (e) => e.allowDataOverflow)], BK), zje = $([
$([
- zje,
- $([VQ], (e) => e.filter(Oq)),
+ Rje,
+ $([BQ], (e) => e.filter(Oq)),
eq,
tq
- ], TZ),
+ ], wZ),
PK,
jq,
- GQ
-], DZ), Vje = $([
- HQ,
- CZ,
- $([VQ], pZ),
- jZ,
+ WQ
+], EZ), Bje = $([
+ VQ,
+ SZ,
+ $([BQ], fZ),
+ AZ,
jq
-], NZ, { memoizeOptions: { resultEqualityCheck: kq } }), Hje = $([$([
- PZ,
+], MZ, { memoizeOptions: { resultEqualityCheck: kq } }), Vje = $([$([
+ NZ,
jq,
Mq
-], FZ), jq], RZ), Uje = $([$([
- IZ,
+], PZ), jq], LZ), Hje = $([$([
+ FZ,
jq,
Mq
-], FZ), jq], zZ), KQ = $([
- CZ,
+], PZ), jq], RZ), GQ = $([
+ SZ,
CW,
+ VQ,
HQ,
- UQ,
eq,
jq,
$([
- CZ,
+ SZ,
+ UQ,
WQ,
- GQ,
+ zje,
Bje,
- Vje,
$([
- Hje,
+ Vje,
$([$([
- LZ,
+ IZ,
jq,
Mq
- ], FZ), jq], BZ),
- Uje
- ], MZ),
+ ], PZ), jq], zZ),
+ Hje
+ ], jZ),
CW,
jq
- ], VZ)
-], HZ), Wje = $([
- CZ,
- KQ,
+ ], BZ)
+], VZ), Uje = $([
+ SZ,
+ GQ,
$([
- KQ,
- CZ,
- BQ
- ], GZ),
+ GQ,
+ SZ,
+ zQ
+ ], WZ),
jq
-], qZ), qQ = (e) => YZ(e, jq(e), Mq(e), !1), JQ = $([CZ, qQ], lq), YQ = $([$([
- CZ,
- BQ,
- Wje,
- JQ
-], KX)], Nq), XQ = $([
+], KZ), KQ = (e) => JZ(e, jq(e), Mq(e), !1), qQ = $([SZ, KQ], lq), JQ = $([$([
+ SZ,
+ zQ,
+ Uje,
+ qQ
+], GX)], Nq), YQ = $([
CW,
- CZ,
- BQ,
- YQ,
- qQ,
+ SZ,
+ zQ,
+ JQ,
+ KQ,
$([
CW,
- UQ,
- CZ,
+ HQ,
+ SZ,
jq
- ], cQ),
+ ], sQ),
$([
CW,
- UQ,
- CZ,
+ HQ,
+ SZ,
jq
- ], QZ),
+ ], ZZ),
jq
], (e, t, n, r, i, a, o, s) => {
if (t) {
var { type: c } = t, l = LU(e, s);
if (r) {
var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;
- return d = s === "angleAxis" && i != null && i?.length >= 2 ? bB(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? xB(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
return MU(n) ? {
coordinate: n + d,
@@ -63597,7 +63581,7 @@ var zQ = (e, t, n, r, i, a, o) => {
index: t,
offset: d
} : null;
- }).filter(jB) : r.domain().map((e, t) => {
+ }).filter(MB) : r.domain().map((e, t) => {
var n = r.map(e);
return MU(n) ? {
coordinate: n + d,
@@ -63605,49 +63589,49 @@ var zQ = (e, t, n, r, i, a, o) => {
index: t,
offset: d
} : null;
- }).filter(jB);
+ }).filter(MB);
}
}
-}), ZQ = $([
+}), XQ = $([
+ hQ,
gQ,
- _Q,
- pje
-], (e, t, n) => vQ(n.shared, e, t)), QQ = (e) => e.tooltip.settings.trigger, $Q = (e) => e.tooltip.settings.defaultIndex, e$ = $([
- FQ,
+ fje
+], (e, t, n) => _Q(n.shared, e, t)), ZQ = (e) => e.tooltip.settings.trigger, QQ = (e) => e.tooltip.settings.defaultIndex, $Q = $([
+ PQ,
+ XQ,
ZQ,
- QQ,
- $Q
-], AQ), t$ = $([
- e$,
- HQ,
- wZ,
- KQ
-], jQ), n$ = $([XQ, t$], bQ), r$ = $([e$], (e) => {
+ QQ
+], kQ), e$ = $([
+ $Q,
+ VQ,
+ CZ,
+ GQ
+], AQ), t$ = $([YQ, e$], yQ), n$ = $([$Q], (e) => {
if (e) return e.dataKey;
-}), Gje = $([e$], (e) => {
+}), Wje = $([$Q], (e) => {
if (e) return e.graphicalItemId;
-}), i$ = $([
- FQ,
+}), r$ = $([
+ PQ,
+ XQ,
ZQ,
- QQ,
- $Q
-], NQ), Kje = $([e$, $([
+ QQ
+], MQ), Gje = $([$Q, $([
XU,
ZU,
CW,
rW,
- XQ,
- $Q,
- i$
-], MQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), qje = $([e$], (e) => e?.active ?? !1), Jje = $([$([
- i$,
- t$,
+ YQ,
+ QQ,
+ r$
+], jQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), Kje = $([$Q], (e) => e?.active ?? !1), qje = $([$([
+ r$,
+ e$,
PK,
- wZ,
- n$,
- PQ,
- ZQ
-], zQ)], (e) => {
+ CZ,
+ t$,
+ NQ,
+ XQ
+], RQ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -63655,7 +63639,7 @@ var zQ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function a$(e, t) {
+function i$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63665,30 +63649,30 @@ function a$(e, t) {
}
return n;
}
-function o$(e) {
+function a$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? a$(Object(n), !0).forEach(function(t) {
- Yje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a$(Object(n)).forEach(function(t) {
+ t % 2 ? i$(Object(n), !0).forEach(function(t) {
+ Jje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Yje(e, t, n) {
- return (t = Xje(t)) in e ? Object.defineProperty(e, t, {
+function Jje(e, t, n) {
+ return (t = Yje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xje(e) {
- var t = Zje(e, "string");
+function Yje(e) {
+ var t = Xje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zje(e, t) {
+function Xje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63698,13 +63682,13 @@ function Zje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Qje = () => Q(CZ), $je = () => {
- var e = Qje(), t = Q(XQ), n = Q(YQ);
- return qU(!e || !n ? void 0 : o$(o$({}, e), {}, { scale: n }), t);
+var Zje = () => Q(SZ), Qje = () => {
+ var e = Zje(), t = Q(YQ), n = Q(JQ);
+ return qU(!e || !n ? void 0 : a$(a$({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function s$(e, t) {
+function o$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63714,30 +63698,30 @@ function s$(e, t) {
}
return n;
}
-function c$(e) {
+function s$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? s$(Object(n), !0).forEach(function(t) {
- eMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s$(Object(n)).forEach(function(t) {
+ t % 2 ? o$(Object(n), !0).forEach(function(t) {
+ $je(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eMe(e, t, n) {
- return (t = tMe(t)) in e ? Object.defineProperty(e, t, {
+function $je(e, t, n) {
+ return (t = eMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tMe(e) {
- var t = nMe(e, "string");
+function eMe(e) {
+ var t = tMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nMe(e, t) {
+function tMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63747,7 +63731,7 @@ function nMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rMe = (e, t, n, r) => {
+var nMe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -63763,18 +63747,18 @@ var rMe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, iMe = (e, t, n, r) => {
+}, rMe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return c$(c$(c$({}, r), TK(r.cx, r.cy, o, a)), {}, {
+ return s$(s$(s$({}, r), TK(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return c$(c$(c$({}, r), TK(r.cx, r.cy, s, c)), {}, {
+ return s$(s$(s$({}, r), TK(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -63793,19 +63777,19 @@ var rMe = (e, t, n, r) => {
y: 0
};
};
-function aMe(e, t) {
+function iMe(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
-var l$ = (e, t, n, r, i) => {
+var c$ = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if (bB(c - s) !== bB(l - c)) {
+ if (xB(c - s) !== xB(l - c)) {
var d = [];
- if (bB(l - c) === bB(i[1] - i[0])) {
+ if (xB(l - c) === xB(i[1] - i[0])) {
u = l;
var f = c + i[1] - i[0];
d[0] = Math.min(f, (f + s) / 2), d[1] = Math.max(f, (f + s) / 2);
@@ -63830,78 +63814,78 @@ var l$ = (e, t, n, r, i) => {
}
}
return -1;
-}, u$ = () => Q(nq), d$ = (e, t) => t, f$ = (e, t, n) => n, p$ = (e, t, n, r) => r, oMe = $(XQ, (e) => EV(e, (e) => e.coordinate)), m$ = $([
- FQ,
+}, l$ = () => Q(nq), u$ = (e, t) => t, d$ = (e, t, n) => n, f$ = (e, t, n, r) => r, aMe = $(YQ, (e) => EV(e, (e) => e.coordinate)), p$ = $([
+ PQ,
+ u$,
d$,
- f$,
- p$
-], AQ), h$ = $([
- m$,
- HQ,
- wZ,
- KQ
-], jQ), sMe = (e, t, n) => {
+ f$
+], kQ), m$ = $([
+ p$,
+ VQ,
+ CZ,
+ GQ
+], AQ), oMe = (e, t, n) => {
if (t != null) {
- var r = FQ(e);
+ var r = PQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, g$ = $([
- FQ,
+}, h$ = $([
+ PQ,
+ u$,
d$,
- f$,
- p$
-], NQ), _$ = $([
+ f$
+], MQ), g$ = $([
XU,
ZU,
CW,
rW,
- XQ,
- p$,
- g$
-], MQ), cMe = $([m$, _$], (e, t) => e.coordinate ?? t), v$ = $([XQ, h$], bQ), lMe = $([
- g$,
+ YQ,
+ f$,
+ h$
+], jQ), sMe = $([p$, g$], (e, t) => e.coordinate ?? t), _$ = $([YQ, m$], yQ), cMe = $([
h$,
+ m$,
PK,
- wZ,
- v$,
- PQ,
- d$
-], zQ), uMe = $([m$, h$], (e, t) => ({
+ CZ,
+ _$,
+ NQ,
+ u$
+], RQ), lMe = $([p$, m$], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), dMe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && aMe(e, o)) {
- var s = l$(Lwe(e, t), a, i, n, r), c = rMe(t, i, s, e);
+})), uMe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && iMe(e, o)) {
+ var s = c$(Fwe(e, t), a, i, n, r), c = nMe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, fMe = (e, t, n, r, i, a, o) => {
+}, dMe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = DDe(e, n);
+ var s = TDe(e, n);
if (s) {
- var c = l$(Rwe(s, t), o, a, r, i), l = iMe(t, a, c, s);
+ var c = c$(Iwe(s, t), o, a, r, i), l = rMe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, pMe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? dMe(e, t, r, i, a, o, s) : fMe(e, t, n, r, i, a, o);
-}, mMe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, fMe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? uMe(e, t, r, i, a, o, s) : dMe(e, t, n, r, i, a, o);
+}, pMe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), hMe = $((e) => e.zIndex.zIndexMap, (e) => {
+}), mMe = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(oq));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: JDe } });
+}, { memoizeOptions: { resultEqualityCheck: KDe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function y$(e, t) {
+function v$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63911,30 +63895,30 @@ function y$(e, t) {
}
return n;
}
-function b$(e) {
+function y$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? y$(Object(n), !0).forEach(function(t) {
- gMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y$(Object(n)).forEach(function(t) {
+ t % 2 ? v$(Object(n), !0).forEach(function(t) {
+ hMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gMe(e, t, n) {
- return (t = _Me(t)) in e ? Object.defineProperty(e, t, {
+function hMe(e, t, n) {
+ return (t = gMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _Me(e) {
- var t = vMe(e, "string");
+function gMe(e) {
+ var t = _Me(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vMe(e, t) {
+function _Me(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63944,17 +63928,17 @@ function vMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var yMe = { zIndexMap: Object.values(oq).reduce((e, t) => b$(b$({}, e), {}, { [t]: {
+var vMe = { zIndexMap: Object.values(oq).reduce((e, t) => y$(y$({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, bMe = new Set(Object.values(oq));
-function xMe(e) {
- return bMe.has(e);
+} }), {}) }, yMe = new Set(Object.values(oq));
+function bMe(e) {
+ return yMe.has(e);
}
-var x$ = rU({
+var b$ = rU({
name: "zIndex",
- initialState: yMe,
+ initialState: vMe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -63970,7 +63954,7 @@ var x$ = rU({
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !xMe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !bMe(n) && delete e.zIndexMap[n]);
},
prepare: $H()
},
@@ -63993,33 +63977,33 @@ var x$ = rU({
prepare: $H()
}
}
-}), { registerZIndexPortal: SMe, unregisterZIndexPortal: CMe, registerZIndexPortalElement: wMe, unregisterZIndexPortalElement: TMe } = x$.actions, EMe = x$.reducer;
+}), { registerZIndexPortal: xMe, unregisterZIndexPortal: SMe, registerZIndexPortalElement: CMe, unregisterZIndexPortalElement: wMe } = b$.actions, TMe = b$.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function S$(e) {
- var { zIndex: t, children: n } = e, r = pTe() && t !== void 0 && t !== 0, i = aW(), a = vV();
- (0, B.useLayoutEffect)(() => r ? (a(SMe({ zIndex: t })), () => {
- a(CMe({ zIndex: t }));
- }) : MB, [
+function x$(e) {
+ var { zIndex: t, children: n } = e, r = dTe() && t !== void 0 && t !== 0, i = aW(), a = vV();
+ (0, B.useLayoutEffect)(() => r ? (a(xMe({ zIndex: t })), () => {
+ a(SMe({ zIndex: t }));
+ }) : NB, [
a,
t,
r
]);
- var o = Q((e) => mMe(e, t, i));
+ var o = Q((e) => pMe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, $f.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function C$() {
- return C$ = Object.assign ? Object.assign.bind() : function(e) {
+function S$() {
+ return S$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, C$.apply(null, arguments);
+ }, S$.apply(null, arguments);
}
-function w$(e, t) {
+function C$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64029,30 +64013,30 @@ function w$(e, t) {
}
return n;
}
-function T$(e) {
+function w$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? w$(Object(n), !0).forEach(function(t) {
- DMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w$(Object(n)).forEach(function(t) {
+ t % 2 ? C$(Object(n), !0).forEach(function(t) {
+ EMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DMe(e, t, n) {
- return (t = OMe(t)) in e ? Object.defineProperty(e, t, {
+function EMe(e, t, n) {
+ return (t = DMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OMe(e) {
- var t = kMe(e, "string");
+function DMe(e) {
+ var t = OMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kMe(e, t) {
+function OMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64062,17 +64046,17 @@ function kMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function AMe(e) {
+function kMe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, B.isValidElement)(t) ? /*#__PURE__*/ (0, B.cloneElement)(t, r) : /*#__PURE__*/ (0, B.createElement)(n, r);
}
-function jMe(e) {
+function AMe(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = jEe, h = oq.cursorLine;
- else if (l === "BarChart") p = MEe(o, u, i, a), m = bK, h = oq.cursorRectangle;
- else if (o === "radial" && RB(u)) {
+ if (l === "ScatterChart") p = u, m = kEe, h = oq.cursorLine;
+ else if (l === "BarChart") p = AEe(o, u, i, a), m = bK, h = oq.cursorRectangle;
+ else if (o === "radial" && zB(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = EK(u);
p = {
cx: g,
@@ -64082,24 +64066,24 @@ function jMe(e) {
innerRadius: v,
outerRadius: v
}, m = jK, h = oq.cursorLine;
- } else p = { points: RDe(o, u, i) }, m = qG, h = oq.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = T$(T$(T$(T$({
+ } else p = { points: IDe(o, u, i) }, m = qG, h = oq.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = w$(w$(w$(w$({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), pz(s)), {}, {
+ }, i), p), mz(s)), {}, {
payload: d,
payloadIndex: f,
className: _h("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ B.createElement(S$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(AMe, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(kMe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function MMe(e) {
- var t = $je(), n = bW(), r = wW(), i = u$();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(jMe, C$({}, e, {
+function jMe(e) {
+ var t = Qje(), n = bW(), r = wW(), i = l$();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(AMe, S$({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -64108,7 +64092,7 @@ function MMe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var E$ = /*#__PURE__*/ (0, B.createContext)(null), NMe = () => (0, B.useContext)(E$), PMe = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {
+var T$ = /*#__PURE__*/ (0, B.createContext)(null), MMe = () => (0, B.useContext)(T$), NMe = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -64195,12 +64179,12 @@ var E$ = /*#__PURE__*/ (0, B.createContext)(null), NMe = () => (0, B.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, D$ = new PMe(), O$ = "recharts.syncEvent.tooltip", k$ = "recharts.syncEvent.brush", A$ = (e, t) => {
+})))(), 1)).default, E$ = new NMe(), D$ = "recharts.syncEvent.tooltip", O$ = "recharts.syncEvent.brush", k$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!xB(n)) return e[n];
+ if (!SB(n)) return e[n];
}
-}, j$ = rU({
+}, A$ = rU({
name: "options",
initialState: {
chartName: "",
@@ -64211,13 +64195,13 @@ var E$ = /*#__PURE__*/ (0, B.createContext)(null), NMe = () => (0, B.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), FMe = j$.reducer, { createEventEmitter: IMe } = j$.actions;
+}), PMe = A$.reducer, { createEventEmitter: FMe } = A$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function LMe(e) {
+function IMe(e) {
return e.tooltip.syncInteraction;
}
-var M$ = rU({
+var j$ = rU({
name: "chartData",
initialState: {
chartData: void 0,
@@ -64241,8 +64225,8 @@ var M$ = rU({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: N$, setDataStartEndIndexes: RMe, setComputedData: zMe } = M$.actions, BMe = M$.reducer, VMe = ["x", "y"];
-function P$(e, t) {
+}), { setChartData: M$, setDataStartEndIndexes: LMe, setComputedData: RMe } = j$.actions, zMe = j$.reducer, BMe = ["x", "y"];
+function N$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64252,30 +64236,30 @@ function P$(e, t) {
}
return n;
}
-function F$(e) {
+function P$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? P$(Object(n), !0).forEach(function(t) {
- HMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P$(Object(n)).forEach(function(t) {
+ t % 2 ? N$(Object(n), !0).forEach(function(t) {
+ VMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function HMe(e, t, n) {
- return (t = UMe(t)) in e ? Object.defineProperty(e, t, {
+function VMe(e, t, n) {
+ return (t = HMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function UMe(e) {
- var t = WMe(e, "string");
+function HMe(e) {
+ var t = UMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WMe(e, t) {
+function UMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64285,16 +64269,16 @@ function WMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function GMe(e, t) {
+function WMe(e, t) {
if (e == null) return {};
- var n, r, i = KMe(e, t);
+ var n, r, i = GMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function KMe(e, t) {
+function GMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64303,20 +64287,20 @@ function KMe(e, t) {
}
return n;
}
-function qMe() {
- var e = Q(rq), t = Q(aq), n = vV(), r = Q(iq), i = Q(XQ), a = wW(), o = yW(), s = Q((e) => e.rootProps.className);
+function KMe() {
+ var e = Q(rq), t = Q(aq), n = vV(), r = Q(iq), i = Q(YQ), a = wW(), o = yW(), s = Q((e) => e.rootProps.className);
(0, B.useEffect)(() => {
- if (e == null) return MB;
+ if (e == null) return NB;
var s = (s, c, l) => {
if (t !== l && e === s) {
if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, { x: f, y: p } = d, m = GMe(d, VMe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = F$(F$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = WMe(d, BMe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = P$(P$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(F$(F$({}, c), {}, { payload: F$(F$({}, c.payload), {}, { coordinate: y }) }));
+ n(P$(P$({}, c), {}, { payload: P$(P$({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -64332,7 +64316,7 @@ function qMe() {
})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));
var { coordinate: x } = c.payload;
if (b == null || c.payload.active === !1 || x == null || o == null) {
- n(EQ({
+ n(TQ({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -64347,7 +64331,7 @@ function qMe() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(EQ({
+ n(TQ({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -64359,8 +64343,8 @@ function qMe() {
}
}
};
- return D$.on(O$, s), () => {
- D$.off(O$, s);
+ return E$.on(D$, s), () => {
+ E$.off(D$, s);
};
}, [
s,
@@ -64373,15 +64357,15 @@ function qMe() {
o
]);
}
-function JMe() {
+function qMe() {
var e = Q(rq), t = Q(aq), n = vV();
(0, B.useEffect)(() => {
- if (e == null) return MB;
+ if (e == null) return NB;
var r = (r, i, a) => {
- t !== a && e === r && n(RMe(i));
+ t !== a && e === r && n(LMe(i));
};
- return D$.on(k$, r), () => {
- D$.off(k$, r);
+ return E$.on(O$, r), () => {
+ E$.off(O$, r);
};
}, [
n,
@@ -64389,17 +64373,17 @@ function JMe() {
e
]);
}
-function YMe() {
+function JMe() {
var e = vV();
(0, B.useEffect)(() => {
- e(IMe());
- }, [e]), qMe(), JMe();
+ e(FMe());
+ }, [e]), KMe(), qMe();
}
-function XMe(e, t, n, r, i, a) {
- var o = Q((n) => sMe(n, e, t)), s = Q(Gje), c = Q(aq), l = Q(rq), u = Q(iq), d = Q(LMe)?.active, f = yW();
+function YMe(e, t, n, r, i, a) {
+ var o = Q((n) => oMe(n, e, t)), s = Q(Wje), c = Q(aq), l = Q(rq), u = Q(iq), d = Q(IMe)?.active, f = yW();
(0, B.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = EQ({
+ var e = TQ({
active: a,
coordinate: n,
dataKey: o,
@@ -64408,7 +64392,7 @@ function XMe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- D$.emit(O$, l, e, c);
+ E$.emit(D$, l, e, c);
}
}, [
d,
@@ -64426,7 +64410,7 @@ function XMe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function I$(e, t) {
+function F$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64436,30 +64420,30 @@ function I$(e, t) {
}
return n;
}
-function L$(e) {
+function I$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? I$(Object(n), !0).forEach(function(t) {
- ZMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I$(Object(n)).forEach(function(t) {
+ t % 2 ? F$(Object(n), !0).forEach(function(t) {
+ XMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ZMe(e, t, n) {
- return (t = QMe(t)) in e ? Object.defineProperty(e, t, {
+function XMe(e, t, n) {
+ return (t = ZMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function QMe(e) {
- var t = $Me(e, "string");
+function ZMe(e) {
+ var t = QMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $Me(e, t) {
+function QMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64469,13 +64453,13 @@ function $Me(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function eNe(e) {
+function $Me(e) {
return e.dataKey;
}
-function tNe(e, t) {
- return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(sEe, t);
+function eNe(e, t) {
+ return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(aEe, t);
}
-var R$ = [], nNe = {
+var L$ = [], tNe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -64501,10 +64485,10 @@ var R$ = [], nNe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function rNe(e) {
- var t = HB(e, nNe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = vV(), S = typeof v == "number" ? String(v) : v;
+function nNe(e) {
+ var t = UB(e, tNe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = vV(), S = typeof v == "number" ? String(v) : v;
(0, B.useEffect)(() => {
- x(_je({
+ x(gje({
shared: g,
trigger: _,
axisId: b,
@@ -64519,20 +64503,20 @@ function rNe(e) {
n,
S
]);
- var C = yW(), w = LG(), T = fje(g), { activeIndex: E, isActive: D } = Q((e) => uMe(e, T, _, S)) ?? {}, O = Q((e) => lMe(e, T, _, S)), k = Q((e) => v$(e, T, _, S)), A = Q((e) => cMe(e, T, _, S)), j = O, M = NMe(), N = n ?? D ?? !1, [P, ee] = kV([j, N]), F = T === "axis" ? k : void 0;
- XMe(T, _, A, F, E, N);
+ var C = yW(), w = LG(), T = dje(g), { activeIndex: E, isActive: D } = Q((e) => lMe(e, T, _, S)) ?? {}, O = Q((e) => cMe(e, T, _, S)), k = Q((e) => _$(e, T, _, S)), A = Q((e) => sMe(e, T, _, S)), j = O, M = MMe(), N = n ?? D ?? !1, [P, ee] = kV([j, N]), F = T === "axis" ? k : void 0;
+ YMe(T, _, A, F, E, N);
var I = y ?? M;
if (I == null || C == null || T == null) return null;
- var te = j ?? R$;
- N || (te = R$), s && te.length && (te = gV(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, eNe));
- var ne = te.length > 0, re = L$(L$({}, t), {}, {
+ var te = j ?? L$;
+ N || (te = L$), s && te.length && (te = gV(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, $Me));
+ var ne = te.length > 0, re = I$(I$({}, t), {}, {
payload: te,
label: F,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ B.createElement(_Ee, {
+ }), ie = /*#__PURE__*/ B.createElement(hEe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -64549,8 +64533,8 @@ function rNe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, tNe(o, re));
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(MMe, {
+ }, eNe(o, re));
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(jMe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -64560,23 +64544,23 @@ function rNe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var z$ = (e) => null;
-z$.displayName = "Cell";
+var R$ = (e) => null;
+R$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function iNe(e, t, n) {
- return (t = aNe(t)) in e ? Object.defineProperty(e, t, {
+function rNe(e, t, n) {
+ return (t = iNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aNe(e) {
- var t = oNe(e, "string");
+function iNe(e) {
+ var t = aNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oNe(e, t) {
+function aNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64586,9 +64570,9 @@ function oNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var sNe = class {
+var oNe = class {
constructor(e) {
- iNe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ rNe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -64611,7 +64595,7 @@ var sNe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function B$(e, t) {
+function z$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64621,30 +64605,30 @@ function B$(e, t) {
}
return n;
}
-function cNe(e) {
+function sNe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B$(Object(n), !0).forEach(function(t) {
- lNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B$(Object(n)).forEach(function(t) {
+ t % 2 ? z$(Object(n), !0).forEach(function(t) {
+ cNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lNe(e, t, n) {
- return (t = uNe(t)) in e ? Object.defineProperty(e, t, {
+function cNe(e, t, n) {
+ return (t = lNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uNe(e) {
- var t = dNe(e, "string");
+function lNe(e) {
+ var t = uNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dNe(e, t) {
+function uNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64654,10 +64638,10 @@ function dNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var V$ = cNe({}, {
+var B$ = sNe({}, {
cacheSize: 2e3,
enableCache: !0
-}), H$ = new sNe(V$.cacheSize), fNe = {
+}), V$ = new oNe(B$.cacheSize), dNe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -64665,14 +64649,14 @@ var V$ = cNe({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, U$ = "recharts_measurement_span";
-function pNe(e, t) {
+}, H$ = "recharts_measurement_span";
+function fNe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var W$ = (e, t) => {
+var U$ = (e, t) => {
try {
- var n = document.getElementById(U$);
- n || (n = document.createElement("span"), n.setAttribute("id", U$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, fNe, t), n.textContent = `${e}`;
+ var n = document.getElementById(H$);
+ n || (n = document.createElement("span"), n.setAttribute("id", H$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, dNe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -64684,31 +64668,31 @@ var W$ = (e, t) => {
height: 0
};
}
-}, G$ = function(e) {
+}, W$ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (e == null || NG.isSsr) return {
width: 0,
height: 0
};
- if (!V$.enableCache) return W$(e, t);
- var n = pNe(e, t), r = H$.get(n);
+ if (!B$.enableCache) return U$(e, t);
+ var n = fNe(e, t), r = V$.get(n);
if (r) return r;
- var i = W$(e, t);
- return H$.set(n, i), i;
-}, K$;
-function mNe(e, t, n) {
- return (t = hNe(t)) in e ? Object.defineProperty(e, t, {
+ var i = U$(e, t);
+ return V$.set(n, i), i;
+}, G$;
+function pNe(e, t, n) {
+ return (t = mNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hNe(e) {
- var t = gNe(e, "string");
+function mNe(e) {
+ var t = hNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gNe(e, t) {
+function hNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64718,7 +64702,7 @@ function gNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var q$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, J$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, _Ne = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, vNe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, yNe = {
+var K$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, q$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, gNe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, _Ne = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, vNe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -64726,7 +64710,7 @@ var q$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, J$ = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, bNe = [
+}, yNe = [
"cm",
"mm",
"pt",
@@ -64735,20 +64719,20 @@ var q$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, J$ = /(
"Q",
"px"
];
-function xNe(e) {
- return bNe.includes(e);
+function bNe(e) {
+ return yNe.includes(e);
}
-var Y$ = "NaN";
-function SNe(e, t) {
- return e * yNe[t];
+var J$ = "NaN";
+function xNe(e, t) {
+ return e * vNe[t];
}
-var X$ = class e {
+var Y$ = class e {
static parse(t) {
- var [, n, r] = vNe.exec(t) ?? [];
+ var [, n, r] = _Ne.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, xB(e) && (this.unit = ""), t !== "" && !_Ne.test(t) && (this.num = NaN, this.unit = ""), xNe(t) && (this.num = SNe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, SB(e) && (this.unit = ""), t !== "" && !gNe.test(t) && (this.num = NaN, this.unit = ""), bNe(t) && (this.num = xNe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -64766,50 +64750,50 @@ var X$ = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return xB(this.num);
+ return SB(this.num);
}
};
-K$ = X$, mNe(X$, "NaN", new K$(NaN, ""));
-function Z$(e) {
- if (e == null || e.includes(Y$)) return Y$;
+G$ = Y$, pNe(Y$, "NaN", new G$(NaN, ""));
+function X$(e) {
+ if (e == null || e.includes(J$)) return J$;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = q$.exec(t) ?? [], a = X$.parse(n ?? ""), o = X$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return Y$;
- t = t.replace(q$, s.toString());
+ var [, n, r, i] = K$.exec(t) ?? [], a = Y$.parse(n ?? ""), o = Y$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return J$;
+ t = t.replace(K$, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = J$.exec(t) ?? [], d = X$.parse(c ?? ""), f = X$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return Y$;
- t = t.replace(J$, p.toString());
+ var [, c, l, u] = q$.exec(t) ?? [], d = Y$.parse(c ?? ""), f = Y$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return J$;
+ t = t.replace(q$, p.toString());
}
return t;
}
-var Q$ = /\(([^()]*)\)/;
-function CNe(e) {
- for (var t = e, n; (n = Q$.exec(t)) != null;) {
+var Z$ = /\(([^()]*)\)/;
+function SNe(e) {
+ for (var t = e, n; (n = Z$.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(Q$, Z$(r));
+ t = t.replace(Z$, X$(r));
}
return t;
}
-function wNe(e) {
+function CNe(e) {
var t = e.replace(/\s+/g, "");
- return t = CNe(t), t = Z$(t), t;
+ return t = SNe(t), t = X$(t), t;
}
-function TNe(e) {
+function wNe(e) {
try {
- return wNe(e);
+ return CNe(e);
} catch {
- return Y$;
+ return J$;
}
}
-function $$(e) {
- var t = TNe(e.slice(5, -1));
- return t === Y$ ? "" : t;
+function Q$(e) {
+ var t = wNe(e.slice(5, -1));
+ return t === J$ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var ENe = [
+var TNe = [
"x",
"y",
"lineHeight",
@@ -64818,32 +64802,32 @@ var ENe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], DNe = [
+], ENe = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function e1() {
- return e1 = Object.assign ? Object.assign.bind() : function(e) {
+function $$() {
+ return $$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, e1.apply(null, arguments);
+ }, $$.apply(null, arguments);
}
-function t1(e, t) {
+function e1(e, t) {
if (e == null) return {};
- var n, r, i = ONe(e, t);
+ var n, r, i = DNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ONe(e, t) {
+function DNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64852,28 +64836,28 @@ function ONe(e, t) {
}
return n;
}
-var n1 = /[ \f\n\r\t\v\u2028\u2029]+/, r1 = (e) => {
+var t1 = /[ \f\n\r\t\v\u2028\u2029]+/, n1 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return kB(t) || (i = n ? t.toString().split("") : t.toString().split(n1)), {
+ return AB(t) || (i = n ? t.toString().split("") : t.toString().split(t1)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: G$(e, r).width
+ width: W$(e, r).width
})),
- spaceWidth: n ? 0 : G$("\xA0", r).width
+ spaceWidth: n ? 0 : W$("\xA0", r).width
};
} catch {
return null;
}
};
-function i1(e) {
+function r1(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function kNe(e) {
- return kB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function ONe(e) {
+ return AB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var a1 = (e, t, n, r) => e.reduce((e, i) => {
+var i1 = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -64884,20 +64868,20 @@ var a1 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), o1 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), ANe = "…", s1 = (e, t, n, r, i, a, o, s) => {
- var c = r1({
+}, []), a1 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), kNe = "…", o1 = (e, t, n, r, i, a, o, s) => {
+ var c = n1({
breakAll: n,
style: r,
- children: e.slice(0, t) + ANe
+ children: e.slice(0, t) + kNe
});
if (!c) return [!1, []];
- var l = a1(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || o1(l).width > Number(a), l];
-}, jNe = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = a1(t, r, n, i);
- if (!l || i || !(d.length > a || o1(d).width > Number(r))) return d;
+ var l = i1(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || a1(l).width > Number(a), l];
+}, ANe = (e, t, n, r, i) => {
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = i1(t, r, n, i);
+ if (!l || i || !(d.length > a || a1(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), [_, v] = s1(u, g - 1, c, s, a, r, n, i), [y] = s1(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = o1(u, g - 1, c, s, a, r, n, i), [y] = o1(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -64905,13 +64889,13 @@ var a1 = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, c1 = (e) => [{
- words: kB(e) ? [] : e.toString().split(n1),
+}, s1 = (e) => [{
+ words: AB(e) ? [] : e.toString().split(t1),
width: void 0
-}], MNe = (e) => {
+}], jNe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
if ((t || n) && !NG.isSsr) {
- var s, c, l = r1({
+ var s, c, l = n1({
breakAll: a,
children: r,
style: i
@@ -64919,28 +64903,28 @@ var a1 = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return c1(r);
- return jNe({
+ } else return s1(r);
+ return ANe({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return c1(r);
-}, l1 = "#808080", NNe = {
+ return s1(r);
+}, c1 = "#808080", MNe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: l1,
+ fill: c1,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, u1 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = HB(e, NNe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = t1(n, ENe), f = (0, B.useMemo)(() => MNe({
+}, l1 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = UB(e, MNe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = e1(n, TNe), f = (0, B.useMemo)(() => jNe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -64954,32 +64938,32 @@ var a1 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = t1(d, DNe);
- if (!CB(r) || !CB(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = e1(d, ENe);
+ if (!wB(r) || !wB(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
if (!MU(y) || !MU(b)) return null;
var x;
switch (u) {
case "start":
- x = $$(`calc(${o})`);
+ x = Q$(`calc(${o})`);
break;
case "middle":
- x = $$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = Q$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = $$(`calc(${f.length - 1} * -${a})`);
+ default: x = Q$(`calc(${f.length - 1} * -${a})`);
}
var S = [], C = f[0];
if (c && C != null) {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", e1({}, mz(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", $$({}, hz(v), {
ref: t,
x: y,
y: b,
className: _h("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? l1 : s
+ fill: s.includes("url") ? c1 : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ B.createElement("tspan", {
@@ -64989,10 +64973,10 @@ var a1 = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-u1.displayName = "Text";
+l1.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function d1(e, t) {
+function u1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65002,30 +64986,30 @@ function d1(e, t) {
}
return n;
}
-function f1(e) {
+function d1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? d1(Object(n), !0).forEach(function(t) {
- PNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d1(Object(n)).forEach(function(t) {
+ t % 2 ? u1(Object(n), !0).forEach(function(t) {
+ NNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function PNe(e, t, n) {
- return (t = FNe(t)) in e ? Object.defineProperty(e, t, {
+function NNe(e, t, n) {
+ return (t = PNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FNe(e) {
- var t = INe(e, "string");
+function PNe(e) {
+ var t = FNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function INe(e, t) {
+function FNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65035,7 +65019,7 @@ function INe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var LNe = (e) => {
+var INe = (e) => {
var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = vW(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
@@ -65077,68 +65061,68 @@ var LNe = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? f1({
+ return n === "insideLeft" ? d1({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? f1({
+ }, k) : n === "insideRight" ? d1({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? f1({
+ }, k) : n === "insideTop" ? d1({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? f1({
+ }, k) : n === "insideBottom" ? d1({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? f1({
+ }, k) : n === "insideTopLeft" ? d1({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? f1({
+ }, k) : n === "insideTopRight" ? d1({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? f1({
+ }, k) : n === "insideBottomLeft" ? d1({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? f1({
+ }, k) : n === "insideBottomRight" ? d1({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || SB(n.x)) && (Z(n.y) || SB(n.y)) ? f1({
- x: o + TB(n.x, m),
- y: s + TB(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || CB(n.x)) && (Z(n.y) || CB(n.y)) ? d1({
+ x: o + EB(n.x, m),
+ y: s + EB(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : f1({
+ }, k) : d1({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, RNe = ["labelRef"], zNe = ["content"];
-function p1(e, t) {
+}, LNe = ["labelRef"], RNe = ["content"];
+function f1(e, t) {
if (e == null) return {};
- var n, r, i = BNe(e, t);
+ var n, r, i = zNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function BNe(e, t) {
+function zNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65147,7 +65131,7 @@ function BNe(e, t) {
}
return n;
}
-function m1(e, t) {
+function p1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65157,30 +65141,30 @@ function m1(e, t) {
}
return n;
}
-function h1(e) {
+function m1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? m1(Object(n), !0).forEach(function(t) {
- VNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m1(Object(n)).forEach(function(t) {
+ t % 2 ? p1(Object(n), !0).forEach(function(t) {
+ BNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VNe(e, t, n) {
- return (t = HNe(t)) in e ? Object.defineProperty(e, t, {
+function BNe(e, t, n) {
+ return (t = VNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HNe(e) {
- var t = UNe(e, "string");
+function VNe(e) {
+ var t = HNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UNe(e, t) {
+function HNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65190,16 +65174,16 @@ function UNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function g1() {
- return g1 = Object.assign ? Object.assign.bind() : function(e) {
+function h1() {
+ return h1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, g1.apply(null, arguments);
+ }, h1.apply(null, arguments);
}
-var _1 = /*#__PURE__*/ (0, B.createContext)(null), v1 = (e) => {
+var g1 = /*#__PURE__*/ (0, B.createContext)(null), _1 = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, B.useMemo)(() => ({
x: t,
y: n,
@@ -65215,11 +65199,11 @@ var _1 = /*#__PURE__*/ (0, B.createContext)(null), v1 = (e) => {
a,
o
]);
- return /*#__PURE__*/ B.createElement(_1.Provider, { value: c }, s);
-}, y1 = () => {
- var e = (0, B.useContext)(_1), t = yW();
+ return /*#__PURE__*/ B.createElement(g1.Provider, { value: c }, s);
+}, v1 = () => {
+ var e = (0, B.useContext)(g1), t = yW();
return e || (t ? vW(t) : void 0);
-}, b1 = /*#__PURE__*/ (0, B.createContext)(null), WNe = (e) => {
+}, y1 = /*#__PURE__*/ (0, B.createContext)(null), UNe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, B.useMemo)(() => ({
cx: t,
cy: n,
@@ -65237,15 +65221,15 @@ var _1 = /*#__PURE__*/ (0, B.createContext)(null), v1 = (e) => {
o,
s
]);
- return /*#__PURE__*/ B.createElement(b1.Provider, { value: l }, c);
-}, x1 = () => {
- var e = (0, B.useContext)(b1), t = Q(Cq);
+ return /*#__PURE__*/ B.createElement(y1.Provider, { value: l }, c);
+}, b1 = () => {
+ var e = (0, B.useContext)(y1), t = Q(Cq);
return e || t;
-}, GNe = (e) => {
- var { value: t, formatter: n } = e, r = kB(e.children) ? t : e.children;
+}, WNe = (e) => {
+ var { value: t, formatter: n } = e, r = AB(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, S1 = (e) => e != null && typeof e == "function", KNe = (e, t) => bB(t - e) * Math.min(Math.abs(t - e), 360), qNe = (e, t, n, r, i) => {
- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = KNe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, x1 = (e) => e != null && typeof e == "function", GNe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 360), KNe = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = GNe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -65261,15 +65245,15 @@ var _1 = /*#__PURE__*/ (0, B.createContext)(null), v1 = (e) => {
v = h <= 0 ? v : !v;
var y = TK(s, c, m, _), b = TK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = kB(e.id) ? wB("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ B.createElement("text", g1({}, r, {
+ ${b.x},${b.y}`, S = AB(e.id) ? TB("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ B.createElement("text", h1({}, r, {
dominantBaseline: "central",
className: _h("recharts-radial-bar-label", o)
}), /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ B.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, JNe = (e, t, n) => {
+}, qNe = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
var { x: u, y: d } = TK(r, i, o + t, l);
@@ -65305,15 +65289,15 @@ var _1 = /*#__PURE__*/ (0, B.createContext)(null), v1 = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, C1 = (e) => e != null && "cx" in e && Z(e.cx), YNe = {
+}, S1 = (e) => e != null && "cx" in e && Z(e.cx), JNe = {
angle: 0,
offset: 5,
zIndex: oq.label,
position: "middle",
textBreakAll: !1
};
-function XNe(e) {
- if (!C1(e)) return e;
+function YNe(e) {
+ if (!S1(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -65324,100 +65308,100 @@ function XNe(e) {
height: i
};
}
-function w1(e) {
- var t = HB(e, YNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = x1(), f = y1(), p = n == null ? i === "center" ? f : d ?? f : C1(n) ? n : vW(n), m, h, g = XNe(p);
- if (!p || kB(a) && kB(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;
- var _ = h1(h1({}, t), {}, { viewBox: p });
+function C1(e) {
+ var t = UB(e, JNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = b1(), f = v1(), p = n == null ? i === "center" ? f : d ?? f : S1(n) ? n : vW(n), m, h, g = YNe(p);
+ if (!p || AB(a) && AB(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;
+ var _ = m1(m1({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, B.isValidElement)(s)) {
- var { labelRef: v } = _, y = p1(_, RNe);
+ var { labelRef: v } = _, y = f1(_, LNe);
return /*#__PURE__*/ (0, B.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = p1(_, zNe);
+ var { content: b } = _, x = f1(_, RNe);
if (m = /*#__PURE__*/ (0, B.createElement)(s, x), /*#__PURE__*/ (0, B.isValidElement)(m)) return m;
- } else m = GNe(t);
- var S = mz(t);
- if (C1(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return qNe(t, i, m, S, p);
- h = JNe(p, t.offset, t.position);
+ } else m = WNe(t);
+ var S = hz(t);
+ if (S1(p)) {
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return KNe(t, i, m, S, p);
+ h = qNe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = LNe({
+ var C = INe({
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: C1(r) ? void 0 : r,
+ parentViewBox: S1(r) ? void 0 : r,
clamp: !0
});
- h = h1(h1({
+ h = m1(m1({
x: C.x,
y: C.y,
textAnchor: C.horizontalAnchor,
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ B.createElement(S$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(u1, g1({
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(l1, h1({
ref: u,
className: _h("recharts-label", c)
}, S, h, {
- textAnchor: i1(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: r1(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-w1.displayName = "Label";
-var T1 = (e, t, n) => {
+C1.displayName = "Label";
+var w1 = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ B.createElement(w1, g1({ key: "label-implicit" }, r)) : CB(e) ? /*#__PURE__*/ B.createElement(w1, g1({
+ return e === !0 ? /*#__PURE__*/ B.createElement(C1, h1({ key: "label-implicit" }, r)) : wB(e) ? /*#__PURE__*/ B.createElement(C1, h1({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === w1 ? /*#__PURE__*/ (0, B.cloneElement)(e, h1({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement(w1, g1({
+ }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === C1 ? /*#__PURE__*/ (0, B.cloneElement)(e, m1({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement(C1, h1({
key: "label-implicit",
content: e
- }, r)) : S1(e) ? /*#__PURE__*/ B.createElement(w1, g1({
+ }, r)) : x1(e) ? /*#__PURE__*/ B.createElement(C1, h1({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement(w1, g1({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement(C1, h1({}, e, { key: "label-implicit" }, r)) : null;
};
-function E1(e) {
+function T1(e) {
var { label: t, labelRef: n } = e;
- return T1(t, y1(), n) || null;
+ return w1(t, v1(), n) || null;
}
-function ZNe(e) {
+function XNe(e) {
var { label: t } = e;
- return T1(t, x1()) || null;
+ return w1(t, b1()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var QNe = ["valueAccessor"], $Ne = [
+var ZNe = ["valueAccessor"], QNe = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function D1() {
- return D1 = Object.assign ? Object.assign.bind() : function(e) {
+function E1() {
+ return E1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, D1.apply(null, arguments);
+ }, E1.apply(null, arguments);
}
-function O1(e, t) {
+function D1(e, t) {
if (e == null) return {};
- var n, r, i = ePe(e, t);
+ var n, r, i = $Ne(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ePe(e, t) {
+function $Ne(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65426,21 +65410,21 @@ function ePe(e, t) {
}
return n;
}
-var tPe = (e) => {
+var ePe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (kNe(t)) return t;
-}, k1 = /*#__PURE__*/ (0, B.createContext)(void 0), A1 = k1.Provider, j1 = /*#__PURE__*/ (0, B.createContext)(void 0), nPe = j1.Provider;
-function rPe() {
- return (0, B.useContext)(k1);
+ if (ONe(t)) return t;
+}, O1 = /*#__PURE__*/ (0, B.createContext)(void 0), k1 = O1.Provider, A1 = /*#__PURE__*/ (0, B.createContext)(void 0), tPe = A1.Provider;
+function nPe() {
+ return (0, B.useContext)(O1);
}
-function iPe() {
- return (0, B.useContext)(j1);
+function rPe() {
+ return (0, B.useContext)(A1);
}
-function M1(e) {
- var { valueAccessor: t = tPe } = e, n = O1(e, QNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = O1(n, $Ne), l = rPe(), u = iPe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ B.createElement(S$, { zIndex: s ?? oq.label }, /*#__PURE__*/ B.createElement(vz, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = kB(r) ? t(e, i) : IU(e.payload, r), l = kB(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ B.createElement(w1, D1({ key: `label-${i}` }, mz(e), c, l, {
+function j1(e) {
+ var { valueAccessor: t = ePe } = e, n = D1(e, ZNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = D1(n, QNe), l = nPe(), u = rPe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: s ?? oq.label }, /*#__PURE__*/ B.createElement(yz, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = AB(r) ? t(e, i) : IU(e.payload, r), l = AB(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ B.createElement(C1, E1({ key: `label-${i}` }, hz(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -65451,41 +65435,41 @@ function M1(e) {
}));
})));
}
-M1.displayName = "LabelList";
-function N1(e) {
+j1.displayName = "LabelList";
+function M1(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ B.createElement(M1, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || S1(t) ? /*#__PURE__*/ B.createElement(M1, {
+ return t ? t === !0 ? /*#__PURE__*/ B.createElement(j1, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || x1(t) ? /*#__PURE__*/ B.createElement(j1, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(M1, D1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(j1, E1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var aPe = [
+var iPe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], oPe;
-function P1() {
- return P1 = Object.assign ? Object.assign.bind() : function(e) {
+], aPe;
+function N1() {
+ return N1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, P1.apply(null, arguments);
+ }, N1.apply(null, arguments);
}
-function sPe(e, t) {
+function oPe(e, t) {
if (e == null) return {};
- var n, r, i = cPe(e, t);
+ var n, r, i = sPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function cPe(e, t) {
+function sPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65494,23 +65478,23 @@ function cPe(e, t) {
}
return n;
}
-function lPe(e, t) {
+function cPe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var F1 = (e) => e != null && e.x === +e.x && e.y === +e.y, uPe = function() {
+var P1 = (e) => e != null && e.x === +e.x && e.y === +e.y, lPe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- F1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ P1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- F1(n) && r && r.push(n);
+ P1(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, I1 = (e, t) => {
- var n = uPe(e);
+}, F1 = (e, t) => {
+ var n = lPe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => yB(oPe ||= lPe([
+ var r = n.map((e) => e.reduce((e, t, n) => bB(aPe ||= cPe([
"",
"",
"",
@@ -65518,29 +65502,29 @@ var F1 = (e) => e != null && e.x === +e.x && e.y === +e.y, uPe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, dPe = (e, t, n) => {
- var r = I1(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${I1(Array.from(t).reverse(), n).slice(1)}`;
-}, L1 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = sPe(e, aPe);
+}, uPe = (e, t, n) => {
+ var r = F1(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${F1(Array.from(t).reverse(), n).slice(1)}`;
+}, I1 = (e) => {
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = oPe(e, iPe);
if (!t || !t.length) return null;
var o = _h("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = dPe(t, r, i);
- return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", P1({}, mz(a), {
+ var s = a.stroke && a.stroke !== "none", c = uPe(t, r, i);
+ return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", N1({}, hz(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ B.createElement("path", P1({}, mz(a), {
+ })), s ? /*#__PURE__*/ B.createElement("path", N1({}, hz(a), {
fill: "none",
- d: I1(t, i)
- })) : null, s ? /*#__PURE__*/ B.createElement("path", P1({}, mz(a), {
+ d: F1(t, i)
+ })) : null, s ? /*#__PURE__*/ B.createElement("path", N1({}, hz(a), {
fill: "none",
- d: I1(r, i)
+ d: F1(r, i)
})) : null);
}
- var l = I1(t, i);
- return /*#__PURE__*/ B.createElement("path", P1({}, mz(a), {
+ var l = F1(t, i);
+ return /*#__PURE__*/ B.createElement("path", N1({}, hz(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -65548,36 +65532,36 @@ var F1 = (e) => e != null && e.x === +e.x && e.y === +e.y, uPe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function R1() {
- return R1 = Object.assign ? Object.assign.bind() : function(e) {
+function L1() {
+ return L1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, R1.apply(null, arguments);
+ }, L1.apply(null, arguments);
}
-var z1 = (e) => {
+var R1 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = _h("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", R1({}, fz(e), zB(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", L1({}, pz(e), BB(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, B1 = (e) => e.graphicalItems.polarItems, V1 = $([
- B1,
- aZ,
- $([wq, Tq], cZ)
-], uZ), H1 = $([$([V1], mZ), FK], hZ), U1 = $([
- H1,
- aZ,
- V1
-], _Z);
+}, z1 = (e) => e.graphicalItems.polarItems, B1 = $([
+ z1,
+ iZ,
+ $([wq, Tq], sZ)
+], lZ), V1 = $([$([B1], pZ), FK], mZ), H1 = $([
+ V1,
+ iZ,
+ B1
+], gZ);
$([
- H1,
- aZ,
- V1
+ V1,
+ iZ,
+ B1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
value: IU(e, t.dataKey ?? n.dataKey),
errorDomain: []
@@ -65588,71 +65572,71 @@ $([
value: IU(e, t.dataKey),
errorDomain: []
})));
-var W1 = () => void 0, G1 = $([
- aZ,
+var U1 = () => void 0, W1 = $([
+ iZ,
CW,
+ V1,
H1,
- U1,
eq,
wq,
$([
- aZ,
+ iZ,
+ OZ,
kZ,
- AZ,
- W1,
+ U1,
$([
- H1,
- aZ,
V1,
- jZ,
+ iZ,
+ B1,
+ AZ,
wq
- ], NZ),
- W1,
+ ], MZ),
+ U1,
CW,
wq
- ], VZ)
-], HZ), K1 = $([
- G1,
- oZ,
- WZ
-], GZ), fPe = $([WZ, $([
+ ], BZ)
+], VZ), G1 = $([
+ W1,
aZ,
+ UZ
+], WZ), dPe = $([UZ, $([
+ iZ,
+ W1,
G1,
- K1,
wq
-], qZ)], Pq), q1 = (e, t, n) => {
+], KZ)], Pq), K1 = (e, t, n) => {
switch (t) {
case "angleAxis": return hq(e, n);
case "radiusAxis": return gq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, J1 = (e, t, n) => {
+}, q1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return KDe(e, n);
- case "radiusAxis": return qDe(e, n);
+ case "angleAxis": return WDe(e, n);
+ case "radiusAxis": return GDe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, Y1 = $([$([
- q1,
- WZ,
- fPe,
- J1
-], KX)], Nq), X1 = $([
+}, J1 = $([$([
+ K1,
+ UZ,
+ dPe,
+ q1
+], GX)], Nq), Y1 = $([
CW,
- U1,
- oZ,
+ H1,
+ aZ,
wq
-], QZ), Z1 = $([
+], ZZ), X1 = $([
CW,
- q1,
- WZ,
- Y1,
K1,
+ UZ,
J1,
- lQ,
- X1,
+ G1,
+ q1,
+ cQ,
+ Y1,
wq
-], dQ), pPe = $([Z1], (e) => {
+], uQ), fPe = $([X1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -65660,19 +65644,19 @@ var W1 = () => void 0, G1 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), mPe = $([
+}), pPe = $([
CW,
+ K1,
+ J1,
q1,
+ cQ,
Y1,
- J1,
- lQ,
- X1,
wq
-], pQ), hPe = $([(e, t) => Z1(e, "angleAxis", t, !1)], (e) => {
+], fQ), mPe = $([(e, t) => X1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), gPe = $([(e, t) => Z1(e, "radiusAxis", t, !1)], (e) => {
+}), hPe = $([(e, t) => X1(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), _Pe = [
+}), gPe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -65685,16 +65669,16 @@ var W1 = () => void 0, G1 = $([
"polarRadius",
"zIndex"
];
-function vPe(e, t) {
+function _Pe(e, t) {
if (e == null) return {};
- var n, r, i = yPe(e, t);
+ var n, r, i = vPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function yPe(e, t) {
+function vPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65703,16 +65687,16 @@ function yPe(e, t) {
}
return n;
}
-function Q1() {
- return Q1 = Object.assign ? Object.assign.bind() : function(e) {
+function Z1() {
+ return Z1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Q1.apply(null, arguments);
+ }, Z1.apply(null, arguments);
}
-function $1(e, t) {
+function Q1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65722,30 +65706,30 @@ function $1(e, t) {
}
return n;
}
-function e0(e) {
+function $1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $1(Object(n), !0).forEach(function(t) {
- bPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $1(Object(n)).forEach(function(t) {
+ t % 2 ? Q1(Object(n), !0).forEach(function(t) {
+ yPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bPe(e, t, n) {
- return (t = xPe(t)) in e ? Object.defineProperty(e, t, {
+function yPe(e, t, n) {
+ return (t = bPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xPe(e) {
- var t = SPe(e, "string");
+function bPe(e) {
+ var t = xPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SPe(e, t) {
+function xPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65755,69 +65739,69 @@ function SPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var CPe = (e, t, n, r) => {
+var SPe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = TK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, wPe = (e) => {
+}, CPe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = e0({ stroke: "#ccc" }, fz(e));
+ var s = $1({ stroke: "#ccc" }, pz(e));
return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
var a = TK(t, n, r, e), o = TK(t, n, i, e);
- return /*#__PURE__*/ B.createElement("line", Q1({ key: `line-${e}` }, s, {
+ return /*#__PURE__*/ B.createElement("line", Z1({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, t0 = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = e0({
+}, e0 = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = $1({
stroke: "#ccc",
fill: "none"
- }, fz(e));
- return /*#__PURE__*/ B.createElement("circle", Q1({}, i, {
+ }, pz(e));
+ return /*#__PURE__*/ B.createElement("circle", Z1({}, i, {
className: _h("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, n0 = (e) => {
- var { radius: t } = e, n = e0({
+}, t0 = (e) => {
+ var { radius: t } = e, n = $1({
stroke: "#ccc",
fill: "none"
- }, fz(e));
- return /*#__PURE__*/ B.createElement("path", Q1({}, n, {
+ }, pz(e));
+ return /*#__PURE__*/ B.createElement("path", Z1({}, n, {
className: _h("recharts-polar-grid-concentric-polygon", e.className),
- d: CPe(t, e.cx, e.cy, e.polarAngles)
+ d: SPe(t, e.cx, e.cy, e.polarAngles)
}));
-}, TPe = (e) => {
+}, wPe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(t0, Q1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(n0, Q1({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(e0, Z1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(t0, Z1({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ B.createElement(t0, Q1({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ B.createElement(e0, Z1({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ B.createElement(n0, Q1({ key: i }, e, {
+ })) : /*#__PURE__*/ B.createElement(t0, Z1({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, EPe = {
+}, TPe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: oq.grid
-}, r0 = (e) => {
- var t = HB(e, EPe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = vPe(t, _Pe), m = Q(Cq), h = Q((e) => hPe(e, i)), g = Q((e) => gPe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+}, n0 = (e) => {
+ var t = UB(e, TPe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = _Pe(t, gPe), m = Q(Cq), h = Q((e) => mPe(e, i)), g = Q((e) => hPe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = e0({
+ var y = $1({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -65826,13 +65810,13 @@ var CPe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ B.createElement(S$, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(TPe, Q1({
+ return b <= 0 ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(wPe, Z1({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ B.createElement(wPe, Q1({
+ })), /*#__PURE__*/ B.createElement(CPe, Z1({
gridType: n,
radialLines: r
}, y, {
@@ -65840,17 +65824,17 @@ var CPe = (e, t, n, r) => {
polarRadius: v
}))));
};
-r0.displayName = "PolarGrid";
+n0.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function i0(e) {
+function r0(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function DPe(e, t = qB) {
+function EPe(e, t = JB) {
if (e == null) return;
- let n = i0(e);
+ let n = r0(e);
if (n.length === 0) return;
let r = mV(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -65861,9 +65845,9 @@ function DPe(e, t = qB) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function OPe(e, t = qB) {
+function DPe(e, t = JB) {
if (e == null) return;
- let n = i0(e);
+ let n = r0(e);
if (n.length === 0) return;
let r = mV(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -65874,7 +65858,7 @@ function OPe(e, t = qB) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var a0 = rU({
+var i0 = rU({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -65894,35 +65878,35 @@ var a0 = rU({
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: kPe, removeRadiusAxis: APe, addAngleAxis: jPe, removeAngleAxis: MPe } = a0.actions, NPe = a0.reducer;
+}), { addRadiusAxis: OPe, removeRadiusAxis: kPe, addAngleAxis: APe, removeAngleAxis: jPe } = i0.actions, MPe = i0.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function o0(e) {
+function a0(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var PPe = ["type"], FPe = [
+var NPe = ["type"], PPe = [
"cx",
"cy",
"angle",
"axisLine"
-], IPe = [
+], FPe = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function s0() {
- return s0 = Object.assign ? Object.assign.bind() : function(e) {
+function o0() {
+ return o0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, s0.apply(null, arguments);
+ }, o0.apply(null, arguments);
}
-function c0(e, t) {
+function s0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65932,30 +65916,30 @@ function c0(e, t) {
}
return n;
}
-function l0(e) {
+function c0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? c0(Object(n), !0).forEach(function(t) {
- LPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
+ t % 2 ? s0(Object(n), !0).forEach(function(t) {
+ IPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LPe(e, t, n) {
- return (t = RPe(t)) in e ? Object.defineProperty(e, t, {
+function IPe(e, t, n) {
+ return (t = LPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RPe(e) {
- var t = zPe(e, "string");
+function LPe(e) {
+ var t = RPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zPe(e, t) {
+function RPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65965,16 +65949,16 @@ function zPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function u0(e, t) {
+function l0(e, t) {
if (e == null) return {};
- var n, r, i = BPe(e, t);
+ var n, r, i = zPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function BPe(e, t) {
+function zPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65983,20 +65967,20 @@ function BPe(e, t) {
}
return n;
}
-var VPe = "radiusAxis";
-function HPe(e) {
+var BPe = "radiusAxis";
+function VPe(e) {
var t = vV(), n = DW(), r = (0, B.useMemo)(() => {
- var { type: t } = e, r = u0(e, PPe), i = uq(n, "radiusAxis", t);
- if (i != null) return l0(l0({}, r), {}, { type: i });
+ var { type: t } = e, r = l0(e, NPe), i = uq(n, "radiusAxis", t);
+ if (i != null) return c0(c0({}, r), {}, { type: i });
}, [e, n]);
- return (0, B.useEffect)(() => r == null ? MB : (t(kPe(r)), () => {
- t(APe(r));
+ return (0, B.useEffect)(() => r == null ? NB : (t(OPe(r)), () => {
+ t(kPe(r));
}), [t, r]), null;
}
-var UPe = (e, t, n, r) => {
+var HPe = (e, t, n, r) => {
var { coordinate: i } = e;
return TK(n, r, i, t);
-}, WPe = (e) => {
+}, UPe = (e) => {
var t;
switch (e) {
case "left":
@@ -66008,49 +65992,49 @@ var UPe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, GPe = (e, t, n, r) => {
- var i = DPe(r, (e) => e.coordinate || 0);
+}, WPe = (e, t, n, r) => {
+ var i = EPe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: OPe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: DPe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, KPe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = u0(e, FPe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = TK(n, r, s[0], i), l = TK(n, r, s[1], i), u = l0(l0(l0({}, fz(o)), {}, { fill: "none" }, fz(a)), {}, {
+}, GPe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = l0(e, PPe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = TK(n, r, s[0], i), l = TK(n, r, s[1], i), u = c0(c0(c0({}, pz(o)), {}, { fill: "none" }, pz(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ B.createElement("line", s0({ className: "recharts-polar-radius-axis-line" }, u));
-}, qPe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(u1, s0({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), JPe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = u0(e, IPe), s = WPe(e.orientation), c = fz(o), l = pz(a), u = t.map((t, o) => {
- var u = UPe(t, e.angle, e.cx, e.cy), d = l0(l0(l0(l0({
+ return /*#__PURE__*/ B.createElement("line", o0({ className: "recharts-polar-radius-axis-line" }, u));
+}, KPe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(l1, o0({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), qPe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = l0(e, FPe), s = UPe(e.orientation), c = pz(o), l = mz(a), u = t.map((t, o) => {
+ var u = HPe(t, e.angle, e.cx, e.cy), d = c0(c0(c0(c0({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ B.createElement(vz, s0({
- className: _h("recharts-polar-radius-axis-tick", o0(a)),
+ return /*#__PURE__*/ B.createElement(yz, o0({
+ className: _h("recharts-polar-radius-axis-tick", a0(a)),
key: `tick-${t.coordinate}`
- }, BB(e, t, o)), qPe(a, d, r ? r(t.value, o) : t.value));
+ }, VB(e, t, o)), KPe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ B.createElement(vz, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, YPe = (e) => {
- var { radiusAxisId: t } = e, n = Q(Cq), r = Q((e) => Y1(e, "radiusAxis", t)), i = Q((e) => Z1(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ B.createElement(yz, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, JPe = (e) => {
+ var { radiusAxisId: t } = e, n = Q(Cq), r = Q((e) => J1(e, "radiusAxis", t)), i = Q((e) => X1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = l0(l0({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ B.createElement(S$, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(vz, { className: _h("recharts-polar-radius-axis", VPe, a.className) }, s && KPe(a, i), o && JPe(a, i), /*#__PURE__*/ B.createElement(WNe, GPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(ZNe, { label: a.label }), a.children)));
+ var a = c0(c0({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-polar-radius-axis", BPe, a.className) }, s && GPe(a, i), o && qPe(a, i), /*#__PURE__*/ B.createElement(UNe, WPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(XNe, { label: a.label }), a.children)));
};
-function d0(e) {
- var t = HB(e, cq);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(HPe, {
+function u0(e) {
+ var t = UB(e, cq);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(VPe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -66067,22 +66051,22 @@ function d0(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ B.createElement(YPe, t));
+ }), /*#__PURE__*/ B.createElement(JPe, t));
}
-d0.displayName = "PolarRadiusAxis";
+u0.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var XPe = ["children", "type"], ZPe = ["ref"];
-function f0() {
- return f0 = Object.assign ? Object.assign.bind() : function(e) {
+var YPe = ["children", "type"], XPe = ["ref"];
+function d0() {
+ return d0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, f0.apply(null, arguments);
+ }, d0.apply(null, arguments);
}
-function p0(e, t) {
+function f0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66092,30 +66076,30 @@ function p0(e, t) {
}
return n;
}
-function m0(e) {
+function p0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? p0(Object(n), !0).forEach(function(t) {
- QPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p0(Object(n)).forEach(function(t) {
+ t % 2 ? f0(Object(n), !0).forEach(function(t) {
+ ZPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function QPe(e, t, n) {
- return (t = $Pe(t)) in e ? Object.defineProperty(e, t, {
+function ZPe(e, t, n) {
+ return (t = QPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $Pe(e) {
- var t = eFe(e, "string");
+function QPe(e) {
+ var t = $Pe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eFe(e, t) {
+function $Pe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66125,16 +66109,16 @@ function eFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function h0(e, t) {
+function m0(e, t) {
if (e == null) return {};
- var n, r, i = tFe(e, t);
+ var n, r, i = eFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function tFe(e, t) {
+function eFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66143,17 +66127,17 @@ function tFe(e, t) {
}
return n;
}
-var g0 = 1e-5, nFe = Math.cos(wK(45)), rFe = "angleAxis";
-function iFe(e) {
+var h0 = 1e-5, tFe = Math.cos(wK(45)), nFe = "angleAxis";
+function rFe(e) {
var t = vV(), n = DW(), r = (0, B.useMemo)(() => {
- var { children: t, type: r } = e, i = h0(e, XPe), a = uq(n, "angleAxis", r);
- if (a != null) return m0(m0({}, i), {}, { type: a });
+ var { children: t, type: r } = e, i = m0(e, YPe), a = uq(n, "angleAxis", r);
+ if (a != null) return p0(p0({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => hq(e, r?.id));
- return (0, B.useEffect)(() => r == null ? MB : (t(jPe(r)), () => {
- t(MPe(r));
+ return (0, B.useEffect)(() => r == null ? NB : (t(APe(r)), () => {
+ t(jPe(r));
}), [t, r]), i ? e.children : null;
}
-var aFe = (e, t) => {
+var iFe = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = TK(n, r, i, e.coordinate), l = TK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -66161,29 +66145,29 @@ var aFe = (e, t) => {
x2: l.x,
y2: l.y
};
-}, oFe = (e, t) => {
+}, aFe = (e, t) => {
var n = Math.cos(wK(-e.coordinate));
- return n > g0 ? t === "outer" ? "start" : "end" : n < -g0 ? t === "outer" ? "end" : "start" : "middle";
-}, sFe = (e) => {
+ return n > h0 ? t === "outer" ? "start" : "end" : n < -h0 ? t === "outer" ? "end" : "start" : "middle";
+}, oFe = (e) => {
var t = Math.cos(wK(-e.coordinate)), n = Math.sin(wK(-e.coordinate));
- return Math.abs(t) <= nFe ? n > 0 ? "start" : "end" : "middle";
-}, cFe = (e) => {
+ return Math.abs(t) <= tFe ? n > 0 ? "start" : "end" : "middle";
+}, sFe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = m0(m0({}, fz(e)), {}, { fill: "none" }, fz(a));
- if (i === "circle") return /*#__PURE__*/ B.createElement(z1, f0({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = p0(p0({}, pz(e)), {}, { fill: "none" }, pz(a));
+ if (i === "circle") return /*#__PURE__*/ B.createElement(R1, d0({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
var c = o.map((e) => TK(t, n, r, e.coordinate));
- return /*#__PURE__*/ B.createElement(L1, f0({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, lFe = (e) => {
+ return /*#__PURE__*/ B.createElement(I1, d0({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+}, cFe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ B.isValidElement(t) ? /*#__PURE__*/ B.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ B.createElement(u1, f0({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, uFe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = fz(e), { ref: s } = o, c = h0(o, ZPe), l = pz(t), u = m0(m0({}, c), {}, { fill: "none" }, fz(n)), d = a.map((a, o) => {
- var s = aFe(a, e), d = oFe(a, e.orientation), f = sFe(a), p = m0(m0(m0({}, c), {}, {
+ return t ? /*#__PURE__*/ B.isValidElement(t) ? /*#__PURE__*/ B.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ B.createElement(l1, d0({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, lFe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = pz(e), { ref: s } = o, c = m0(o, XPe), l = mz(t), u = p0(p0({}, c), {}, { fill: "none" }, pz(n)), d = a.map((a, o) => {
+ var s = iFe(a, e), d = aFe(a, e.orientation), f = oFe(a), p = p0(p0(p0({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -66194,28 +66178,28 @@ var aFe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ B.createElement(vz, f0({
- className: _h("recharts-polar-angle-axis-tick", o0(t)),
+ return /*#__PURE__*/ B.createElement(yz, d0({
+ className: _h("recharts-polar-angle-axis-tick", a0(t)),
key: `tick-${a.coordinate}`
- }, BB(e, a, o)), n && /*#__PURE__*/ B.createElement("line", f0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(lFe, {
+ }, VB(e, a, o)), n && /*#__PURE__*/ B.createElement("line", d0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(cFe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ B.createElement(vz, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, dFe = (e) => {
- var { angleAxisId: t } = e, n = Q(Cq), r = Q((e) => Y1(e, "angleAxis", t)), i = aW(), a = Q((e) => pPe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ B.createElement(yz, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, uFe = (e) => {
+ var { angleAxisId: t } = e, n = Q(Cq), r = Q((e) => J1(e, "angleAxis", t)), i = aW(), a = Q((e) => fPe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = m0(m0(m0({}, e), {}, { scale: r }, n), {}, {
+ var o = p0(p0(p0({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ B.createElement(S$, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(vz, { className: _h("recharts-polar-angle-axis", rFe, o.className) }, /*#__PURE__*/ B.createElement(cFe, o), /*#__PURE__*/ B.createElement(uFe, o)));
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-polar-angle-axis", nFe, o.className) }, /*#__PURE__*/ B.createElement(sFe, o), /*#__PURE__*/ B.createElement(lFe, o)));
};
-function _0(e) {
- var t = HB(e, sq);
- return /*#__PURE__*/ B.createElement(iFe, {
+function g0(e) {
+ var t = UB(e, sq);
+ return /*#__PURE__*/ B.createElement(rFe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -66232,12 +66216,12 @@ function _0(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ B.createElement(dFe, t));
+ }, /*#__PURE__*/ B.createElement(uFe, t));
}
-_0.displayName = "PolarAngleAxis";
+g0.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var fFe = /* @__PURE__ */ xt(((e) => {
+var dFe = /* @__PURE__ */ xt(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -66266,26 +66250,26 @@ var fFe = /* @__PURE__ */ xt(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), pFe = (/* @__PURE__ */ xt(((e, t) => {
- t.exports = fFe();
-})))(), v0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", y0 = null, b0 = null, x0 = (e) => {
- if (e === y0 && Array.isArray(b0)) return b0;
+})), fFe = (/* @__PURE__ */ xt(((e, t) => {
+ t.exports = dFe();
+})))(), _0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", v0 = null, y0 = null, b0 = (e) => {
+ if (e === v0 && Array.isArray(y0)) return y0;
var t = [];
return B.Children.forEach(e, (e) => {
- kB(e) || ((0, pFe.isFragment)(e) ? t = t.concat(x0(e.props.children)) : t.push(e));
- }), b0 = t, y0 = e, t;
+ AB(e) || ((0, fFe.isFragment)(e) ? t = t.concat(b0(e.props.children)) : t.push(e));
+ }), y0 = t, v0 = e, t;
};
-function S0(e, t) {
+function x0(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => v0(e)) : [v0(t)], x0(e).forEach((e) => {
- var t = _B(e, "type.displayName") || _B(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => _0(e)) : [_0(t)], b0(e).forEach((e) => {
+ var t = vB(e, "type.displayName") || vB(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var C0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var S0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function mFe(e) {
+function pFe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -66298,8 +66282,8 @@ function mFe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var hFe, gFe, _Fe, vFe, yFe;
-function w0(e, t) {
+var mFe, hFe, gFe, _Fe, vFe;
+function C0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66309,30 +66293,30 @@ function w0(e, t) {
}
return n;
}
-function T0(e) {
+function w0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? w0(Object(n), !0).forEach(function(t) {
- bFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w0(Object(n)).forEach(function(t) {
+ t % 2 ? C0(Object(n), !0).forEach(function(t) {
+ yFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bFe(e, t, n) {
- return (t = xFe(t)) in e ? Object.defineProperty(e, t, {
+function yFe(e, t, n) {
+ return (t = bFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xFe(e) {
- var t = SFe(e, "string");
+function bFe(e) {
+ var t = xFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SFe(e, t) {
+function xFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66342,42 +66326,42 @@ function SFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function E0() {
- return E0 = Object.assign ? Object.assign.bind() : function(e) {
+function T0() {
+ return T0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, E0.apply(null, arguments);
+ }, T0.apply(null, arguments);
}
-function D0(e, t) {
+function E0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var O0 = (e, t, n, r, i) => {
- var a = n - r, o = yB(hFe ||= D0([
+var D0 = (e, t, n, r, i) => {
+ var a = n - r, o = bB(mFe ||= E0([
"M ",
",",
""
]), e, t);
- return o += yB(gFe ||= D0([
+ return o += bB(hFe ||= E0([
"L ",
",",
""
- ]), e + n, t), o += yB(_Fe ||= D0([
+ ]), e + n, t), o += bB(gFe ||= E0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += yB(vFe ||= D0([
+ ]), e + n - a / 2, t + i), o += bB(_Fe ||= E0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += yB(yFe ||= D0([
+ ]), e + n - a / 2 - r, t + i), o += bB(vFe ||= E0([
"L ",
",",
" Z"
]), e, t), o;
-}, CFe = {
+}, SFe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -66387,8 +66371,8 @@ var O0 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, wFe = (e) => {
- var t = HB(e, CFe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(-1), h = (0, B.useRef)(i), g = (0, B.useRef)(a), _ = (0, B.useRef)(o), v = (0, B.useRef)(n), y = (0, B.useRef)(r), b = fK(e, "trapezoid-");
+}, CFe = (e) => {
+ var t = UB(e, SFe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(-1), h = (0, B.useRef)(i), g = (0, B.useRef)(a), _ = (0, B.useRef)(o), v = (0, B.useRef)(n), y = (0, B.useRef)(r), b = fK(e, "trapezoid-");
if ((0, B.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -66396,9 +66380,9 @@ var O0 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = _h("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", E0({}, mz(t), {
+ if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", T0({}, hz(t), {
className: x,
- d: O0(n, r, i, a, o)
+ d: D0(n, r, i, a, o)
})));
var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = QG(["strokeDasharray"], l, c);
return /*#__PURE__*/ B.createElement(dK, {
@@ -66410,35 +66394,35 @@ var O0 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = DB(S, i, e), c = DB(C, a, e), l = DB(w, o, e), u = DB(T, n, e), d = DB(E, r, e);
+ var s = OB(S, i, e), c = OB(C, a, e), l = OB(w, o, e), u = OB(T, n, e), d = OB(E, r, e);
f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);
var p = e > 0 ? {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ B.createElement("path", E0({}, mz(t), {
+ return /*#__PURE__*/ B.createElement("path", T0({}, hz(t), {
className: x,
- d: O0(u, d, s, c, l),
+ d: D0(u, d, s, c, l),
ref: f,
- style: T0(T0({}, p), t.style)
+ style: w0(w0({}, p), t.style)
}));
});
-}, TFe = [
+}, wFe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function EFe(e, t) {
+function TFe(e, t) {
if (e == null) return {};
- var n, r, i = DFe(e, t);
+ var n, r, i = EFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function DFe(e, t) {
+function EFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66447,7 +66431,7 @@ function DFe(e, t) {
}
return n;
}
-function k0(e, t) {
+function O0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66457,30 +66441,30 @@ function k0(e, t) {
}
return n;
}
-function A0(e) {
+function k0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k0(Object(n), !0).forEach(function(t) {
- OFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k0(Object(n)).forEach(function(t) {
+ t % 2 ? O0(Object(n), !0).forEach(function(t) {
+ DFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OFe(e, t, n) {
- return (t = kFe(t)) in e ? Object.defineProperty(e, t, {
+function DFe(e, t, n) {
+ return (t = OFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kFe(e) {
- var t = AFe(e, "string");
+function OFe(e) {
+ var t = kFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function AFe(e, t) {
+function kFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66490,68 +66474,68 @@ function AFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function jFe(e, t) {
- return A0(A0({}, t), e);
+function AFe(e, t) {
+ return k0(k0({}, t), e);
}
-function MFe(e, t) {
+function jFe(e, t) {
return e === "symbols";
}
-function j0(e) {
+function A0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ B.createElement(bK, n);
- case "trapezoid": return /*#__PURE__*/ B.createElement(wFe, n);
+ case "trapezoid": return /*#__PURE__*/ B.createElement(CFe, n);
case "sector": return /*#__PURE__*/ B.createElement(jK, n);
case "symbols":
- if (MFe(t, n)) return /*#__PURE__*/ B.createElement(LB, n);
+ if (jFe(t, n)) return /*#__PURE__*/ B.createElement(RB, n);
break;
case "curve": return /*#__PURE__*/ B.createElement(qG, n);
default: return null;
}
}
-function NFe(e) {
+function MFe(e) {
return /*#__PURE__*/ (0, B.isValidElement)(e) ? e.props : e;
}
-function M0(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = EFe(e, TFe), o;
- if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, A0(A0({}, a), NFe(t)));
+function j0(e) {
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = TFe(e, wFe), o;
+ if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, k0(k0({}, a), MFe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (mFe(t) && typeof t != "boolean") {
- var s = jFe(t, a);
- o = /*#__PURE__*/ B.createElement(j0, {
+ else if (pFe(t) && typeof t != "boolean") {
+ var s = AFe(t, a);
+ o = /*#__PURE__*/ B.createElement(A0, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ B.createElement(j0, {
+ o = /*#__PURE__*/ B.createElement(A0, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ B.createElement(vz, { className: r }, o) : /*#__PURE__*/ B.createElement(vz, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ B.createElement(yz, { className: r }, o) : /*#__PURE__*/ B.createElement(yz, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var N0 = (e, t, n) => {
+var M0 = (e, t, n) => {
var r = vV();
return (i, a) => (o) => {
- e?.(i, a, o), r(CQ({
+ e?.(i, a, o), r(SQ({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, P0 = (e) => {
+}, N0 = (e) => {
var t = vV();
return (n, r) => (i) => {
- e?.(n, r, i), t(vje());
+ e?.(n, r, i), t(_je());
};
-}, F0 = (e, t, n) => {
+}, P0 = (e, t, n) => {
var r = vV();
return (i, a) => (o) => {
- e?.(i, a, o), r(yje({
+ e?.(i, a, o), r(vje({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -66561,10 +66545,10 @@ var N0 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function I0(e) {
+function F0(e) {
var { tooltipEntrySettings: t } = e, n = vV(), r = aW(), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- r || (i.current === null ? n(mje(t)) : i.current !== t && n(hje({
+ r || (i.current === null ? n(pje(t)) : i.current !== t && n(mje({
prev: i.current,
next: t
})), i.current = t);
@@ -66573,12 +66557,12 @@ function I0(e) {
n,
r
]), (0, B.useLayoutEffect)(() => () => {
- i.current &&= (n(gje(i.current)), null);
+ i.current &&= (n(hje(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function L0(e) {
+function I0(e) {
var { legendPayload: t } = e, n = vV(), r = aW(), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
r || (i.current === null ? n(_G(t)) : i.current !== t && n(vG({
@@ -66593,7 +66577,7 @@ function L0(e) {
i.current &&= (n(yG(i.current)), null);
}, [n]), null;
}
-function R0(e) {
+function L0(e) {
var { legendPayload: t } = e, n = vV(), r = Q(CW), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
(r === "centric" || r === "radial") && (i.current === null ? n(_G(t)) : i.current !== t && n(vG({
@@ -66610,22 +66594,22 @@ function R0(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var PFe = B.useId ?? (() => {
- var [e] = B.useState(() => wB("uid-"));
+var NFe = B.useId ?? (() => {
+ var [e] = B.useState(() => TB("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function FFe(e, t) {
- var n = PFe();
+function PFe(e, t) {
+ var n = NFe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var IFe = /*#__PURE__*/ (0, B.createContext)(void 0), z0 = (e) => {
- var { id: t, type: n, children: r } = e, i = FFe(`recharts-${n}`, t);
- return /*#__PURE__*/ B.createElement(IFe.Provider, { value: i }, r(i));
-}, B0 = rU({
+var FFe = /*#__PURE__*/ (0, B.createContext)(void 0), R0 = (e) => {
+ var { id: t, type: n, children: r } = e, i = PFe(`recharts-${n}`, t);
+ return /*#__PURE__*/ B.createElement(FFe.Provider, { value: i }, r(i));
+}, z0 = rU({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -66673,41 +66657,41 @@ var IFe = /*#__PURE__*/ (0, B.createContext)(void 0), z0 = (e) => {
prepare: $H()
}
}
-}), { addCartesianGraphicalItem: LFe, replaceCartesianGraphicalItem: RFe, removeCartesianGraphicalItem: zFe, addPolarGraphicalItem: BFe, removePolarGraphicalItem: VFe, replacePolarGraphicalItem: HFe } = B0.actions, UFe = B0.reducer, V0 = /*#__PURE__*/ (0, B.memo)((e) => {
+}), { addCartesianGraphicalItem: IFe, replaceCartesianGraphicalItem: LFe, removeCartesianGraphicalItem: RFe, addPolarGraphicalItem: zFe, removePolarGraphicalItem: BFe, replacePolarGraphicalItem: VFe } = z0.actions, HFe = z0.reducer, B0 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = vV(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- n.current === null ? t(LFe(e)) : n.current !== e && t(RFe({
+ n.current === null ? t(IFe(e)) : n.current !== e && t(LFe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(zFe(n.current)), null);
+ n.current &&= (t(RFe(n.current)), null);
}, [t]), null;
-}), H0 = /*#__PURE__*/ (0, B.memo)((e) => {
+}), V0 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = vV(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- n.current === null ? t(BFe(e)) : n.current !== e && t(HFe({
+ n.current === null ? t(zFe(e)) : n.current !== e && t(VFe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(VFe(n.current)), null);
+ n.current &&= (t(BFe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function WFe(e) {
+function UFe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function GFe(e) {
- if (!(!JB(e) || e.length === 0)) return WFe(i0(e));
+function WFe(e) {
+ if (!(!YB(e) || e.length === 0)) return UFe(r0(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var KFe = ["points"];
-function U0(e, t) {
+var GFe = ["points"];
+function H0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66717,30 +66701,30 @@ function U0(e, t) {
}
return n;
}
-function W0(e) {
+function U0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U0(Object(n), !0).forEach(function(t) {
- qFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U0(Object(n)).forEach(function(t) {
+ t % 2 ? H0(Object(n), !0).forEach(function(t) {
+ KFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qFe(e, t, n) {
- return (t = JFe(t)) in e ? Object.defineProperty(e, t, {
+function KFe(e, t, n) {
+ return (t = qFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JFe(e) {
- var t = YFe(e, "string");
+function qFe(e) {
+ var t = JFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YFe(e, t) {
+function JFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66750,25 +66734,25 @@ function YFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function G0() {
- return G0 = Object.assign ? Object.assign.bind() : function(e) {
+function W0() {
+ return W0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, G0.apply(null, arguments);
+ }, W0.apply(null, arguments);
}
-function XFe(e, t) {
+function YFe(e, t) {
if (e == null) return {};
- var n, r, i = ZFe(e, t);
+ var n, r, i = XFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ZFe(e, t) {
+function XFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66777,21 +66761,21 @@ function ZFe(e, t) {
}
return n;
}
-function QFe(e) {
+function ZFe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, B.isValidElement)(t)) return /*#__PURE__*/ (0, B.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = XFe(a, KFe);
- return /*#__PURE__*/ B.createElement(z1, G0({}, s, { className: i }));
+ var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = YFe(a, GFe);
+ return /*#__PURE__*/ B.createElement(R1, W0({}, s, { className: i }));
}
-function $Fe(e, t) {
+function QFe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function K0(e) {
+function G0(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = oq.scatter } = e;
- if (!$Fe(t, n)) return null;
- var u = C0(n), d = lxe(n), f = t.map((e, r) => {
- var s = W0(W0(W0({ r: 3 }, o), d), {}, {
+ if (!QFe(t, n)) return null;
+ var u = S0(n), d = oxe(n), f = t.map((e, r) => {
+ var s = U0(U0(U0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -66800,18 +66784,18 @@ function K0(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ B.createElement(QFe, {
+ return /*#__PURE__*/ B.createElement(ZFe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(S$, { zIndex: l }, /*#__PURE__*/ B.createElement(vz, G0({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(x$, { zIndex: l }, /*#__PURE__*/ B.createElement(yz, W0({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function q0(e, t) {
+function K0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66821,30 +66805,30 @@ function q0(e, t) {
}
return n;
}
-function J0(e) {
+function q0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q0(Object(n), !0).forEach(function(t) {
- eIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q0(Object(n)).forEach(function(t) {
+ t % 2 ? K0(Object(n), !0).forEach(function(t) {
+ $Fe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eIe(e, t, n) {
- return (t = tIe(t)) in e ? Object.defineProperty(e, t, {
+function $Fe(e, t, n) {
+ return (t = eIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tIe(e) {
- var t = nIe(e, "string");
+function eIe(e) {
+ var t = tIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nIe(e, t) {
+function tIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66854,7 +66838,7 @@ function nIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Y0 = rU({
+var J0 = rU({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -66925,14 +66909,14 @@ var Y0 = rU({
var a = i.widthHistory || [];
if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;
var o = [...a, r].slice(-3);
- e.yAxis[n] = J0(J0({}, i), {}, {
+ e.yAxis[n] = q0(q0({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: rIe, replaceXAxis: iIe, removeXAxis: aIe, addYAxis: oIe, replaceYAxis: sIe, removeYAxis: cIe, addZAxis: lIe, replaceZAxis: uIe, removeZAxis: dIe, updateYAxisWidth: fIe } = Y0.actions, pIe = Y0.reducer, mIe = $([
+}), { addXAxis: nIe, replaceXAxis: rIe, removeXAxis: iIe, addYAxis: aIe, replaceYAxis: oIe, removeYAxis: sIe, addZAxis: cIe, replaceZAxis: lIe, removeZAxis: uIe, updateYAxisWidth: dIe } = J0.actions, fIe = J0.reducer, pIe = $([
$([rW], (e) => ({
top: e.top,
bottom: e.bottom,
@@ -66948,10 +66932,10 @@ var Y0 = rU({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), X0 = () => Q(mIe), hIe = () => Q(Jje);
+}), Y0 = () => Q(pIe), mIe = () => Q(qje);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function Z0(e, t) {
+function X0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66961,30 +66945,30 @@ function Z0(e, t) {
}
return n;
}
-function Q0(e) {
+function Z0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Z0(Object(n), !0).forEach(function(t) {
- gIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z0(Object(n)).forEach(function(t) {
+ t % 2 ? X0(Object(n), !0).forEach(function(t) {
+ hIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gIe(e, t, n) {
- return (t = _Ie(t)) in e ? Object.defineProperty(e, t, {
+function hIe(e, t, n) {
+ return (t = gIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _Ie(e) {
- var t = vIe(e, "string");
+function gIe(e) {
+ var t = _Ie(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vIe(e, t) {
+function _Ie(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66994,10 +66978,10 @@ function vIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var yIe = (e) => {
+var vIe = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
- var s = Q0(Q0(Q0({}, {
+ var s = Z0(Z0(Z0({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -67008,17 +66992,17 @@ var yIe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), pz(i)), zB(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(z1, s);
- return /*#__PURE__*/ B.createElement(vz, {
+ }), mz(i)), BB(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(R1, s);
+ return /*#__PURE__*/ B.createElement(yz, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function $0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = oq.activeDot } = e, s = Q(t$), c = hIe();
+function Q0(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = oq.activeDot } = e, s = Q(e$), c = mIe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return kB(l) ? null : /*#__PURE__*/ B.createElement(S$, { zIndex: o }, /*#__PURE__*/ B.createElement(yIe, {
+ return AB(l) ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: o }, /*#__PURE__*/ B.createElement(vIe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -67029,7 +67013,7 @@ function $0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function e2(e, t) {
+function $0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67039,30 +67023,30 @@ function e2(e, t) {
}
return n;
}
-function t2(e) {
+function e2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? e2(Object(n), !0).forEach(function(t) {
- bIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e2(Object(n)).forEach(function(t) {
+ t % 2 ? $0(Object(n), !0).forEach(function(t) {
+ yIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bIe(e, t, n) {
- return (t = xIe(t)) in e ? Object.defineProperty(e, t, {
+function yIe(e, t, n) {
+ return (t = bIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xIe(e) {
- var t = SIe(e, "string");
+function bIe(e) {
+ var t = xIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SIe(e, t) {
+function xIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67072,15 +67056,15 @@ function SIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var n2 = (e, t) => Y1(e, "radiusAxis", t), CIe = $([n2], (e) => {
+var t2 = (e, t) => J1(e, "radiusAxis", t), SIe = $([t2], (e) => {
if (e != null) return { scale: e };
-}), wIe = $([gq, n2], (e, t) => {
- if (e != null && t != null) return t2(t2({}, e), {}, { scale: t });
-}), TIe = (e, t, n, r) => Z1(e, "radiusAxis", t, r), r2 = (e, t, n) => hq(e, n), i2 = (e, t, n) => Y1(e, "angleAxis", n), EIe = $([r2, i2], (e, t) => {
- if (e != null && t != null) return t2(t2({}, e), {}, { scale: t });
-}), DIe = (e, t, n, r) => Z1(e, "angleAxis", n, r), OIe = $([
+}), CIe = $([gq, t2], (e, t) => {
+ if (e != null && t != null) return e2(e2({}, e), {}, { scale: t });
+}), wIe = (e, t, n, r) => X1(e, "radiusAxis", t, r), n2 = (e, t, n) => hq(e, n), r2 = (e, t, n) => J1(e, "angleAxis", n), TIe = $([n2, r2], (e, t) => {
+ if (e != null && t != null) return e2(e2({}, e), {}, { scale: t });
+}), EIe = (e, t, n, r) => X1(e, "angleAxis", n, r), DIe = $([
+ n2,
r2,
- i2,
Cq
], (e, t, n) => {
if (n != null && t != null) return {
@@ -67090,40 +67074,40 @@ var n2 = (e, t) => Y1(e, "radiusAxis", t), CIe = $([n2], (e) => {
cx: n.cx,
cy: n.cy
};
-}), kIe = (e, t, n, r, i) => i, AIe = $([
+}), OIe = (e, t, n, r, i) => i, kIe = $([
CW,
+ CIe,
wIe,
TIe,
- EIe,
- DIe
-], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), jIe = $([
- CIe,
- OIe,
+ EIe
+], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), AIe = $([
+ SIe,
+ DIe,
FK,
- $([B1, kIe], (e, t) => {
+ $([z1, OIe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- AIe
+ kIe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return VIe({
+ if (e != null && t != null && a != null && i != null && r != null) return BIe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), MIe = ["id"];
-function a2() {
- return a2 = Object.assign ? Object.assign.bind() : function(e) {
+}), jIe = ["id"];
+function i2() {
+ return i2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, a2.apply(null, arguments);
+ }, i2.apply(null, arguments);
}
-function o2(e, t) {
+function a2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67133,30 +67117,30 @@ function o2(e, t) {
}
return n;
}
-function s2(e) {
+function o2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? o2(Object(n), !0).forEach(function(t) {
- NIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o2(Object(n)).forEach(function(t) {
+ t % 2 ? a2(Object(n), !0).forEach(function(t) {
+ MIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NIe(e, t, n) {
- return (t = PIe(t)) in e ? Object.defineProperty(e, t, {
+function MIe(e, t, n) {
+ return (t = NIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PIe(e) {
- var t = FIe(e, "string");
+function NIe(e) {
+ var t = PIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FIe(e, t) {
+function PIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67166,16 +67150,16 @@ function FIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function IIe(e, t) {
+function FIe(e, t) {
if (e == null) return {};
- var n, r, i = LIe(e, t);
+ var n, r, i = IIe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function LIe(e, t) {
+function IIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67184,23 +67168,23 @@ function LIe(e, t) {
}
return n;
}
-function c2(e, t) {
+function s2(e, t) {
return e && e !== "none" ? e : t;
}
-var RIe = (e) => {
+var LIe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: c2(r, i),
+ color: s2(r, i),
value: YU(n, t),
payload: e
}];
-}, zIe = /*#__PURE__*/ B.memo((e) => {
+}, RIe = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
- getPosition: MB,
+ getPosition: NB,
settings: {
stroke: n,
strokeWidth: r,
@@ -67210,16 +67194,16 @@ var RIe = (e) => {
name: YU(a, t),
hide: o,
type: s,
- color: c2(n, i),
+ color: s2(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ B.createElement(I0, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: l });
});
-function BIe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = fz(IIe(n, MIe));
- return /*#__PURE__*/ B.createElement(K0, {
+function zIe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = pz(FIe(n, jIe));
+ return /*#__PURE__*/ B.createElement(G0, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -67228,11 +67212,11 @@ function BIe(e) {
baseProps: o
});
}
-function VIe(e) {
+function BIe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = IU(e, n.dataKey, r), d = IU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? GFe(d) : d, m = kB(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(s2(s2({}, TK(o, s, m, f)), {}, {
+ var a = IU(e, n.dataKey, r), d = IU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? WFe(d) : d, m = AB(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(o2(o2({}, TK(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -67245,8 +67229,8 @@ function VIe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = kB(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(s2(s2({}, e), {}, { radius: r }, TK(o, s, r, e.angle)));
+ var n = e.value[0], r = AB(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(o2(o2({}, e), {}, { radius: r }, TK(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -67254,7 +67238,7 @@ function VIe(e) {
baseLinePoints: d
};
}
-function HIe(e) {
+function VIe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -67264,7 +67248,7 @@ function HIe(e) {
upperWidth: 0,
height: 0
};
- return s2(s2({}, t), {}, {
+ return o2(o2({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -67272,12 +67256,12 @@ function HIe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ B.createElement(A1, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, r);
}
-function UIe(e) {
+function HIe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, s2(s2({}, r), {}, { points: t })) : typeof i == "function" ? i(s2(s2({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(L1, a2({}, mz(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, o2(o2({}, r), {}, { points: t })) : typeof i == "function" ? i(o2(o2({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(I1, i2({}, hz(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -67290,28 +67274,28 @@ function UIe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ B.createElement(vz, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(BIe, {
+ return /*#__PURE__*/ B.createElement(yz, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(zIe, {
props: r,
points: t
}));
}
-var l2 = (e, t, n) => (r, i) => {
+var c2 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? s2(s2({}, r), {}, {
- x: DB(a.x, r.x, n),
- y: DB(a.y, r.y, n)
- }) : s2(s2({}, r), {}, {
- x: DB(r.cx, r.x, n),
- y: DB(r.cy, r.y, n)
+ return a ? o2(o2({}, r), {}, {
+ x: OB(a.x, r.x, n),
+ y: OB(a.y, r.y, n)
+ }) : o2(o2({}, r), {}, {
+ x: OB(r.cx, r.x, n),
+ y: OB(r.cy, r.y, n)
});
};
-function WIe(e) {
+function UIe(e) {
var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = fK(t, "recharts-radar-"), [_, v] = (0, B.useState)(!1), y = !_, b = (0, B.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, B.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ B.createElement(HIe, {
+ return /*#__PURE__*/ B.createElement(VIe, {
showLabels: y,
points: i
}, /*#__PURE__*/ B.createElement(dK, {
@@ -67324,23 +67308,23 @@ function WIe(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(l2(f, m, e)), s = e === 1 ? a : a?.map(l2(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(UIe, {
+ var o = e === 1 ? i : i.map(c2(f, m, e)), s = e === 1 ? a : a?.map(c2(p, h, e));
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(HIe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ B.createElement(N1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ B.createElement(M1, { label: t.label }), t.children);
}
-function GIe(e) {
+function WIe(e) {
var t = (0, B.useRef)(void 0), n = (0, B.useRef)(void 0);
- return /*#__PURE__*/ B.createElement(WIe, {
+ return /*#__PURE__*/ B.createElement(UIe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var KIe = {
+var GIe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -67354,31 +67338,31 @@ var KIe = {
radiusAxisId: 0,
zIndex: oq.area
};
-function qIe(e) {
+function KIe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = _h("recharts-radar", n);
- return /*#__PURE__*/ B.createElement(S$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(vz, { className: i }, /*#__PURE__*/ B.createElement(GIe, e)), /*#__PURE__*/ B.createElement($0, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: i }, /*#__PURE__*/ B.createElement(WIe, e)), /*#__PURE__*/ B.createElement(Q0, {
points: r,
- mainColor: c2(e.stroke, e.fill),
+ mainColor: s2(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function JIe(e) {
- var t = aW(), n = Q((n) => jIe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ B.createElement(qIe, a2({}, e, {
+function qIe(e) {
+ var t = aW(), n = Q((n) => AIe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ B.createElement(KIe, i2({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function u2(e) {
- var t = HB(e, KIe);
- return /*#__PURE__*/ B.createElement(z0, {
+function l2(e) {
+ var t = UB(e, GIe);
+ return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(H0, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(V0, {
type: "radar",
id: e,
data: void 0,
@@ -67386,7 +67370,7 @@ function u2(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ B.createElement(R0, { legendPayload: RIe(t) }), /*#__PURE__*/ B.createElement(zIe, {
+ }), /*#__PURE__*/ B.createElement(L0, { legendPayload: LIe(t) }), /*#__PURE__*/ B.createElement(RIe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -67395,32 +67379,32 @@ function u2(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(JIe, a2({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(qIe, i2({}, t, { id: e }))));
}
-u2.displayName = "Radar";
+l2.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function d2() {
- return d2 = Object.assign ? Object.assign.bind() : function(e) {
+function u2() {
+ return u2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, d2.apply(null, arguments);
+ }, u2.apply(null, arguments);
}
-function f2(e) {
+function d2(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function p2(e) {
- return /*#__PURE__*/ B.createElement(M0, d2({ shapeType: "sector" }, e));
+function f2(e) {
+ return /*#__PURE__*/ B.createElement(j0, u2({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var m2 = (e, t, n) => {
+var p2 = (e, t, n) => {
var r = n ?? e;
- if (!kB(r)) return TB(r, t, 0);
-}, h2 = (e, t, n) => {
+ if (!AB(r)) return EB(r, t, 0);
+}, m2 = (e, t, n) => {
var r = {}, i = e.filter(Oq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
@@ -67429,18 +67413,18 @@ var m2 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: m2(t, n, i[0]?.barSize)
+ barSize: p2(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: m2(t, n, e.barSize)
+ barSize: p2(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function g2(e, t) {
+function h2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67450,30 +67434,30 @@ function g2(e, t) {
}
return n;
}
-function _2(e) {
+function g2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? g2(Object(n), !0).forEach(function(t) {
- YIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g2(Object(n)).forEach(function(t) {
+ t % 2 ? h2(Object(n), !0).forEach(function(t) {
+ JIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YIe(e, t, n) {
- return (t = XIe(t)) in e ? Object.defineProperty(e, t, {
+function JIe(e, t, n) {
+ return (t = YIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XIe(e) {
- var t = ZIe(e, "string");
+function YIe(e) {
+ var t = XIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZIe(e, t) {
+function XIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67483,10 +67467,10 @@ function ZIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function QIe(e, t, n, r, i) {
+function ZIe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = TB(e, n, 0, !0), s, c = [];
+ var o = EB(e, n, 0, !0), s, c = [];
if (MU(r[0]?.barSize)) {
var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);
d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);
@@ -67506,7 +67490,7 @@ function QIe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = TB(t, n, 0, !0);
+ var p = EB(t, n, 0, !0);
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m >>= 0);
@@ -67523,10 +67507,10 @@ function QIe(e, t, n, r, i) {
return s;
}
}
-var v2 = (e, t, n, r, i, a, o) => {
- var s = kB(o) ? t : o, c = QIe(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => _2(_2({}, e), {}, { position: _2(_2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, y2 = (e, t) => {
+var _2 = (e, t, n, r, i, a, o) => {
+ var s = AB(o) ? t : o, c = ZIe(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => g2(g2({}, e), {}, { position: g2(g2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, v2 = (e, t) => {
var n = Eq(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
@@ -67538,7 +67522,7 @@ var v2 = (e, t, n, r, i, a, o) => {
}
}
}
-}, b2 = (e, t) => {
+}, y2 = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -67546,7 +67530,7 @@ var v2 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function x2(e, t) {
+function b2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67556,30 +67540,30 @@ function x2(e, t) {
}
return n;
}
-function S2(e) {
+function x2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? x2(Object(n), !0).forEach(function(t) {
- $Ie(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x2(Object(n)).forEach(function(t) {
+ t % 2 ? b2(Object(n), !0).forEach(function(t) {
+ QIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Ie(e, t, n) {
- return (t = eLe(t)) in e ? Object.defineProperty(e, t, {
+function QIe(e, t, n) {
+ return (t = $Ie(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eLe(e) {
- var t = tLe(e, "string");
+function $Ie(e) {
+ var t = eLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tLe(e, t) {
+function eLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67589,81 +67573,81 @@ function tLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var C2 = $([(e, t) => gq(e, t), (e, t) => Y1(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return S2(S2({}, e), {}, { scale: t });
-}), w2 = (e, t) => mPe(e, "radiusAxis", t, !1), T2 = $([(e, t, n) => hq(e, n), (e, t, n) => Y1(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return S2(S2({}, e), {}, { scale: t });
-}), E2 = (e, t, n) => Z1(e, "angleAxis", n, !1), D2 = $([B1, (e, t, n, r) => r], (e, t) => {
+var S2 = $([(e, t) => gq(e, t), (e, t) => J1(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return x2(x2({}, e), {}, { scale: t });
+}), C2 = (e, t) => pPe(e, "radiusAxis", t, !1), w2 = $([(e, t, n) => hq(e, n), (e, t, n) => J1(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return x2(x2({}, e), {}, { scale: t });
+}), T2 = (e, t, n) => X1(e, "angleAxis", n, !1), E2 = $([z1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), O2 = $([
+}), D2 = $([
CW,
+ S2,
C2,
w2,
- T2,
- E2
-], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), nLe = $([
- T2,
- C2,
+ T2
+], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), tLe = $([
+ w2,
+ S2,
CW
], (e, t, n) => {
var r = n === "radial" ? e : t;
if (r != null && r.scale != null) return WU({ numericAxis: r });
-}), rLe = (e, t, n, r, i) => i, iLe = (e, t, n, r, i) => n, aLe = (e, t, n, r, i) => t, k2 = (e, t, n, r, i) => r.maxBarSize, A2 = (e) => e.type === "radialBar", oLe = $([$([
+}), nLe = (e, t, n, r, i) => i, rLe = (e, t, n, r, i) => n, iLe = (e, t, n, r, i) => t, O2 = (e, t, n, r, i) => r.maxBarSize, k2 = (e) => e.type === "radialBar", aLe = $([$([
$([
$([
CW,
- B1,
- iLe,
- aLe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(A2)),
+ z1,
+ rLe,
+ iLe
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(k2)),
$K,
() => void 0
- ], h2),
+ ], m2),
XK,
ZK,
QK,
$([
CW,
XK,
+ w2,
T2,
- E2,
+ S2,
C2,
- w2,
- k2
+ O2
], (e, t, n, r, i, a, o) => {
- var s = kB(o) ? t : o;
+ var s = AB(o) ? t : o;
return e === "centric" ? qU(n, r, !0) ?? s ?? 0 : qU(i, a, !0) ?? s ?? 0;
}),
- O2,
- k2
-], v2), D2], b2), j2 = $([V1], (e) => e.filter(A2).filter(Oq)), M2 = $([
+ D2,
+ O2
+], _2), E2], y2), A2 = $([B1], (e) => e.filter(k2).filter(Oq)), j2 = $([
$([
- j2,
+ A2,
FK,
- CZ
+ SZ
], Dq),
- j2,
+ A2,
eq,
tq
-], TZ), sLe = $([
+], wZ), oLe = $([
+ w2,
T2,
- E2,
+ S2,
C2,
- w2,
PK,
+ E2,
D2,
- O2,
CW,
- nLe,
+ tLe,
Cq,
- rLe,
- oLe,
- $([(e, t, n) => CW(e) === "centric" ? M2(e, "radiusAxis", t) : M2(e, "angleAxis", n), D2], y2)
+ nLe,
+ aLe,
+ $([(e, t, n) => CW(e) === "centric" ? j2(e, "radiusAxis", t) : j2(e, "angleAxis", n), E2], v2)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return wLe({
+ return CLe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -67684,7 +67668,7 @@ var C2 = $([(e, t) => gq(e, t), (e, t) => Y1(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), cLe = $([FK, (e, t) => t], (e, t) => {
+}), sLe = $([FK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -67697,31 +67681,31 @@ var C2 = $([(e, t) => gq(e, t), (e, t) => Y1(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function N2(e, t) {
+function M2(e, t) {
return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && MU(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var lLe = [
+var cLe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], uLe = [
+], lLe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], dLe = ["value", "background"];
-function P2() {
- return P2 = Object.assign ? Object.assign.bind() : function(e) {
+], uLe = ["value", "background"];
+function N2() {
+ return N2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, P2.apply(null, arguments);
+ }, N2.apply(null, arguments);
}
-function F2(e, t) {
+function P2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67731,30 +67715,30 @@ function F2(e, t) {
}
return n;
}
-function I2(e) {
+function F2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? F2(Object(n), !0).forEach(function(t) {
- fLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F2(Object(n)).forEach(function(t) {
+ t % 2 ? P2(Object(n), !0).forEach(function(t) {
+ dLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fLe(e, t, n) {
- return (t = pLe(t)) in e ? Object.defineProperty(e, t, {
+function dLe(e, t, n) {
+ return (t = fLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pLe(e) {
- var t = mLe(e, "string");
+function fLe(e) {
+ var t = pLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mLe(e, t) {
+function pLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67764,16 +67748,16 @@ function mLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function L2(e, t) {
+function I2(e, t) {
if (e == null) return {};
- var n, r, i = hLe(e, t);
+ var n, r, i = mLe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function hLe(e, t) {
+function mLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67782,8 +67766,8 @@ function hLe(e, t) {
}
return n;
}
-var R2 = [];
-function gLe(e) {
+var L2 = [];
+function hLe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -67800,15 +67784,15 @@ function gLe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ B.createElement(nPe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ B.createElement(tPe, { value: t ? i : void 0 }, r);
}
-function _Le(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = L2(n, lLe), l = fz(c), u = Q(t$), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = L2(n, uLe), h = N0(d, n.dataKey, s), g = P0(p), _ = F0(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ B.createElement(gLe, {
+function gLe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = I2(n, cLe), l = pz(c), u = Q(e$), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = I2(n, lLe), h = M0(d, n.dataKey, s), g = N0(p), _ = P0(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ B.createElement(hLe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = I2(I2(I2(I2({}, l), {}, { cornerRadius: f2(o) }, e), BB(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = F2(F2(F2(F2({}, l), {}, { cornerRadius: d2(o) }, e), VB(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -67819,13 +67803,13 @@ function _Le(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ B.createElement(S$, {
+ return n ? /*#__PURE__*/ B.createElement(x$, {
zIndex: oq.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ B.createElement(p2, f)) : /*#__PURE__*/ B.createElement(p2, P2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ B.createElement(N1, { label: n.label }), n.children);
+ }, /*#__PURE__*/ B.createElement(f2, f)) : /*#__PURE__*/ B.createElement(f2, N2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ B.createElement(M1, { label: n.label }), n.children);
}
-function vLe(e) {
+function _Le(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = fK(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, B.useState)(!1), m = (0, B.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, B.useCallback)(() => {
@@ -67841,37 +67825,37 @@ function vLe(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? R2).map((t, n) => {
+ var i = e === 1 ? r : (r ?? L2).map((t, n) => {
var r = d && d[n];
- if (r) return I2(I2({}, t), {}, {
- startAngle: DB(r.startAngle, t.startAngle, e),
- endAngle: DB(r.endAngle, t.endAngle, e)
+ if (r) return F2(F2({}, t), {}, {
+ startAngle: OB(r.startAngle, t.startAngle, e),
+ endAngle: OB(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return I2(I2({}, t), {}, { endAngle: DB(a, i, e) });
+ return F2(F2({}, t), {}, { endAngle: OB(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(_Le, {
- sectors: i ?? R2,
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(gLe, {
+ sectors: i ?? L2,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function yLe(e) {
+function vLe(e) {
var t = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(vLe, {
+ return /*#__PURE__*/ B.createElement(_Le, {
props: e,
previousSectorsRef: t
});
}
-function bLe(e) {
- var t = Q((t) => cLe(t, e.legendType));
- return /*#__PURE__*/ B.createElement(R0, { legendPayload: t ?? [] });
+function yLe(e) {
+ var t = Q((t) => sLe(t, e.legendType));
+ return /*#__PURE__*/ B.createElement(L0, { legendPayload: t ?? [] });
}
-var xLe = /*#__PURE__*/ B.memo((e) => {
+var bLe = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
- getPosition: MB,
+ getPosition: NB,
settings: {
graphicalItemId: l,
stroke: r,
@@ -67886,32 +67870,32 @@ var xLe = /*#__PURE__*/ B.memo((e) => {
unit: ""
}
};
- return /*#__PURE__*/ B.createElement(I0, { tooltipEntrySettings: u });
-}), SLe = class extends B.PureComponent {
+ return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: u });
+}), xLe = class extends B.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = pz(this.props.background);
- return /*#__PURE__*/ B.createElement(S$, { zIndex: N2(this.props.background, oq.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = L2(e, dLe);
+ var { cornerRadius: t } = this.props, n = mz(this.props.background);
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: M2(this.props.background, oq.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = I2(e, uLe);
if (!a) return null;
- var s = I2(I2(I2(I2(I2({ cornerRadius: f2(t) }, o), {}, { fill: "#eee" }, a), n), BB(this.props, e, r)), {}, {
+ var s = F2(F2(F2(F2(F2({ cornerRadius: d2(t) }, o), {}, { fill: "#eee" }, a), n), VB(this.props, e, r)), {}, {
index: r,
className: _h("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ B.createElement(p2, P2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ B.createElement(f2, N2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
}));
}
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = _h("recharts-area", n);
- return /*#__PURE__*/ B.createElement(S$, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(vz, { className: i }, r && /*#__PURE__*/ B.createElement(vz, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(vz, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(yLe, this.props))));
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: i }, r && /*#__PURE__*/ B.createElement(yz, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(yz, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(vLe, this.props))));
}
};
-function CLe(e) {
- var t = B.useMemo(() => S0(e.children, z$), [e.children]), n = B.useMemo(() => ({
+function SLe(e) {
+ var t = B.useMemo(() => x0(e.children, R$), [e.children]), n = B.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
@@ -67932,8 +67916,8 @@ function CLe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => sLe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? R2;
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xLe, {
+ ]), r = Q((r) => oLe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? L2;
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(bLe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -67943,9 +67927,9 @@ function CLe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ B.createElement(SLe, P2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ B.createElement(xLe, N2({}, e, { sectors: r })));
}
-var z2 = {
+var R2 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -67962,9 +67946,9 @@ var z2 = {
radiusAxisId: 0,
zIndex: oq.bar
};
-function wLe(e) {
+function CLe(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
- return g == null || l == null ? R2 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? L2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
if (n ? b = BU(n[r + t], i) : (b = IU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = UU({
@@ -67978,7 +67962,7 @@ function wLe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = bB(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = xB(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -68001,11 +67985,11 @@ function wLe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = bB(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = xB(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
- return I2(I2(I2({}, e), T), {}, {
+ return F2(F2(F2({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -68017,38 +68001,38 @@ function wLe(e) {
}, _ && _[t] && _[t].props);
});
}
-function B2(e) {
- var t = HB(e, z2);
- return /*#__PURE__*/ B.createElement(z0, {
+function z2(e) {
+ var t = UB(e, R2);
+ return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(H0, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(V0, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? z2.hide,
- angleAxisId: t.angleAxisId ?? z2.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? z2.radiusAxisId,
+ hide: t.hide ?? R2.hide,
+ angleAxisId: t.angleAxisId ?? R2.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? R2.radiusAxisId,
stackId: VU(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ B.createElement(bLe, t), /*#__PURE__*/ B.createElement(CLe, P2({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(yLe, t), /*#__PURE__*/ B.createElement(SLe, N2({}, t, { id: e }))));
}
-B2.displayName = "RadialBar";
+z2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var V2 = (e) => {
+var B2 = (e) => {
var { chartData: t } = e, n = vV(), r = aW();
- return (0, B.useEffect)(() => r ? () => {} : (n(N$(t)), () => {
- n(N$(void 0));
+ return (0, B.useEffect)(() => r ? () => {} : (n(M$(t)), () => {
+ n(M$(void 0));
}), [
t,
n,
r
]), null;
-}, H2 = {
+}, V2 = {
x: 0,
y: 0,
width: 0,
@@ -68059,13 +68043,13 @@ var V2 = (e) => {
bottom: 0,
left: 0
}
-}, U2 = rU({
+}, H2 = rU({
name: "brush",
- initialState: H2,
+ initialState: V2,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? H2 : t.payload;
+ return t.payload == null ? V2 : t.payload;
} }
-}), { setBrushSettings: TLe } = U2.actions, ELe = U2.reducer, DLe = (e, t) => {
+}), { setBrushSettings: wLe } = H2.actions, TLe = H2.reducer, ELe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -68073,9 +68057,9 @@ var V2 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, OLe = (e) => {
+}, DLe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return DLe({
+ return ELe({
x: t,
y: n
}, {
@@ -68083,13 +68067,13 @@ var V2 = (e) => {
y: i
});
};
-function kLe(e) {
+function OLe(e) {
return (e % 180 + 180) % 180;
}
-var ALe = function(e) {
- var { width: t, height: n } = e, r = kLe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var kLe = function(e) {
+ var { width: t, height: n } = e, r = OLe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, W2 = rU({
+}, U2 = rU({
name: "referenceElements",
initialState: {
dots: [],
@@ -68119,17 +68103,17 @@ var ALe = function(e) {
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: jLe, removeDot: MLe, addArea: NLe, removeArea: PLe, addLine: FLe, removeLine: ILe } = W2.actions, LLe = W2.reducer, G2 = /*#__PURE__*/ (0, B.createContext)(void 0), RLe = (e) => {
- var { children: t } = e, [n] = (0, B.useState)(`${wB("recharts")}-clip`), r = X0();
+}), { addDot: ALe, removeDot: jLe, addArea: MLe, removeArea: NLe, addLine: PLe, removeLine: FLe } = U2.actions, ILe = U2.reducer, W2 = /*#__PURE__*/ (0, B.createContext)(void 0), LLe = (e) => {
+ var { children: t } = e, [n] = (0, B.useState)(`${TB("recharts")}-clip`), r = Y0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ B.createElement(G2.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {
+ return /*#__PURE__*/ B.createElement(W2.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, zLe = () => (0, B.useContext)(G2), BLe = class {
+}, RLe = () => (0, B.useContext)(W2), zLe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -68155,7 +68139,7 @@ var ALe = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function K2(e, t) {
+function G2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68165,30 +68149,30 @@ function K2(e, t) {
}
return n;
}
-function q2(e) {
+function K2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? K2(Object(n), !0).forEach(function(t) {
- VLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K2(Object(n)).forEach(function(t) {
+ t % 2 ? G2(Object(n), !0).forEach(function(t) {
+ BLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VLe(e, t, n) {
- return (t = HLe(t)) in e ? Object.defineProperty(e, t, {
+function BLe(e, t, n) {
+ return (t = VLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HLe(e) {
- var t = ULe(e, "string");
+function VLe(e) {
+ var t = HLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ULe(e, t) {
+function HLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68198,25 +68182,25 @@ function ULe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function J2() {
- return J2 = Object.assign ? Object.assign.bind() : function(e) {
+function q2() {
+ return q2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, J2.apply(null, arguments);
+ }, q2.apply(null, arguments);
}
-var WLe = (e, t) => {
+var ULe = (e, t) => {
var n;
if (/*#__PURE__*/ B.isValidElement(e)) n = /*#__PURE__*/ B.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
if (!MU(t.x1) || !MU(t.y1) || !MU(t.x2) || !MU(t.y2)) return null;
- n = /*#__PURE__*/ B.createElement("line", J2({}, t, { className: "recharts-reference-line-line" }));
+ n = /*#__PURE__*/ B.createElement("line", q2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, GLe = (e, t, n, r, i, a) => {
+}, WLe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
if (!MU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -68227,7 +68211,7 @@ var WLe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, KLe = (e, t, n, r, i, a) => {
+}, GLe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
if (!MU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -68238,7 +68222,7 @@ var WLe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, qLe = (e, t, n, r) => {
+}, KLe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -68247,43 +68231,43 @@ var WLe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, JLe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = CB(s);
- return CB(c) ? GLe(c, u, r, a, t, n) : d ? KLe(s, u, r, i, e, n) : l != null && l.length === 2 ? qLe(l, u, r, new BLe({
+}, qLe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = wB(s);
+ return wB(c) ? WLe(c, u, r, a, t, n) : d ? GLe(s, u, r, i, e, n) : l != null && l.length === 2 ? KLe(l, u, r, new zLe({
x: e,
y: t
})) : null;
};
-function YLe(e) {
+function JLe(e) {
var t = vV();
- return (0, B.useEffect)(() => (t(FLe(e)), () => {
- t(ILe(e));
+ return (0, B.useEffect)(() => (t(PLe(e)), () => {
+ t(FLe(e));
})), null;
}
-function XLe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = aW(), s = zLe(), c = Q((e) => eZ(e, t)), l = Q((e) => rZ(e, n)), u = Q((e) => eQ(e, "xAxis", t, o)), d = Q((e) => eQ(e, "yAxis", n, o)), f = yW();
+function YLe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = aW(), s = RLe(), c = Q((e) => $X(e, t)), l = Q((e) => nZ(e, n)), u = Q((e) => $Z(e, "xAxis", t, o)), d = Q((e) => $Z(e, "yAxis", n, o)), f = yW();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = JLe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = qLe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = q2(q2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, mz(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = K2(K2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, hz(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = OLe({
+ }), x = DLe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ B.createElement(S$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(vz, { className: _h("recharts-reference-line", i) }, WLe(r, b), /*#__PURE__*/ B.createElement(v1, J2({}, x, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-reference-line", i) }, ULe(r, b), /*#__PURE__*/ B.createElement(_1, q2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ B.createElement(E1, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ B.createElement(T1, { label: e.label }), e.children)));
}
-var ZLe = {
+var XLe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -68295,21 +68279,21 @@ var ZLe = {
position: "middle",
zIndex: oq.line
};
-function Y2(e) {
- var t = HB(e, ZLe);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(YLe, {
+function J2(e) {
+ var t = UB(e, XLe);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(JLe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ B.createElement(XLe, t));
+ }), /*#__PURE__*/ B.createElement(YLe, t));
}
-Y2.displayName = "ReferenceLine";
+J2.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function X2(e, t) {
+function Y2(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -68320,13 +68304,13 @@ function X2(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function QLe(e, t, n) {
- return ALe({
+function ZLe(e, t, n) {
+ return kLe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function $Le(e, t, n) {
+function QLe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -68336,33 +68320,33 @@ function $Le(e, t, n) {
end: r ? i : a
};
}
-function Z2(e, t, n, r, i) {
+function X2(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function eRe(e, t) {
- return X2(e, t + 1);
+function $Le(e, t) {
+ return Y2(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function tRe(e, t, n, r, i) {
+function eRe(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
- if (t === void 0) return { v: X2(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || Z2(e, p, f, u, s);
+ if (t === void 0) return { v: Y2(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || X2(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function nRe(e, t, n, r, i) {
+function tRe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || Z2(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || X2(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -68378,7 +68362,7 @@ function nRe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function Q2(e, t) {
+function Z2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68388,30 +68372,30 @@ function Q2(e, t) {
}
return n;
}
-function $2(e) {
+function Q2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Q2(Object(n), !0).forEach(function(t) {
- rRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q2(Object(n)).forEach(function(t) {
+ t % 2 ? Z2(Object(n), !0).forEach(function(t) {
+ nRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rRe(e, t, n) {
- return (t = iRe(t)) in e ? Object.defineProperty(e, t, {
+function nRe(e, t, n) {
+ return (t = rRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iRe(e) {
- var t = aRe(e, "string");
+function rRe(e) {
+ var t = iRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aRe(e, t) {
+function iRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68421,26 +68405,26 @@ function aRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function oRe(e, t, n, r, i) {
+function aRe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = $2($2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = $2($2({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && Z2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = $2($2({}, l), {}, { isShow: !0 }));
+ a[t] = l = Q2(Q2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = Q2(Q2({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && X2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = Q2(Q2({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function sRe(e, t, n, r, i, a) {
+function oRe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = $2($2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && Z2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = $2($2({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = Q2(Q2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && X2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = Q2(Q2({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -68449,17 +68433,17 @@ function sRe(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = $2($2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = $2($2({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && Z2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = $2($2({}, a), {}, { isShow: !0 }));
+ o[t] = a = Q2(Q2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = Q2(Q2({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && X2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = Q2(Q2({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function e4(e, t, n) {
+function $2(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || NG.isSsr) return eRe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? G$(u, {
+ if (Z(c) || NG.isSsr) return $Le(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? W$(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -68467,19 +68451,19 @@ function e4(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? QLe(G$(i, {
+ return p === "width" ? ZLe(W$(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : G$(i, {
+ }), m, d) : W$(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? bB(_.coordinate - g.coordinate) : 1, y = $Le(a, v, p);
- return c === "equidistantPreserveStart" ? tRe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? nRe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? sRe(v, y, h, i, o, c === "preserveStartEnd") : oRe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? xB(_.coordinate - g.coordinate) : 1, y = QLe(a, v, p);
+ return c === "equidistantPreserveStart" ? eRe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? tRe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? oRe(v, y, h, i, o, c === "preserveStartEnd") : aRe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var cRe = (e) => {
+var sRe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -68492,7 +68476,7 @@ var cRe = (e) => {
return Math.round(l);
}
return 0;
-}, t4 = rU({
+}, e4 = rU({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -68508,7 +68492,7 @@ var cRe = (e) => {
delete e[n][r];
}
}
-}), { setRenderedTicks: lRe, removeRenderedTicks: uRe } = t4.actions, dRe = t4.reducer, fRe = [
+}), { setRenderedTicks: cRe, removeRenderedTicks: lRe } = e4.actions, uRe = e4.reducer, dRe = [
"axisLine",
"width",
"height",
@@ -68518,16 +68502,16 @@ var cRe = (e) => {
"axisType",
"axisId"
];
-function pRe(e, t) {
+function fRe(e, t) {
if (e == null) return {};
- var n, r, i = mRe(e, t);
+ var n, r, i = pRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function mRe(e, t) {
+function pRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68536,16 +68520,16 @@ function mRe(e, t) {
}
return n;
}
-function n4() {
- return n4 = Object.assign ? Object.assign.bind() : function(e) {
+function t4() {
+ return t4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, n4.apply(null, arguments);
+ }, t4.apply(null, arguments);
}
-function r4(e, t) {
+function n4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68555,30 +68539,30 @@ function r4(e, t) {
}
return n;
}
-function i4(e) {
+function r4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? r4(Object(n), !0).forEach(function(t) {
- hRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r4(Object(n)).forEach(function(t) {
+ t % 2 ? n4(Object(n), !0).forEach(function(t) {
+ mRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hRe(e, t, n) {
- return (t = gRe(t)) in e ? Object.defineProperty(e, t, {
+function mRe(e, t, n) {
+ return (t = hRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gRe(e) {
- var t = _Re(e, "string");
+function hRe(e) {
+ var t = gRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Re(e, t) {
+function gRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68588,7 +68572,7 @@ function _Re(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var a4 = {
+var i4 = {
x: 0,
y: 0,
width: 0,
@@ -68612,13 +68596,13 @@ var a4 = {
interval: "preserveEnd",
zIndex: oq.axis
};
-function vRe(e) {
+function _Re(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
- var l = i4(i4(i4({}, c), fz(s)), {}, { fill: "none" });
+ var l = r4(r4(r4({}, c), pz(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = i4(i4({}, l), {}, {
+ l = r4(r4({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -68626,16 +68610,16 @@ function vRe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = i4(i4({}, l), {}, {
+ l = r4(r4({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ B.createElement("line", n4({}, l, { className: _h("recharts-cartesian-axis-line", _B(s, "className")) }));
+ return /*#__PURE__*/ B.createElement("line", t4({}, l, { className: _h("recharts-cartesian-axis-line", vB(s, "className")) }));
}
-function yRe(e, t, n, r, i, a, o, s, c) {
+function vRe(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -68662,14 +68646,14 @@ function yRe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function bRe(e, t) {
+function yRe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function xRe(e, t) {
+function bRe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -68677,19 +68661,19 @@ function xRe(e, t) {
default: return t ? "end" : "start";
}
}
-function SRe(e) {
+function xRe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = _h(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, i4(i4({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(i4(i4({}, n), {}, { className: a }));
+ if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, r4(r4({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(r4(r4({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = _h(o, o0(t))), i = /*#__PURE__*/ B.createElement(u1, n4({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = _h(o, a0(t))), i = /*#__PURE__*/ B.createElement(l1, t4({}, n, { className: o }), r);
}
return i;
}
-function CRe(e) {
+function SRe(e) {
var { ticks: t, axisType: n, axisId: r } = e, i = vV();
- return (0, B.useEffect)(() => r == null || n == null ? MB : (i(lRe({
+ return (0, B.useEffect)(() => r == null || n == null ? NB : (i(cRe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -68699,7 +68683,7 @@ function CRe(e) {
axisId: r,
axisType: n
})), () => {
- i(uRe({
+ i(lRe({
axisId: r,
axisType: n
}));
@@ -68710,17 +68694,17 @@ function CRe(e) {
n
]), null;
}
-var wRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = e4(i4(i4({}, b), {}, { ticks: n }), v, y), T = fz(b), E = pz(r), D = i1(T.textAnchor) ? T.textAnchor : bRe(u, d), O = xRe(u, d), k = {};
+var CRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = $2(r4(r4({}, b), {}, { ticks: n }), v, y), T = pz(b), E = mz(r), D = r1(T.textAnchor) ? T.textAnchor : yRe(u, d), O = bRe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = i4(i4({}, T), {}, { fill: "none" }, k), j = w.map((e) => i4({ entry: e }, yRe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = r4(r4({}, T), {}, { fill: "none" }, k), j = w.map((e) => r4({ entry: e }, vRe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ B.createElement(vz, {
+ return /*#__PURE__*/ B.createElement(yz, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ B.createElement("line", n4({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", _B(i, "className")) })));
+ }, i && /*#__PURE__*/ B.createElement("line", t4({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", vB(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = i4(i4({}, i4(i4(i4(i4({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = r4(r4({}, r4(r4(r4(r4({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -68731,26 +68715,26 @@ var wRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ B.createElement(vz, n4({
+ return /*#__PURE__*/ B.createElement(yz, t4({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, BB(x, n, t)), r && /*#__PURE__*/ B.createElement(SRe, {
+ }, VB(x, n, t)), r && /*#__PURE__*/ B.createElement(xRe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(CRe, {
+ return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(SRe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ B.createElement(S$, { zIndex: oq.label }, /*#__PURE__*/ B.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ B.createElement(x$, { zIndex: oq.label }, /*#__PURE__*/ B.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), TRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = pRe(e, fRe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);
- (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => cRe({
+}), wRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = fRe(e, dRe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);
+ (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => sRe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -68768,7 +68752,7 @@ var wRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(S$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(vz, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(vRe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(_Re, {
x: e.x,
y: e.y,
width: r,
@@ -68776,8 +68760,8 @@ var wRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: fz(e)
- }), /*#__PURE__*/ B.createElement(wRe, {
+ otherSvgProps: pz(e)
+ }), /*#__PURE__*/ B.createElement(CRe, {
ref: g,
axisType: c,
events: u,
@@ -68801,32 +68785,32 @@ var wRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ B.createElement(v1, {
+ }), /*#__PURE__*/ B.createElement(_1, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ B.createElement(E1, {
+ }, /*#__PURE__*/ B.createElement(T1, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), o4 = /*#__PURE__*/ B.forwardRef((e, t) => {
- var n = HB(e, a4);
- return /*#__PURE__*/ B.createElement(TRe, n4({}, n, { ref: t }));
+}), a4 = /*#__PURE__*/ B.forwardRef((e, t) => {
+ var n = UB(e, i4);
+ return /*#__PURE__*/ B.createElement(wRe, t4({}, n, { ref: t }));
});
-o4.displayName = "CartesianAxis";
+a4.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var ERe = [
+var TRe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], DRe = ["offset"], ORe = ["xAxisId", "yAxisId"], kRe = ["xAxisId", "yAxisId"];
-function s4(e, t) {
+], ERe = ["offset"], DRe = ["xAxisId", "yAxisId"], ORe = ["xAxisId", "yAxisId"];
+function o4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68836,30 +68820,30 @@ function s4(e, t) {
}
return n;
}
-function c4(e) {
+function s4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? s4(Object(n), !0).forEach(function(t) {
- ARe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s4(Object(n)).forEach(function(t) {
+ t % 2 ? o4(Object(n), !0).forEach(function(t) {
+ kRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ARe(e, t, n) {
- return (t = jRe(t)) in e ? Object.defineProperty(e, t, {
+function kRe(e, t, n) {
+ return (t = ARe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jRe(e) {
- var t = MRe(e, "string");
+function ARe(e) {
+ var t = jRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MRe(e, t) {
+function jRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68869,25 +68853,25 @@ function MRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function l4() {
- return l4 = Object.assign ? Object.assign.bind() : function(e) {
+function c4() {
+ return c4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, l4.apply(null, arguments);
+ }, c4.apply(null, arguments);
}
-function u4(e, t) {
+function l4(e, t) {
if (e == null) return {};
- var n, r, i = NRe(e, t);
+ var n, r, i = MRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function NRe(e, t) {
+function MRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68896,7 +68880,7 @@ function NRe(e, t) {
}
return n;
}
-var PRe = (e) => {
+var NRe = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -68912,13 +68896,13 @@ var PRe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function d4(e) {
+function u4(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ B.isValidElement(t)) r = /*#__PURE__*/ B.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = fz(u4(n, ERe)) ?? {}, { offset: u } = l, d = u4(l, DRe);
- r = /*#__PURE__*/ B.createElement("line", l4({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = pz(l4(n, TRe)) ?? {}, { offset: u } = l, d = l4(l, ERe);
+ r = /*#__PURE__*/ B.createElement("line", c4({}, d, {
x1: i,
y1: a,
x2: o,
@@ -68929,11 +68913,11 @@ function d4(e) {
}
return r;
}
-function FRe(e) {
+function PRe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = u4(e, ORe), c = i.map((e, i) => {
- var a = c4(c4({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = l4(e, DRe), c = i.map((e, i) => {
+ var a = s4(s4({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -68941,7 +68925,7 @@ function FRe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ B.createElement(d4, {
+ return /*#__PURE__*/ B.createElement(u4, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -68949,11 +68933,11 @@ function FRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function IRe(e) {
+function FRe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = u4(e, kRe), c = i.map((e, i) => {
- var a = c4(c4({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = l4(e, ORe), c = i.map((e, i) => {
+ var a = s4(s4({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -68961,7 +68945,7 @@ function IRe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ B.createElement(d4, {
+ return /*#__PURE__*/ B.createElement(u4, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -68969,7 +68953,7 @@ function IRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function LRe(e) {
+function IRe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -68992,7 +68976,7 @@ function LRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function RRe(e) {
+function LRe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -69015,9 +68999,9 @@ function RRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var zRe = (e, t) => {
+var RRe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return RU(e4(c4(c4(c4({}, a4), n), {}, {
+ return RU($2(s4(s4(s4({}, i4), n), {}, {
ticks: zU(n, !0),
viewBox: {
x: 0,
@@ -69026,9 +69010,9 @@ var zRe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, BRe = (e, t) => {
+}, zRe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return RU(e4(c4(c4(c4({}, a4), n), {}, {
+ return RU($2(s4(s4(s4({}, i4), n), {}, {
ticks: zU(n, !0),
viewBox: {
x: 0,
@@ -69037,7 +69021,7 @@ var zRe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, VRe = {
+}, BRe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -69051,18 +69035,18 @@ var zRe = (e, t) => {
syncWithTicks: !1,
zIndex: oq.grid
};
-function f4(e) {
- var t = xW(), n = SW(), r = bW(), i = c4(c4({}, HB(e, VRe)), {}, {
+function d4(e) {
+ var t = xW(), n = SW(), r = bW(), i = s4(s4({}, UB(e, BRe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = aW(), h = Q((e) => uQ(e, "xAxis", a, m)), g = Q((e) => uQ(e, "yAxis", o, m));
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = aW(), h = Q((e) => lQ(e, "xAxis", a, m)), g = Q((e) => lQ(e, "yAxis", o, m));
if (!NU(l) || !NU(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || zRe, v = i.horizontalCoordinatesGenerator || BRe, { horizontalPoints: y, verticalPoints: b } = i;
+ var _ = i.verticalCoordinatesGenerator || RRe, v = i.horizontalCoordinatesGenerator || zRe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? c4(c4({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? s4(s4({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
@@ -69071,14 +69055,14 @@ function f4(e) {
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? c4(c4({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? s4(s4({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
cW(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ B.createElement(S$, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(PRe, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(NRe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -69086,22 +69070,22 @@ function f4(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ B.createElement(LRe, l4({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(RRe, l4({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(FRe, l4({}, i, {
+ }), /*#__PURE__*/ B.createElement(IRe, c4({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(LRe, c4({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(PRe, c4({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ B.createElement(IRe, l4({}, i, {
+ })), /*#__PURE__*/ B.createElement(FRe, c4({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-f4.displayName = "CartesianGrid";
+d4.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var p4 = rU({
+var f4 = rU({
name: "errorBars",
initialState: {},
reducers: {
@@ -69118,17 +69102,17 @@ var p4 = rU({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: HRe, replaceErrorBar: URe, removeErrorBar: WRe } = p4.actions, GRe = p4.reducer, KRe = ["children"];
-function qRe(e, t) {
+}), { addErrorBar: VRe, replaceErrorBar: HRe, removeErrorBar: URe } = f4.actions, WRe = f4.reducer, GRe = ["children"];
+function KRe(e, t) {
if (e == null) return {};
- var n, r, i = JRe(e, t);
+ var n, r, i = qRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function JRe(e, t) {
+function qRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69137,7 +69121,7 @@ function JRe(e, t) {
}
return n;
}
-var YRe = /*#__PURE__*/ (0, B.createContext)({
+var JRe = /*#__PURE__*/ (0, B.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -69148,22 +69132,22 @@ var YRe = /*#__PURE__*/ (0, B.createContext)({
}),
errorBarOffset: 0
});
-function m4(e) {
- var { children: t } = e, n = qRe(e, KRe);
- return /*#__PURE__*/ B.createElement(YRe.Provider, { value: n }, t);
+function p4(e) {
+ var { children: t } = e, n = KRe(e, GRe);
+ return /*#__PURE__*/ B.createElement(JRe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function h4(e, t) {
- var n = Q((t) => eZ(t, e)), r = Q((e) => rZ(e, t)), i = n?.allowDataOverflow ?? QX.allowDataOverflow, a = r?.allowDataOverflow ?? tZ.allowDataOverflow;
+function m4(e, t) {
+ var n = Q((t) => $X(t, e)), r = Q((e) => nZ(e, t)), i = n?.allowDataOverflow ?? ZX.allowDataOverflow, a = r?.allowDataOverflow ?? eZ.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function g4(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = X0(), { needClipX: a, needClipY: o, needClip: s } = h4(t, n);
+function h4(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = Y0(), { needClipX: a, needClipY: o, needClip: s } = m4(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ B.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ B.createElement("rect", {
@@ -69175,30 +69159,30 @@ function g4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var _4 = (e, t, n, r) => hQ(e, "xAxis", t, r), v4 = (e, t, n, r) => mQ(e, "xAxis", t, r), y4 = (e, t, n, r) => hQ(e, "yAxis", n, r), b4 = (e, t, n, r) => mQ(e, "yAxis", n, r), XRe = $([
+var g4 = (e, t, n, r) => mQ(e, "xAxis", t, r), _4 = (e, t, n, r) => pQ(e, "xAxis", t, r), v4 = (e, t, n, r) => mQ(e, "yAxis", n, r), y4 = (e, t, n, r) => pQ(e, "yAxis", n, r), YRe = $([
CW,
- _4,
- y4,
+ g4,
v4,
- b4
-], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), ZRe = (e, t, n, r, i) => i;
-function QRe(e) {
+ _4,
+ y4
+], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), XRe = (e, t, n, r, i) => i;
+function ZRe(e) {
return e.type === "line";
}
-var $Re = $([
+var QRe = $([
CW,
+ g4,
+ v4,
_4,
y4,
- v4,
- b4,
- $([lZ, ZRe], (e, t) => e.filter(QRe).find((e) => e.id === t)),
- XRe,
+ $([cZ, XRe], (e, t) => e.filter(ZRe).find((e) => e.id === t)),
+ YRe,
IK
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return yze({
+ if (p != null) return vze({
layout: e,
xAxis: t,
yAxis: n,
@@ -69212,8 +69196,8 @@ var $Re = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function x4(e) {
- var t = pz(e), n = 3, r = 2;
+function b4(e) {
+ var t = mz(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -69228,13 +69212,13 @@ function x4(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var eze = ["id"], tze = [
+var $Re = ["id"], eze = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], nze = [
+], tze = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -69250,16 +69234,16 @@ var eze = ["id"], tze = [
"yAxisId",
"id"
];
-function S4() {
- return S4 = Object.assign ? Object.assign.bind() : function(e) {
+function x4() {
+ return x4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, S4.apply(null, arguments);
+ }, x4.apply(null, arguments);
}
-function C4(e, t) {
+function S4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69269,30 +69253,30 @@ function C4(e, t) {
}
return n;
}
-function w4(e) {
+function C4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? C4(Object(n), !0).forEach(function(t) {
- rze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C4(Object(n)).forEach(function(t) {
+ t % 2 ? S4(Object(n), !0).forEach(function(t) {
+ nze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rze(e, t, n) {
- return (t = ize(t)) in e ? Object.defineProperty(e, t, {
+function nze(e, t, n) {
+ return (t = rze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ize(e) {
- var t = aze(e, "string");
+function rze(e) {
+ var t = ize(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aze(e, t) {
+function ize(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69302,16 +69286,16 @@ function aze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function T4(e, t) {
+function w4(e, t) {
if (e == null) return {};
- var n, r, i = oze(e, t);
+ var n, r, i = aze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oze(e, t) {
+function aze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69320,7 +69304,7 @@ function oze(e, t) {
}
return n;
}
-var sze = (e) => {
+var oze = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -69330,10 +69314,10 @@ var sze = (e) => {
value: YU(n, t),
payload: e
}];
-}, cze = /*#__PURE__*/ B.memo((e) => {
+}, sze = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: MB,
+ getPosition: NB,
settings: {
stroke: r,
strokeWidth: i,
@@ -69348,15 +69332,15 @@ var sze = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ B.createElement(I0, { tooltipEntrySettings: d });
-}), E4 = (e, t) => `${t}px ${e}px`;
-function lze(e, t) {
+ return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: d });
+}), T4 = (e, t) => `${t}px ${e}px`;
+function cze(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var uze = (e, t, n) => {
+var lze = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return E4(t, e);
+ if (!r) return T4(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
var l, u = n[s];
if (u != null && c + u > a) {
@@ -69366,14 +69350,14 @@ var uze = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...lze(n, i),
+ ...cze(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function dze(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = fz(T4(r, eze));
- return /*#__PURE__*/ B.createElement(K0, {
+function uze(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = pz(w4(r, $Re));
+ return /*#__PURE__*/ B.createElement(G0, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -69384,7 +69368,7 @@ function dze(e) {
clipPathId: t
});
}
-function fze(e) {
+function dze(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, B.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -69394,7 +69378,7 @@ function fze(e) {
upperWidth: 0,
height: 0
};
- return w4(w4({}, t), {}, {
+ return C4(C4({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -69402,10 +69386,10 @@ function fze(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ B.createElement(A1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, n);
}
-function D4(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = w4(w4({}, mz(T4(a, tze))), {}, {
+function E4(e) {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = C4(C4({}, hz(w4(a, eze))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -69415,31 +69399,31 @@ function D4(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(M0, S4({
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(j0, x4({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(dze, {
+ }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(uze, {
points: r,
clipPathId: t,
props: a
}));
}
-function pze(e) {
+function fze(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function mze(e) {
+function pze(e) {
var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = fK(o, "recharts-line-"), y = (0, B.useRef)(v), [b, x] = (0, B.useState)(!1), S = !b, C = (0, B.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, B.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = pze(r.current), E = (0, B.useRef)(0);
+ }, [g]), T = fze(r.current), E = (0, B.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ B.createElement(fze, {
+ return /*#__PURE__*/ B.createElement(dze, {
points: o,
showLabels: S
}, n.children, /*#__PURE__*/ B.createElement(dK, {
@@ -69452,26 +69436,26 @@ function mze(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = DB(D, T + D, e), u = Math.min(l, T), d = c ? s ? uze(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : E4(T, u) : s == null ? void 0 : String(s);
+ var l = OB(D, T + D, e), u = Math.min(l, T), d = c ? s ? lze(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : T4(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
- return w4(w4({}, t), {}, {
- x: DB(i.x, t.x, e),
- y: DB(i.y, t.y, e)
+ return C4(C4({}, t), {}, {
+ x: OB(i.x, t.x, e),
+ y: OB(i.y, t.y, e)
});
}
- return f ? w4(w4({}, t), {}, {
- x: DB(p * 2, t.x, e),
- y: DB(m / 2, t.y, e)
- }) : w4(w4({}, t), {}, {
+ return f ? C4(C4({}, t), {}, {
+ x: OB(p * 2, t.x, e),
+ y: OB(m / 2, t.y, e)
+ }) : C4(C4({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ B.createElement(D4, {
+ return i.current = g, /*#__PURE__*/ B.createElement(E4, {
props: n,
points: g,
clipPathId: t,
@@ -69479,18 +69463,18 @@ function mze(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ B.createElement(D4, {
+ return /*#__PURE__*/ B.createElement(E4, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ B.createElement(N1, { label: n.label }));
+ }), /*#__PURE__*/ B.createElement(M1, { label: n.label }));
}
-function hze(e) {
+function mze(e) {
var { clipPathId: t, props: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(0), a = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(mze, {
+ return /*#__PURE__*/ B.createElement(pze, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -69498,17 +69482,17 @@ function hze(e) {
pathRef: a
});
}
-var gze = (e, t) => ({
+var hze = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
errorVal: IU(e.payload, t)
-}), _ze = class extends B.Component {
+}), gze = class extends B.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
- var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = x4(t), _ = C0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ B.createElement(S$, { zIndex: f }, /*#__PURE__*/ B.createElement(vz, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(g4, {
+ var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = b4(t), _ = S0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: f }, /*#__PURE__*/ B.createElement(yz, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(h4, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -69517,16 +69501,16 @@ var gze = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ B.createElement(m4, {
+ }))), /*#__PURE__*/ B.createElement(p4, {
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: gze,
+ dataPointFormatter: hze,
errorBarOffset: 0
- }, /*#__PURE__*/ B.createElement(hze, {
+ }, /*#__PURE__*/ B.createElement(mze, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ B.createElement($0, {
+ }))), /*#__PURE__*/ B.createElement(Q0, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -69534,7 +69518,7 @@ var gze = (e, t) => ({
clipPath: y
}));
}
-}, O4 = {
+}, D4 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -69554,11 +69538,11 @@ var gze = (e, t) => ({
zIndex: oq.line,
type: "linear"
};
-function vze(e) {
- var t = HB(e, O4), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = T4(t, nze), { needClip: _ } = h4(p, m), v = X0(), y = wW(), b = aW(), x = Q((e) => $Re(e, p, m, b, h));
+function _ze(e) {
+ var t = UB(e, D4), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = w4(t, tze), { needClip: _ } = m4(p, m), v = Y0(), y = wW(), b = aW(), x = Q((e) => QRe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ B.createElement(_ze, S4({}, g, {
+ return /*#__PURE__*/ B.createElement(gze, x4({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -69582,7 +69566,7 @@ function vze(e) {
needClip: _
}));
}
-function yze(e) {
+function vze(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
var l = IU(e, o);
@@ -69594,11 +69578,11 @@ function yze(e) {
entry: e,
index: c
}),
- y: (kB(l) ? null : r.scale.map(l)) ?? null,
+ y: (AB(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = kB(l) ? null : n.scale.map(l), d = HU({
+ var u = AB(l) ? null : n.scale.map(l), d = HU({
axis: r,
ticks: a,
bandSize: s,
@@ -69613,12 +69597,12 @@ function yze(e) {
};
}).filter(Boolean);
}
-function bze(e) {
- var t = HB(e, O4), n = aW();
- return /*#__PURE__*/ B.createElement(z0, {
+function yze(e) {
+ var t = UB(e, D4), n = aW();
+ return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(L0, { legendPayload: sze(t) }), /*#__PURE__*/ B.createElement(cze, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: oze(t) }), /*#__PURE__*/ B.createElement(sze, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -69629,7 +69613,7 @@ function bze(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(V0, {
+ }), /*#__PURE__*/ B.createElement(B0, {
type: "line",
id: e,
data: t.data,
@@ -69639,33 +69623,33 @@ function bze(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ B.createElement(vze, S4({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(_ze, x4({}, t, { id: e }))));
}
-var k4 = /*#__PURE__*/ B.memo(bze, SG);
-k4.displayName = "Line";
+var O4 = /*#__PURE__*/ B.memo(yze, SG);
+O4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function A4(e, t) {
+function k4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function j4(e, t) {
+function A4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var M4 = (e, t, n) => hQ(e, "xAxis", A4(e, t), n), N4 = (e, t, n) => mQ(e, "xAxis", A4(e, t), n), P4 = (e, t, n) => hQ(e, "yAxis", j4(e, t), n), F4 = (e, t, n) => mQ(e, "yAxis", j4(e, t), n), xze = $([
+var j4 = (e, t, n) => mQ(e, "xAxis", k4(e, t), n), M4 = (e, t, n) => pQ(e, "xAxis", k4(e, t), n), N4 = (e, t, n) => mQ(e, "yAxis", A4(e, t), n), P4 = (e, t, n) => pQ(e, "yAxis", A4(e, t), n), bze = $([
CW,
- M4,
- P4,
+ j4,
N4,
- F4
-], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), I4 = $([lZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), L4 = (e) => LU(CW(e), "xAxis") ? "yAxis" : "xAxis", Sze = (e, t) => L4(e) === "yAxis" ? j4(e, t) : A4(e, t), Cze = $([
+ M4,
+ P4
+], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), F4 = $([cZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), I4 = (e) => LU(CW(e), "xAxis") ? "yAxis" : "xAxis", xze = (e, t) => I4(e) === "yAxis" ? A4(e, t) : k4(e, t), Sze = $([
CW,
+ j4,
+ N4,
M4,
P4,
- N4,
- F4,
- $([I4, (e, t, n) => EZ(e, L4(e), Sze(e, t), n)], (e, t) => {
+ $([F4, (e, t, n) => TZ(e, I4(e), xze(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = Eq(e);
if (n != null && r != null) {
@@ -69675,14 +69659,14 @@ var M4 = (e, t, n) => hQ(e, "xAxis", A4(e, t), n), N4 = (e, t, n) => mQ(e, "xAxi
}
}),
LK,
- xze,
- I4,
- HDe
+ bze,
+ F4,
+ BDe
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return Uze({
+ if (m != null) return Hze({
layout: e,
xAxis: t,
yAxis: n,
@@ -69696,7 +69680,7 @@ var M4 = (e, t, n) => hQ(e, "xAxis", A4(e, t), n), N4 = (e, t, n) => mQ(e, "xAxi
bandSize: s
});
}
-}), wze = ["id"], Tze = [
+}), Cze = ["id"], wze = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -69712,25 +69696,25 @@ var M4 = (e, t, n) => hQ(e, "xAxis", A4(e, t), n), N4 = (e, t, n) => mQ(e, "xAxi
"xAxisId",
"yAxisId"
];
-function R4() {
- return R4 = Object.assign ? Object.assign.bind() : function(e) {
+function L4() {
+ return L4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, R4.apply(null, arguments);
+ }, L4.apply(null, arguments);
}
-function z4(e, t) {
+function R4(e, t) {
if (e == null) return {};
- var n, r, i = Eze(e, t);
+ var n, r, i = Tze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Eze(e, t) {
+function Tze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69739,7 +69723,7 @@ function Eze(e, t) {
}
return n;
}
-function B4(e, t) {
+function z4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69749,30 +69733,30 @@ function B4(e, t) {
}
return n;
}
-function V4(e) {
+function B4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B4(Object(n), !0).forEach(function(t) {
- Dze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B4(Object(n)).forEach(function(t) {
+ t % 2 ? z4(Object(n), !0).forEach(function(t) {
+ Eze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Dze(e, t, n) {
- return (t = Oze(t)) in e ? Object.defineProperty(e, t, {
+function Eze(e, t, n) {
+ return (t = Dze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Oze(e) {
- var t = kze(e, "string");
+function Dze(e) {
+ var t = Oze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kze(e, t) {
+function Oze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69782,23 +69766,23 @@ function kze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function H4(e, t) {
+function V4(e, t) {
return e && e !== "none" ? e : t;
}
-var Aze = (e) => {
+var kze = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: H4(r, i),
+ color: V4(r, i),
value: YU(n, t),
payload: e
}];
-}, jze = /*#__PURE__*/ B.memo((e) => {
+}, Aze = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: MB,
+ getPosition: NB,
settings: {
stroke: r,
strokeWidth: i,
@@ -69808,16 +69792,16 @@ var Aze = (e) => {
name: YU(o, t),
hide: s,
type: l,
- color: H4(r, a),
+ color: V4(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ B.createElement(I0, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: d });
});
-function Mze(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = fz(r);
- return /*#__PURE__*/ B.createElement(K0, {
+function jze(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = pz(r);
+ return /*#__PURE__*/ B.createElement(G0, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -69828,7 +69812,7 @@ function Mze(e) {
clipPathId: t
});
}
-function Nze(e) {
+function Mze(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -69838,7 +69822,7 @@ function Nze(e) {
upperWidth: 0,
height: 0
};
- return V4(V4({}, t), {}, {
+ return B4(B4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -69846,11 +69830,11 @@ function Nze(e) {
fill: void 0
});
});
- return /*#__PURE__*/ B.createElement(A1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, n);
}
-function U4(e) {
- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = z4(a, wze), p = fz(f), m = mz(f);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(vz, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(qG, R4({}, m, {
+function H4(e) {
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = R4(a, Cze), p = pz(f), m = hz(f);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(yz, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(qG, L4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -69859,27 +69843,27 @@ function U4(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ B.createElement(qG, R4({}, p, {
+ })), c !== "none" && /*#__PURE__*/ B.createElement(qG, L4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(qG, R4({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(qG, L4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ B.createElement(Mze, {
+ }))), /*#__PURE__*/ B.createElement(jze, {
points: t,
props: f,
clipPathId: i
}));
}
-function Pze(e) {
+function Nze(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
if (!MU(a) || !MU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
@@ -69890,7 +69874,7 @@ function Pze(e) {
height: Math.floor(s)
}) : null;
}
-function Fze(e) {
+function Pze(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
if (!MU(a) || !MU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
@@ -69901,21 +69885,21 @@ function Fze(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function Ize(e) {
+function Fze(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ B.createElement(Pze, {
+ return n === "vertical" ? /*#__PURE__*/ B.createElement(Nze, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ B.createElement(Fze, {
+ }) : /*#__PURE__*/ B.createElement(Pze, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function Lze(e) {
+function Ize(e) {
var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = fK((0, B.useMemo)(() => ({
points: o,
baseLine: s
@@ -69926,7 +69910,7 @@ function Lze(e) {
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ B.createElement(Nze, {
+ return /*#__PURE__*/ B.createElement(Mze, {
showLabels: v,
points: o
}, r.children, /*#__PURE__*/ B.createElement(dK, {
@@ -69944,24 +69928,24 @@ function Lze(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return V4(V4({}, t), {}, {
- x: DB(i.x, t.x, e),
- y: DB(i.y, t.y, e)
+ return B4(B4({}, t), {}, {
+ x: OB(i.x, t.x, e),
+ y: OB(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? DB(S, s, e) : kB(s) || xB(s) ? DB(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? OB(S, s, e) : AB(s) || SB(s) ? OB(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return V4(V4({}, t), {}, {
- x: DB(i.x, t.x, e),
- y: DB(i.y, t.y, e)
+ return B4(B4({}, t), {}, {
+ x: OB(i.x, t.x, e),
+ y: OB(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(U4, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(H4, {
points: u,
baseLine: d,
needClip: t,
@@ -69969,24 +69953,24 @@ function Lze(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(vz, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(Ize, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(yz, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(Fze, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ B.createElement(vz, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(U4, {
+ }))), /*#__PURE__*/ B.createElement(yz, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(H4, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ B.createElement(N1, { label: r.label }));
+ }), /*#__PURE__*/ B.createElement(M1, { label: r.label }));
}
-function Rze(e) {
+function Lze(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, B.useRef)(null), a = (0, B.useRef)();
- return /*#__PURE__*/ B.createElement(Lze, {
+ return /*#__PURE__*/ B.createElement(Ize, {
needClip: t,
clipPathId: n,
props: r,
@@ -69994,12 +69978,12 @@ function Rze(e) {
previousBaselineRef: a
});
}
-var zze = class extends B.PureComponent {
+var Rze = class extends B.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
- var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = x4(t), v = C0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ B.createElement(S$, { zIndex: p }, /*#__PURE__*/ B.createElement(vz, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(g4, {
+ var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = b4(t), v = S0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: p }, /*#__PURE__*/ B.createElement(yz, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(h4, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -70008,25 +69992,25 @@ var zze = class extends B.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ B.createElement(Rze, {
+ }))), /*#__PURE__*/ B.createElement(Lze, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ B.createElement($0, {
+ })), /*#__PURE__*/ B.createElement(Q0, {
points: n,
- mainColor: H4(this.props.stroke, this.props.fill),
+ mainColor: V4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement($0, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement(Q0, {
points: f,
- mainColor: H4(this.props.stroke, this.props.fill),
+ mainColor: V4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
}));
}
-}, Bze = {
+}, zze = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -70046,11 +70030,11 @@ var zze = class extends B.PureComponent {
yAxisId: 0,
zIndex: oq.area
};
-function Vze(e) {
- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = z4(e, Tze), g = wW(), _ = u$(), { needClip: v } = h4(p, m), y = aW(), { points: b, isRange: x, baseLine: S } = Q((t) => Cze(t, e.id, y)) ?? {}, C = X0();
+function Bze(e) {
+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = R4(e, wze), g = wW(), _ = l$(), { needClip: v } = m4(p, m), y = aW(), { points: b, isRange: x, baseLine: S } = Q((t) => Sze(t, e.id, y)) ?? {}, C = Y0();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ B.createElement(zze, R4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ B.createElement(Rze, L4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -70076,7 +70060,7 @@ function Vze(e) {
yAxisId: m
}));
}
-var Hze = (e, t, n, r, i) => {
+var Vze = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -70086,8 +70070,8 @@ var Hze = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function Uze(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = Hze(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function Hze(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = Vze(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
@@ -70136,12 +70120,12 @@ function Uze(e) {
isRange: _
};
}
-function Wze(e) {
- var t = HB(e, Bze), n = aW();
- return /*#__PURE__*/ B.createElement(z0, {
+function Uze(e) {
+ var t = UB(e, zze), n = aW();
+ return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(L0, { legendPayload: Aze(t) }), /*#__PURE__*/ B.createElement(jze, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: kze(t) }), /*#__PURE__*/ B.createElement(Aze, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -70152,7 +70136,7 @@ function Wze(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(V0, {
+ }), /*#__PURE__*/ B.createElement(B0, {
type: "area",
id: e,
data: t.data,
@@ -70166,109 +70150,109 @@ function Wze(e) {
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ B.createElement(Vze, R4({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(Bze, L4({}, t, { id: e }))));
}
-var W4 = /*#__PURE__*/ B.memo(Wze, SG);
-W4.displayName = "Area";
+var U4 = /*#__PURE__*/ B.memo(Uze, SG);
+U4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var Gze = "Invariant failed";
-function Kze(e, t) {
- if (!e) throw Error(Gze);
+var Wze = "Invariant failed";
+function Gze(e, t) {
+ if (!e) throw Error(Wze);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function G4() {
- return G4 = Object.assign ? Object.assign.bind() : function(e) {
+function W4() {
+ return W4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, G4.apply(null, arguments);
+ }, W4.apply(null, arguments);
}
-function K4(e) {
- return /*#__PURE__*/ B.createElement(M0, G4({
+function G4(e) {
+ return /*#__PURE__*/ B.createElement(j0, W4({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var qze = function(e) {
+var Kze = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
- var i = Z(n) || kB(n);
- return i ? e(n, r) : (!i && Kze(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ var i = Z(n) || AB(n);
+ return i ? e(n, r) : (!i && Gze(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, Jze = (e, t, n) => n, q4 = $([lZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), Yze = $([q4], (e) => e?.maxBarSize), Xze = (e, t, n, r) => r, Zze = $([
+}, qze = (e, t, n) => n, K4 = $([cZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), Jze = $([K4], (e) => e?.maxBarSize), Yze = (e, t, n, r) => r, Xze = $([
CW,
- lZ,
+ cZ,
+ k4,
A4,
- j4,
- Jze
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), Qze = (e, t, n) => {
- var r = CW(e), i = A4(e, t), a = j4(e, t);
- if (i != null && a != null) return r === "horizontal" ? EZ(e, "yAxis", a, n) : EZ(e, "xAxis", i, n);
-}, $ze = $([
- Zze,
+ qze
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), Zze = (e, t, n) => {
+ var r = CW(e), i = k4(e, t), a = A4(e, t);
+ if (i != null && a != null) return r === "horizontal" ? TZ(e, "yAxis", a, n) : TZ(e, "xAxis", i, n);
+}, Qze = $([
+ Xze,
$K,
(e, t) => {
- var n = CW(e), r = A4(e, t), i = j4(e, t);
- if (r != null && i != null) return n === "horizontal" ? sQ(e, "xAxis", r) : sQ(e, "yAxis", i);
+ var n = CW(e), r = k4(e, t), i = A4(e, t);
+ if (r != null && i != null) return n === "horizontal" ? oQ(e, "xAxis", r) : oQ(e, "yAxis", i);
}
-], h2), eBe = (e, t, n) => {
- var r = q4(e, t);
+], m2), $ze = (e, t, n) => {
+ var r = K4(e, t);
if (r == null) return 0;
- var i = A4(e, t), a = j4(e, t);
+ var i = k4(e, t), a = A4(e, t);
if (i == null || a == null) return 0;
- var o = CW(e), s = XK(e), { maxBarSize: c } = r, l = kB(c) ? s : c, u, d;
- return o === "horizontal" ? (u = hQ(e, "xAxis", i, n), d = mQ(e, "xAxis", i, n)) : (u = hQ(e, "yAxis", a, n), d = mQ(e, "yAxis", a, n)), qU(u, d, !0) ?? l ?? 0;
-}, J4 = (e, t, n) => {
- var r = CW(e), i = A4(e, t), a = j4(e, t);
+ var o = CW(e), s = XK(e), { maxBarSize: c } = r, l = AB(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = mQ(e, "xAxis", i, n), d = pQ(e, "xAxis", i, n)) : (u = mQ(e, "yAxis", a, n), d = pQ(e, "yAxis", a, n)), qU(u, d, !0) ?? l ?? 0;
+}, q4 = (e, t, n) => {
+ var r = CW(e), i = k4(e, t), a = A4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = hQ(e, "xAxis", i, n), s = mQ(e, "xAxis", i, n)) : (o = hQ(e, "yAxis", a, n), s = mQ(e, "yAxis", a, n)), qU(o, s);
+ return r === "horizontal" ? (o = mQ(e, "xAxis", i, n), s = pQ(e, "xAxis", i, n)) : (o = mQ(e, "yAxis", a, n), s = pQ(e, "yAxis", a, n)), qU(o, s);
}
-}, tBe = $([
+}, eBe = $([
rW,
iW,
(e, t, n) => {
- var r = A4(e, t);
- if (r != null) return hQ(e, "xAxis", r, n);
+ var r = k4(e, t);
+ if (r != null) return mQ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = j4(e, t);
- if (r != null) return hQ(e, "yAxis", r, n);
+ var r = A4(e, t);
+ if (r != null) return mQ(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = A4(e, t);
- if (r != null) return mQ(e, "xAxis", r, n);
+ var r = k4(e, t);
+ if (r != null) return pQ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = j4(e, t);
- if (r != null) return mQ(e, "yAxis", r, n);
+ var r = A4(e, t);
+ if (r != null) return pQ(e, "yAxis", r, n);
},
$([$([
- $ze,
+ Qze,
XK,
ZK,
QK,
- eBe,
- J4,
- Yze
- ], v2), q4], b2),
+ $ze,
+ q4,
+ Jze
+ ], _2), K4], y2),
CW,
LK,
- J4,
- $([Qze, q4], y2),
q4,
- Xze
+ $([Zze, K4], v2),
+ K4,
+ Yze
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return kBe({
+ if (_ != null) return OBe({
layout: s,
barSettings: d,
pos: o,
@@ -70285,26 +70269,26 @@ var qze = function(e) {
dataStartIndex: m
});
}
-}), nBe = ["index"];
-function Y4() {
- return Y4 = Object.assign ? Object.assign.bind() : function(e) {
+}), tBe = ["index"];
+function J4() {
+ return J4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Y4.apply(null, arguments);
+ }, J4.apply(null, arguments);
}
-function rBe(e, t) {
+function nBe(e, t) {
if (e == null) return {};
- var n, r, i = iBe(e, t);
+ var n, r, i = rBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function iBe(e, t) {
+function rBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70313,45 +70297,45 @@ function iBe(e, t) {
}
return n;
}
-var X4 = /*#__PURE__*/ (0, B.createContext)(void 0), aBe = (e) => {
- var t = (0, B.useContext)(X4);
+var Y4 = /*#__PURE__*/ (0, B.createContext)(void 0), iBe = (e) => {
+ var t = (0, B.useContext)(Y4);
if (t != null) return t.stackId;
if (e != null) return VU(e);
-}, oBe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, sBe = (e) => {
- var t = (0, B.useContext)(X4);
+}, aBe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, oBe = (e) => {
+ var t = (0, B.useContext)(Y4);
if (t != null) {
var { stackId: n } = t;
- return `url(#${oBe(n, e)})`;
+ return `url(#${aBe(n, e)})`;
}
-}, Z4 = (e) => {
- var { index: t } = e, n = rBe(e, nBe), r = sBe(t);
- return /*#__PURE__*/ B.createElement(vz, Y4({
+}, X4 = (e) => {
+ var { index: t } = e, n = nBe(e, tBe), r = oBe(t);
+ return /*#__PURE__*/ B.createElement(yz, J4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, cBe = [
+}, sBe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], lBe = [
+], cBe = [
"value",
"background",
"tooltipPosition"
-], uBe = ["id"], dBe = [
+], lBe = ["id"], uBe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function Q4() {
- return Q4 = Object.assign ? Object.assign.bind() : function(e) {
+function Z4() {
+ return Z4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Q4.apply(null, arguments);
+ }, Z4.apply(null, arguments);
}
-function $4(e, t) {
+function Q4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70361,30 +70345,30 @@ function $4(e, t) {
}
return n;
}
-function e3(e) {
+function $4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $4(Object(n), !0).forEach(function(t) {
- fBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $4(Object(n)).forEach(function(t) {
+ t % 2 ? Q4(Object(n), !0).forEach(function(t) {
+ dBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fBe(e, t, n) {
- return (t = pBe(t)) in e ? Object.defineProperty(e, t, {
+function dBe(e, t, n) {
+ return (t = fBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pBe(e) {
- var t = mBe(e, "string");
+function fBe(e) {
+ var t = pBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mBe(e, t) {
+function pBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70394,16 +70378,16 @@ function mBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function t3(e, t) {
+function e3(e, t) {
if (e == null) return {};
- var n, r, i = hBe(e, t);
+ var n, r, i = mBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function hBe(e, t) {
+function mBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70412,7 +70396,7 @@ function hBe(e, t) {
}
return n;
}
-var gBe = (e) => {
+var hBe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -70422,10 +70406,10 @@ var gBe = (e) => {
value: YU(n, t),
payload: e
}];
-}, _Be = /*#__PURE__*/ B.memo((e) => {
+}, gBe = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
- getPosition: MB,
+ getPosition: NB,
settings: {
stroke: n,
strokeWidth: r,
@@ -70440,19 +70424,19 @@ var gBe = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ B.createElement(I0, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: u });
});
-function vBe(e) {
- var t = Q(t$), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = t3(a, cBe), u = N0(o, r, a.id), d = P0(s), f = F0(c, r, a.id);
+function _Be(e) {
+ var t = Q(e$), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = e3(a, sBe), u = M0(o, r, a.id), d = N0(s), f = P0(c, r, a.id);
if (!i || n == null) return null;
- var p = pz(i);
- return /*#__PURE__*/ B.createElement(S$, { zIndex: N2(i, oq.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = t3(e, lBe);
+ var p = mz(i);
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: M2(i, oq.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = e3(e, cBe);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = e3(e3(e3(e3(e3({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = $4($4($4($4($4({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), BB(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), VB(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -70460,10 +70444,10 @@ function vBe(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ B.createElement(K4, Q4({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ B.createElement(G4, Z4({ key: `background-bar-${n}` }, _));
}));
}
-function yBe(e) {
+function vBe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -70473,7 +70457,7 @@ function yBe(e) {
upperWidth: e.width,
height: e.height
};
- return e3(e3({}, t), {}, {
+ return $4($4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -70481,10 +70465,10 @@ function yBe(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ B.createElement(A1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, n);
}
-function bBe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(t$), c = Q(r$), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);
+function yBe(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(e$), c = Q(n$), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);
(0, B.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -70495,42 +70479,42 @@ function bBe(e) {
}, [l]);
var m = (0, B.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(K4, Q4({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(G4, Z4({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ B.createElement(S$, { zIndex: oq.activeBar }, /*#__PURE__*/ B.createElement(Z4, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ B.createElement(x$, { zIndex: oq.activeBar }, /*#__PURE__*/ B.createElement(X4, { index: i.originalDataIndex }, v)) : v;
}
-function xBe(e) {
+function bBe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ B.createElement(K4, Q4({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ B.createElement(G4, Z4({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
dataKey: a
}));
}
-function SBe(e) {
- var { data: t, props: n } = e, r = fz(n) ?? {}, { id: i } = r, a = t3(r, uBe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = t3(n, dBe), p = N0(l, s, i), m = P0(d), h = F0(u, s, i);
- return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(Z4, Q4({
+function xBe(e) {
+ var { data: t, props: n } = e, r = pz(n) ?? {}, { id: i } = r, a = e3(r, lBe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = e3(n, uBe), p = M0(l, s, i), m = N0(d), h = P0(u, s, i);
+ return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(X4, Z4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, BB(f, e, t), {
+ }, VB(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ B.createElement(bBe, {
+ }), c ? /*#__PURE__*/ B.createElement(yBe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ B.createElement(xBe, {
+ }) : /*#__PURE__*/ B.createElement(bBe, {
shape: o,
baseProps: a,
entry: e,
@@ -70538,13 +70522,13 @@ function SBe(e) {
dataKey: s
})))) : null;
}
-function CBe(e) {
+function SBe(e) {
var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = fK(t, "recharts-bar-"), [p, m] = (0, B.useState)(!1), h = !p, g = (0, B.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, B.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ B.createElement(yBe, {
+ return /*#__PURE__*/ B.createElement(vBe, {
showLabels: h,
rects: r
}, /*#__PURE__*/ B.createElement(dK, {
@@ -70559,39 +70543,39 @@ function CBe(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return e3(e3({}, t), {}, {
- x: DB(r.x, t.x, e),
- y: DB(r.y, t.y, e),
- width: DB(r.width, t.width, e),
- height: DB(r.height, t.height, e)
+ if (r) return $4($4({}, t), {}, {
+ x: OB(r.x, t.x, e),
+ y: OB(r.y, t.y, e),
+ width: OB(r.width, t.width, e),
+ height: OB(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = DB(0, t.height, e), o = DB(t.stackedBarStart, t.y, e);
- return e3(e3({}, t), {}, {
+ var a = OB(0, t.height, e), o = OB(t.stackedBarStart, t.y, e);
+ return $4($4({}, t), {}, {
y: o,
height: a
});
}
- var s = DB(0, t.width, e), c = DB(t.stackedBarStart, t.x, e);
- return e3(e3({}, t), {}, {
+ var s = OB(0, t.width, e), c = OB(t.stackedBarStart, t.x, e);
+ return $4($4({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(vz, null, /*#__PURE__*/ B.createElement(SBe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(yz, null, /*#__PURE__*/ B.createElement(xBe, {
props: t,
data: a
}));
- }), /*#__PURE__*/ B.createElement(N1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ B.createElement(M1, { label: t.label }), t.children);
}
-function wBe(e) {
+function CBe(e) {
var t = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(CBe, {
+ return /*#__PURE__*/ B.createElement(SBe, {
previousRectanglesRef: t,
props: e
});
}
-var n3 = 0, TBe = (e, t) => {
+var t3 = 0, wBe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
@@ -70599,29 +70583,29 @@ var n3 = 0, TBe = (e, t) => {
value: n,
errorVal: IU(e, t)
};
-}, EBe = class extends B.PureComponent {
+}, TBe = class extends B.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = _h("recharts-bar", r), u = c;
- return /*#__PURE__*/ B.createElement(vz, {
+ return /*#__PURE__*/ B.createElement(yz, {
className: l,
id: c
- }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(g4, {
+ }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(h4, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ B.createElement(vz, {
+ })), /*#__PURE__*/ B.createElement(yz, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ B.createElement(vBe, {
+ }, /*#__PURE__*/ B.createElement(_Be, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ B.createElement(wBe, this.props)));
+ }), /*#__PURE__*/ B.createElement(CBe, this.props)));
}
-}, DBe = {
+}, EBe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -70631,22 +70615,22 @@ var n3 = 0, TBe = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: n3,
+ minPointSize: t3,
xAxisId: 0,
yAxisId: 0,
zIndex: oq.bar
};
-function OBe(e) {
- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = h4(t, n), f = wW(), p = aW(), m = S0(e.children, z$), h = Q((t) => tBe(t, e.id, p, m));
+function DBe(e) {
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = m4(t, n), f = wW(), p = aW(), m = x0(e.children, R$), h = Q((t) => eBe(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
- return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ B.createElement(m4, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ B.createElement(p4, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: TBe,
+ dataPointFormatter: wBe,
errorBarOffset: g
- }, /*#__PURE__*/ B.createElement(EBe, Q4({}, e, {
+ }, /*#__PURE__*/ B.createElement(TBe, Z4({}, e, {
layout: f,
needClip: d,
data: h,
@@ -70662,7 +70646,7 @@ function OBe(e) {
isAnimationActive: u
})));
}
-function kBe(e) {
+function OBe(e) {
var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = WU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
@@ -70671,7 +70655,7 @@ function kBe(e) {
if (E == null) return null;
_ = BU(E, v);
} else _ = IU(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = qze(r, n3)(_[1], f);
+ var D = Kze(r, t3)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
@@ -70684,13 +70668,13 @@ function kBe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = xB(A) ? 0 : A, T = {
+ if (w = SB(A) ? 0 : A, T = {
x,
y: p.top,
width: C,
height: p.height
}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = bB(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = xB(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
@@ -70709,11 +70693,11 @@ function kBe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = bB(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = xB(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : e3(e3({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : $4($4({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -70731,12 +70715,12 @@ function kBe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function ABe(e) {
- var t = HB(e, DBe), n = aBe(t.stackId), r = aW();
- return /*#__PURE__*/ B.createElement(z0, {
+function kBe(e) {
+ var t = UB(e, EBe), n = iBe(t.stackId), r = aW();
+ return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(L0, { legendPayload: gBe(t) }), /*#__PURE__*/ B.createElement(_Be, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: hBe(t) }), /*#__PURE__*/ B.createElement(gBe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -70746,7 +70730,7 @@ function ABe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(V0, {
+ }), /*#__PURE__*/ B.createElement(B0, {
type: "bar",
id: e,
data: void 0,
@@ -70761,23 +70745,23 @@ function ABe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ B.createElement(S$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(OBe, Q4({}, t, { id: e })))));
+ }), /*#__PURE__*/ B.createElement(x$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(DBe, Z4({}, t, { id: e })))));
}
-var r3 = /*#__PURE__*/ B.memo(ABe, SG);
-r3.displayName = "Bar";
+var n3 = /*#__PURE__*/ B.memo(kBe, SG);
+n3.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var jBe = ["domain", "range"], MBe = ["domain", "range"];
-function i3(e, t) {
+var ABe = ["domain", "range"], jBe = ["domain", "range"];
+function r3(e, t) {
if (e == null) return {};
- var n, r, i = NBe(e, t);
+ var n, r, i = MBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function NBe(e, t) {
+function MBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70786,31 +70770,31 @@ function NBe(e, t) {
}
return n;
}
-function a3(e, t) {
+function i3(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function o3(e, t) {
+function a3(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = i3(e, jBe), { domain: a, range: o } = t, s = i3(t, MBe);
- return !a3(n, a) || !a3(r, o) ? !1 : SG(i, s);
+ var { domain: n, range: r } = e, i = r3(e, ABe), { domain: a, range: o } = t, s = r3(t, jBe);
+ return !i3(n, a) || !i3(r, o) ? !1 : SG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var PBe = ["type"], FBe = [
+var NBe = ["type"], PBe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], IBe = ["id", "scale"];
-function s3() {
- return s3 = Object.assign ? Object.assign.bind() : function(e) {
+], FBe = ["id", "scale"];
+function o3() {
+ return o3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, s3.apply(null, arguments);
+ }, o3.apply(null, arguments);
}
-function c3(e, t) {
+function s3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70820,30 +70804,30 @@ function c3(e, t) {
}
return n;
}
-function l3(e) {
+function c3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? c3(Object(n), !0).forEach(function(t) {
- LBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c3(Object(n)).forEach(function(t) {
+ t % 2 ? s3(Object(n), !0).forEach(function(t) {
+ IBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LBe(e, t, n) {
- return (t = RBe(t)) in e ? Object.defineProperty(e, t, {
+function IBe(e, t, n) {
+ return (t = LBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RBe(e) {
- var t = zBe(e, "string");
+function LBe(e) {
+ var t = RBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zBe(e, t) {
+function RBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70853,16 +70837,16 @@ function zBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function u3(e, t) {
+function l3(e, t) {
if (e == null) return {};
- var n, r, i = BBe(e, t);
+ var n, r, i = zBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function BBe(e, t) {
+function zBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70871,24 +70855,24 @@ function BBe(e, t) {
}
return n;
}
-function VBe(e) {
- var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = u3(e, PBe), o = uq(r, "xAxis", i), s = (0, B.useMemo)(() => {
- if (o != null) return l3(l3({}, a), {}, { type: o });
+function BBe(e) {
+ var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = l3(e, NBe), o = uq(r, "xAxis", i), s = (0, B.useMemo)(() => {
+ if (o != null) return c3(c3({}, a), {}, { type: o });
}, [a, o]);
return (0, B.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(rIe(s)) : n.current !== s && t(iIe({
+ s != null && (n.current === null ? t(nIe(s)) : n.current !== s && t(rIe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(aIe(n.current)), null);
+ n.current &&= (t(iIe(n.current)), null);
}, [t]), null;
}
-var HBe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(iW), i = aW(), a = "xAxis", o = Q((e) => fQ(e, a, t, i)), s = Q((e) => aQ(e, t)), c = Q((e) => lje(e, t)), l = Q((e) => $X(e, t));
+var VBe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(iW), i = aW(), a = "xAxis", o = Q((e) => dQ(e, a, t, i)), s = Q((e) => iQ(e, t)), c = Q((e) => cje(e, t)), l = Q((e) => QX(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = u3(e, FBe), { id: m, scale: h } = l, g = u3(l, IBe);
- return /*#__PURE__*/ B.createElement(o4, s3({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = l3(e, PBe), { id: m, scale: h } = l, g = l3(l, FBe);
+ return /*#__PURE__*/ B.createElement(a4, o3({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
@@ -70899,33 +70883,33 @@ var HBe = (e) => {
axisType: a,
axisId: t
}));
-}, UBe = {
- allowDataOverflow: QX.allowDataOverflow,
- allowDecimals: QX.allowDecimals,
- allowDuplicatedCategory: QX.allowDuplicatedCategory,
- angle: QX.angle,
- axisLine: a4.axisLine,
- height: QX.height,
+}, HBe = {
+ allowDataOverflow: ZX.allowDataOverflow,
+ allowDecimals: ZX.allowDecimals,
+ allowDuplicatedCategory: ZX.allowDuplicatedCategory,
+ angle: ZX.angle,
+ axisLine: i4.axisLine,
+ height: ZX.height,
hide: !1,
- includeHidden: QX.includeHidden,
- interval: QX.interval,
+ includeHidden: ZX.includeHidden,
+ interval: ZX.interval,
label: !1,
- minTickGap: QX.minTickGap,
- mirror: QX.mirror,
- orientation: QX.orientation,
- padding: QX.padding,
- reversed: QX.reversed,
- scale: QX.scale,
- tick: QX.tick,
- tickCount: QX.tickCount,
- tickLine: a4.tickLine,
- tickSize: a4.tickSize,
- type: QX.type,
- niceTicks: QX.niceTicks,
+ minTickGap: ZX.minTickGap,
+ mirror: ZX.mirror,
+ orientation: ZX.orientation,
+ padding: ZX.padding,
+ reversed: ZX.reversed,
+ scale: ZX.scale,
+ tick: ZX.tick,
+ tickCount: ZX.tickCount,
+ tickLine: i4.tickLine,
+ tickSize: i4.tickSize,
+ type: ZX.type,
+ niceTicks: ZX.niceTicks,
xAxisId: 0
-}, d3 = /*#__PURE__*/ B.memo((e) => {
- var t = HB(e, UBe);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(VBe, {
+}, u3 = /*#__PURE__*/ B.memo((e) => {
+ var t = UB(e, HBe);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(BBe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -70951,26 +70935,26 @@ var HBe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ B.createElement(HBe, t));
-}, o3);
-d3.displayName = "XAxis";
+ }), /*#__PURE__*/ B.createElement(VBe, t));
+}, a3);
+u3.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var WBe = ["type"], GBe = [
+var UBe = ["type"], WBe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], KBe = ["id", "scale"];
-function f3() {
- return f3 = Object.assign ? Object.assign.bind() : function(e) {
+], GBe = ["id", "scale"];
+function d3() {
+ return d3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, f3.apply(null, arguments);
+ }, d3.apply(null, arguments);
}
-function p3(e, t) {
+function f3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70980,30 +70964,30 @@ function p3(e, t) {
}
return n;
}
-function m3(e) {
+function p3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? p3(Object(n), !0).forEach(function(t) {
- qBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p3(Object(n)).forEach(function(t) {
+ t % 2 ? f3(Object(n), !0).forEach(function(t) {
+ KBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qBe(e, t, n) {
- return (t = JBe(t)) in e ? Object.defineProperty(e, t, {
+function KBe(e, t, n) {
+ return (t = qBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JBe(e) {
- var t = YBe(e, "string");
+function qBe(e) {
+ var t = JBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YBe(e, t) {
+function JBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71013,16 +70997,16 @@ function YBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function h3(e, t) {
+function m3(e, t) {
if (e == null) return {};
- var n, r, i = XBe(e, t);
+ var n, r, i = YBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function XBe(e, t) {
+function YBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71031,27 +71015,27 @@ function XBe(e, t) {
}
return n;
}
-function ZBe(e) {
- var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = h3(e, WBe), o = uq(r, "yAxis", i), s = (0, B.useMemo)(() => {
- if (o != null) return m3(m3({}, a), {}, { type: o });
+function XBe(e) {
+ var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = m3(e, UBe), o = uq(r, "yAxis", i), s = (0, B.useMemo)(() => {
+ if (o != null) return p3(p3({}, a), {}, { type: o });
}, [o, a]);
return (0, B.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(oIe(s)) : n.current !== s && t(sIe({
+ s != null && (n.current === null ? t(aIe(s)) : n.current !== s && t(oIe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(cIe(n.current)), null);
+ n.current &&= (t(sIe(n.current)), null);
}, [t]), null;
}
-function QBe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(iW), c = aW(), l = vV(), u = "yAxis", d = Q((e) => oQ(e, t)), f = Q((e) => uje(e, t)), p = Q((e) => fQ(e, u, t, c)), m = Q((e) => nZ(e, t));
+function ZBe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(iW), c = aW(), l = vV(), u = "yAxis", d = Q((e) => aQ(e, t)), f = Q((e) => lje(e, t)), p = Q((e) => dQ(e, u, t, c)), m = Q((e) => tZ(e, t));
if ((0, B.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || S1(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || x1(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(fIe({
+ Math.round(d.width) !== Math.round(n) && l(dIe({
id: t,
width: n
}));
@@ -71066,8 +71050,8 @@ function QBe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = h3(e, GBe), { id: y, scale: b } = m, x = h3(m, KBe);
- return /*#__PURE__*/ B.createElement(o4, f3({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = m3(e, WBe), { id: y, scale: b } = m, x = m3(m, GBe);
+ return /*#__PURE__*/ B.createElement(a4, d3({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -71082,33 +71066,33 @@ function QBe(e) {
axisId: t
}));
}
-var $Be = {
- allowDataOverflow: tZ.allowDataOverflow,
- allowDecimals: tZ.allowDecimals,
- allowDuplicatedCategory: tZ.allowDuplicatedCategory,
- angle: tZ.angle,
- axisLine: a4.axisLine,
+var QBe = {
+ allowDataOverflow: eZ.allowDataOverflow,
+ allowDecimals: eZ.allowDecimals,
+ allowDuplicatedCategory: eZ.allowDuplicatedCategory,
+ angle: eZ.angle,
+ axisLine: i4.axisLine,
hide: !1,
- includeHidden: tZ.includeHidden,
- interval: tZ.interval,
+ includeHidden: eZ.includeHidden,
+ interval: eZ.interval,
label: !1,
- minTickGap: tZ.minTickGap,
- mirror: tZ.mirror,
- orientation: tZ.orientation,
- padding: tZ.padding,
- reversed: tZ.reversed,
- scale: tZ.scale,
- tick: tZ.tick,
- tickCount: tZ.tickCount,
- tickLine: a4.tickLine,
- tickSize: a4.tickSize,
- type: tZ.type,
- niceTicks: tZ.niceTicks,
- width: tZ.width,
+ minTickGap: eZ.minTickGap,
+ mirror: eZ.mirror,
+ orientation: eZ.orientation,
+ padding: eZ.padding,
+ reversed: eZ.reversed,
+ scale: eZ.scale,
+ tick: eZ.tick,
+ tickCount: eZ.tickCount,
+ tickLine: i4.tickLine,
+ tickSize: i4.tickSize,
+ type: eZ.type,
+ niceTicks: eZ.niceTicks,
+ width: eZ.width,
yAxisId: 0
-}, g3 = /*#__PURE__*/ B.memo((e) => {
- var t = HB(e, $Be);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(ZBe, {
+}, h3 = /*#__PURE__*/ B.memo((e) => {
+ var t = UB(e, QBe);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(XBe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -71134,27 +71118,27 @@ var $Be = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ B.createElement(QBe, t));
-}, o3);
-g3.displayName = "YAxis";
-var _3 = $([
+ }), /*#__PURE__*/ B.createElement(ZBe, t));
+}, a3);
+h3.displayName = "YAxis";
+var g3 = $([
(e, t) => t,
CW,
Cq,
jq,
- JQ,
- XQ,
- oMe,
+ qQ,
+ YQ,
+ aMe,
rW
-], pMe);
+], fMe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function eVe(e) {
+function $Be(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function v3(e) {
+function _3(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (eVe(e)) {
+ if ($Be(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -71169,55 +71153,55 @@ function v3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var y3 = JH("mouseClick"), b3 = OU();
-b3.startListening({
- actionCreator: y3,
+var v3 = JH("mouseClick"), y3 = OU();
+y3.startListening({
+ actionCreator: v3,
effect: (e, t) => {
- var n = e.payload, r = _3(t.getState(), v3(n));
- r?.activeIndex != null && t.dispatch(bje({
+ var n = e.payload, r = g3(t.getState(), _3(n));
+ r?.activeIndex != null && t.dispatch(yje({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var x3 = JH("mouseMove"), S3 = OU(), C3 = null, w3 = null, T3 = null;
-S3.startListening({
- actionCreator: x3,
+var b3 = JH("mouseMove"), x3 = OU(), S3 = null, C3 = null, w3 = null;
+x3.startListening({
+ actionCreator: b3,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- C3 !== null && (cancelAnimationFrame(C3), C3 = null), w3 !== null && (typeof r != "number" || !a) && (clearTimeout(w3), w3 = null), T3 = v3(n);
+ S3 !== null && (cancelAnimationFrame(S3), S3 = null), C3 !== null && (typeof r != "number" || !a) && (clearTimeout(C3), C3 = null), w3 = _3(n);
var o = () => {
- var e = t.getState(), n = yQ(e, e.tooltip.settings.shared);
- if (!T3) {
- C3 = null, w3 = null;
+ var e = t.getState(), n = vQ(e, e.tooltip.settings.shared);
+ if (!w3) {
+ S3 = null, C3 = null;
return;
}
if (n === "axis") {
- var r = _3(e, T3);
- r?.activeIndex == null ? t.dispatch(wQ()) : t.dispatch(TQ({
+ var r = g3(e, w3);
+ r?.activeIndex == null ? t.dispatch(CQ()) : t.dispatch(wQ({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- C3 = null, w3 = null;
+ S3 = null, C3 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? C3 = requestAnimationFrame(o) : typeof r == "number" && w3 === null && (w3 = setTimeout(o, r));
+ r === "raf" ? S3 = requestAnimationFrame(o) : typeof r == "number" && C3 === null && (C3 = setTimeout(o, r));
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function tVe(e, t) {
+function eVe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var E3 = {
+var T3 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -71229,70 +71213,70 @@ var E3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, D3 = rU({
+}, E3 = rU({
name: "rootProps",
- initialState: E3,
+ initialState: T3,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? E3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? T3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), nVe = D3.reducer, { updateOptions: rVe } = D3.actions, O3 = rU({
+}), tVe = E3.reducer, { updateOptions: nVe } = E3.actions, D3 = rU({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), { updatePolarOptions: iVe } = O3.actions, aVe = O3.reducer, k3 = JH("keyDown"), A3 = JH("focus"), j3 = JH("blur"), M3 = OU(), N3 = null, P3 = null, F3 = null;
-M3.startListening({
- actionCreator: k3,
+}), { updatePolarOptions: rVe } = D3.actions, iVe = D3.reducer, O3 = JH("keyDown"), k3 = JH("focus"), A3 = JH("blur"), j3 = OU(), M3 = null, N3 = null, P3 = null;
+j3.startListening({
+ actionCreator: O3,
effect: (e, t) => {
- F3 = e.payload, N3 !== null && (cancelAnimationFrame(N3), N3 = null);
+ P3 = e.payload, M3 !== null && (cancelAnimationFrame(M3), M3 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- P3 !== null && (typeof n != "number" || !i) && (clearTimeout(P3), P3 = null);
+ N3 !== null && (typeof n != "number" || !i) && (clearTimeout(N3), N3 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = F3;
+ var { keyboardInteraction: n } = e.tooltip, r = P3;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = jQ(n, HQ(e), wZ(e), KQ(e)), a = i == null ? -1 : Number(i);
+ var i = AQ(n, VQ(e), CZ(e), GQ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = XQ(e);
+ var o = YQ(e);
if (r === "Enter") {
- var s = _$(e, "axis", "hover", String(n.index));
- t.dispatch(DQ({
+ var s = g$(e, "axis", "hover", String(n.index));
+ t.dispatch(EQ({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
}));
return;
}
- var c = dje(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = uje(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = _$(e, "axis", "hover", String(l));
- t.dispatch(DQ({
+ var u = g$(e, "axis", "hover", String(l));
+ t.dispatch(EQ({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- N3 = null, P3 = null;
+ M3 = null, N3 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? N3 = requestAnimationFrame(a) : typeof n == "number" && P3 === null && (a(), F3 = null, P3 = setTimeout(() => {
- F3 ? a() : (P3 = null, N3 = null);
+ n === "raf" ? M3 = requestAnimationFrame(a) : typeof n == "number" && N3 === null && (a(), P3 = null, N3 = setTimeout(() => {
+ P3 ? a() : (N3 = null, M3 = null);
}, n));
}
-}), M3.startListening({
- actionCreator: A3,
+}), j3.startListening({
+ actionCreator: k3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = _$(n, "axis", "hover", String(i));
- t.dispatch(DQ({
+ var i = "0", a = g$(n, "axis", "hover", String(i));
+ t.dispatch(EQ({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -71300,13 +71284,13 @@ M3.startListening({
}
}
}
-}), M3.startListening({
- actionCreator: j3,
+}), j3.startListening({
+ actionCreator: A3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(DQ({
+ r.active && t.dispatch(EQ({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -71316,7 +71300,7 @@ M3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function I3(e) {
+function F3(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -71327,36 +71311,36 @@ function I3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var L3 = JH("externalEvent"), R3 = OU(), z3 = /* @__PURE__ */ new Map(), B3 = /* @__PURE__ */ new Map(), V3 = /* @__PURE__ */ new Map();
-R3.startListening({
- actionCreator: L3,
+var I3 = JH("externalEvent"), L3 = OU(), R3 = /* @__PURE__ */ new Map(), z3 = /* @__PURE__ */ new Map(), B3 = /* @__PURE__ */ new Map();
+L3.startListening({
+ actionCreator: I3,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = I3(r);
- V3.set(i, {
+ var i = r.type, a = F3(r);
+ B3.set(i, {
handler: n,
reactEvent: a
});
- var o = z3.get(i);
- o !== void 0 && (cancelAnimationFrame(o), z3.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = B3.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), B3.delete(i));
+ var o = R3.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), R3.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = z3.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), z3.delete(i));
var f = () => {
- var e = V3.get(i);
+ var e = B3.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: Kje(a),
- activeDataKey: r$(a),
- activeIndex: t$(a),
- activeLabel: n$(a),
- activeTooltipIndex: t$(a),
- isTooltipActive: qje(a)
+ activeCoordinate: Gje(a),
+ activeDataKey: n$(a),
+ activeIndex: e$(a),
+ activeLabel: t$(a),
+ activeTooltipIndex: e$(a),
+ isTooltipActive: Kje(a)
};
n && n(o, r);
} finally {
- z3.delete(i), B3.delete(i), V3.delete(i);
+ R3.delete(i), z3.delete(i), B3.delete(i);
}
};
if (!u) {
@@ -71365,19 +71349,19 @@ R3.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- z3.set(i, p);
+ R3.set(i, p);
} else if (typeof s == "number") {
- if (!B3.has(i)) {
+ if (!z3.has(i)) {
f();
var m = setTimeout(f, s);
- B3.set(i, m);
+ z3.set(i, m);
}
} else f();
}
}
});
-var oVe = $([
- $([FQ], (e) => e.tooltipItemPayloads),
+var aVe = $([
+ $([PQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -71388,65 +71372,65 @@ var oVe = $([
if (i != null) return i(t);
}
}
-}), H3 = JH("touchMove"), U3 = OU(), W3 = null, G3 = null, K3 = null, q3 = null;
-U3.startListening({
- actionCreator: H3,
+}), V3 = JH("touchMove"), H3 = OU(), U3 = null, W3 = null, G3 = null, K3 = null;
+H3.startListening({
+ actionCreator: V3,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- q3 = I3(n);
+ K3 = F3(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- W3 !== null && (cancelAnimationFrame(W3), W3 = null), G3 !== null && (typeof r != "number" || !a) && (clearTimeout(G3), G3 = null), K3 = Array.from(n.touches).map((e) => v3({
+ U3 !== null && (cancelAnimationFrame(U3), U3 = null), W3 !== null && (typeof r != "number" || !a) && (clearTimeout(W3), W3 = null), G3 = Array.from(n.touches).map((e) => _3({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (q3 != null) {
- var e = t.getState(), n = yQ(e, e.tooltip.settings.shared);
+ if (K3 != null) {
+ var e = t.getState(), n = vQ(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = K3?.[0];
+ var r = G3?.[0];
if (r == null) {
- W3 = null, G3 = null;
+ U3 = null, W3 = null;
return;
}
- var i = _3(e, r);
- i?.activeIndex != null && t.dispatch(TQ({
+ var i = g3(e, r);
+ i?.activeIndex != null && t.dispatch(wQ({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = q3.touches[0];
+ var a = K3.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(Bwe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = VQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(Rwe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = BQ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = oVe(e, s, c);
- t.dispatch(CQ({
+ var { dataKey: u } = l, d = aVe(e, s, c);
+ t.dispatch(SQ({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- W3 = null, G3 = null;
+ U3 = null, W3 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? W3 = requestAnimationFrame(o) : typeof r == "number" && G3 === null && (o(), q3 = null, G3 = setTimeout(() => {
- q3 ? o() : (G3 = null, W3 = null);
+ r === "raf" ? U3 = requestAnimationFrame(o) : typeof r == "number" && W3 === null && (o(), K3 = null, W3 = setTimeout(() => {
+ K3 ? o() : (W3 = null, U3 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var J3 = {
+var q3 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -71455,33 +71439,33 @@ var J3 = {
"scroll",
"wheel"
]
-}, Y3 = rU({
+}, J3 = rU({
name: "eventSettings",
- initialState: J3,
+ initialState: q3,
reducers: { setEventSettings: (e, t) => {
t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = mG(t.payload.throttledEvents));
} }
-}), { setEventSettings: sVe } = Y3.actions, cVe = Y3.reducer, lVe = IV({
- brush: ELe,
- cartesianAxis: pIe,
- chartData: BMe,
- errorBars: GRe,
- eventSettings: cVe,
- graphicalItems: UFe,
- layout: Dwe,
- legend: TTe,
- options: FMe,
- polarAxis: NPe,
- polarOptions: aVe,
- referenceElements: LLe,
- renderedTicks: dRe,
- rootProps: nVe,
- tooltip: xje,
- zIndex: EMe
-}), uVe = function(e) {
+}), { setEventSettings: oVe } = J3.actions, sVe = J3.reducer, cVe = IV({
+ brush: TLe,
+ cartesianAxis: fIe,
+ chartData: zMe,
+ errorBars: WRe,
+ eventSettings: sVe,
+ graphicalItems: HFe,
+ layout: Twe,
+ legend: CTe,
+ options: PMe,
+ polarAxis: MPe,
+ polarOptions: iVe,
+ referenceElements: ILe,
+ renderedTicks: uRe,
+ rootProps: tVe,
+ tooltip: bje,
+ zIndex: TMe
+}), lVe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return $Ce({
- reducer: lVe,
+ return ZCe({
+ reducer: cVe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -71491,40 +71475,40 @@ var J3 = {
"production"
].includes("es6")
}).concat([
- b3.middleware,
- S3.middleware,
- M3.middleware,
- R3.middleware,
- U3.middleware
+ y3.middleware,
+ x3.middleware,
+ j3.middleware,
+ L3.middleware,
+ H3.middleware
]),
enhancers: (e) => {
var t = e;
return typeof e == "function" && (t = e()), t.concat(tU({ type: "raf" }));
},
devTools: NG.devToolsEnabled && {
- serialize: { replacer: tVe },
+ serialize: { replacer: eVe },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function X3(e) {
+function Y3(e) {
var { preloadedState: t, children: n, reduxStoreName: r } = e, i = aW(), a = (0, B.useRef)(null);
if (i) return n;
- a.current ??= uVe(t, r);
+ a.current ??= lVe(t, r);
var o = _V;
- return /*#__PURE__*/ B.createElement(zTe, {
+ return /*#__PURE__*/ B.createElement(LTe, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function dVe(e) {
+function uVe(e) {
var { layout: t, margin: n } = e, r = vV(), i = aW();
return (0, B.useEffect)(() => {
- i || (r(wwe(t)), r(Cwe(n)));
+ i || (r(Swe(t)), r(xwe(n)));
}, [
r,
i,
@@ -71532,31 +71516,31 @@ function dVe(e) {
n
]), null;
}
-var Z3 = /*#__PURE__*/ (0, B.memo)(dVe, SG);
+var X3 = /*#__PURE__*/ (0, B.memo)(uVe, SG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function Q3(e) {
+function Z3(e) {
var t = vV();
return (0, B.useEffect)(() => {
- t(rVe(e));
+ t(nVe(e));
}, [t, e]), null;
}
-var $3 = /*#__PURE__*/ (0, B.memo)((e) => {
+var Q3 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = vV();
return (0, B.useEffect)(() => {
- t(sVe(e));
+ t(oVe(e));
}, [t, e]), null;
}, SG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function e6(e) {
+function $3(e) {
var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = vV();
- return (0, B.useLayoutEffect)(() => (r.current && i(wMe({
+ return (0, B.useLayoutEffect)(() => (r.current && i(CMe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(TMe({
+ i(wMe({
zIndex: t,
isPanorama: n
}));
@@ -71570,15 +71554,15 @@ function e6(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function t6(e) {
- var { children: t, isPanorama: n } = e, r = Q(hMe);
+function e6(e) {
+ var { children: t, isPanorama: n } = e, r = Q(mMe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement(e6, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement($3, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ B.createElement(e6, {
+ })), t, a.map((e) => /*#__PURE__*/ B.createElement($3, {
key: e,
zIndex: e,
isPanorama: n
@@ -71586,17 +71570,17 @@ function t6(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var fVe = ["children"];
-function pVe(e, t) {
+var dVe = ["children"];
+function fVe(e, t) {
if (e == null) return {};
- var n, r, i = mVe(e, t);
+ var n, r, i = pVe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function mVe(e, t) {
+function pVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71605,55 +71589,55 @@ function mVe(e, t) {
}
return n;
}
-function n6() {
- return n6 = Object.assign ? Object.assign.bind() : function(e) {
+function t6() {
+ return t6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, n6.apply(null, arguments);
+ }, t6.apply(null, arguments);
}
-var hVe = {
+var mVe = {
width: "100%",
height: "100%",
display: "block"
-}, gVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+}, hVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = xW(), r = SW(), i = LG();
if (!NU(n) || !NU(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ B.createElement(gz, n6({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ B.createElement(_z, t6({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: hVe,
+ style: mVe,
ref: t
}), a);
-}), _Ve = (e) => {
+}), gVe = (e) => {
var { children: t } = e, n = Q(sW);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ B.createElement(gz, {
+ return /*#__PURE__*/ B.createElement(_z, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, r6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { children: n } = e, r = pVe(e, fVe);
- return aW() ? /*#__PURE__*/ B.createElement(_Ve, null, /*#__PURE__*/ B.createElement(t6, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(gVe, n6({ ref: t }, r), /*#__PURE__*/ B.createElement(t6, { isPanorama: !1 }, n));
+}, n6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { children: n } = e, r = fVe(e, dVe);
+ return aW() ? /*#__PURE__*/ B.createElement(gVe, null, /*#__PURE__*/ B.createElement(e6, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(hVe, t6({ ref: t }, r), /*#__PURE__*/ B.createElement(e6, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function vVe() {
- var e = vV(), [t, n] = (0, B.useState)(null), r = Q(zwe);
+function _Ve() {
+ var e = vV(), [t, n] = (0, B.useState)(null), r = Q(Lwe);
return (0, B.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- MU(n) && n !== r && e(Ewe(n));
+ MU(n) && n !== r && e(wwe(n));
}
}, [
t,
@@ -71663,7 +71647,7 @@ function vVe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function i6(e, t) {
+function r6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -71673,30 +71657,30 @@ function i6(e, t) {
}
return n;
}
-function yVe(e) {
+function vVe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? i6(Object(n), !0).forEach(function(t) {
- bVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i6(Object(n)).forEach(function(t) {
+ t % 2 ? r6(Object(n), !0).forEach(function(t) {
+ yVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bVe(e, t, n) {
- return (t = xVe(t)) in e ? Object.defineProperty(e, t, {
+function yVe(e, t, n) {
+ return (t = bVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xVe(e) {
- var t = SVe(e, "string");
+function bVe(e) {
+ var t = xVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SVe(e, t) {
+function xVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71706,17 +71690,17 @@ function SVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function a6() {
- return a6 = Object.assign ? Object.assign.bind() : function(e) {
+function i6() {
+ return i6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, a6.apply(null, arguments);
+ }, i6.apply(null, arguments);
}
-var CVe = () => (YMe(), null);
-function o6(e) {
+var SVe = () => (JMe(), null);
+function a6(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -71724,10 +71708,10 @@ function o6(e) {
}
return 0;
}
-var wVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+var CVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = (0, B.useRef)(null), [r, i] = (0, B.useState)({
- containerWidth: o6(e.style?.width),
- containerHeight: o6(e.style?.height)
+ containerWidth: a6(e.style?.width),
+ containerHeight: a6(e.style?.height)
}), a = (0, B.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -71755,11 +71739,11 @@ var wVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(OW, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ B.createElement("div", a6({ ref: o }, e)));
-}), TVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ B.createElement("div", i6({ ref: o }, e)));
+}), wVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, B.useState)({
- containerWidth: o6(n),
- containerHeight: o6(r)
+ containerWidth: a6(n),
+ containerHeight: a6(r)
}), o = (0, B.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -71777,29 +71761,29 @@ var wVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(OW, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ B.createElement("div", a6({ ref: s }, e)));
-}), EVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ B.createElement("div", i6({ ref: s }, e)));
+}), TVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e;
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(OW, {
width: n,
height: r
- }), /*#__PURE__*/ B.createElement("div", a6({ ref: t }, e)));
-}), DVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ B.createElement("div", i6({ ref: t }, e)));
+}), EVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(TVe, a6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(EVe, a6({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(wVe, i6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(TVe, i6({}, e, {
width: n,
height: r,
ref: t
})) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(OW, {
width: n,
height: r
- }), /*#__PURE__*/ B.createElement("div", a6({ ref: t }, e)));
+ }), /*#__PURE__*/ B.createElement("div", i6({ ref: t }, e)));
});
-function OVe(e) {
- return e ? wVe : DVe;
+function DVe(e) {
+ return e ? CVe : EVe;
}
-var kVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, B.useRef)(null), x = vV(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = vVe(), D = gW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {
+var OVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, B.useRef)(null), x = vV(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = _Ve(), D = gW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -71807,58 +71791,58 @@ var kVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
C,
T
]), j = (0, B.useCallback)((e) => {
- x(y3(e)), x(L3({
+ x(v3(e)), x(I3({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, B.useCallback)((e) => {
- x(x3(e)), x(L3({
+ x(b3(e)), x(I3({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, B.useCallback)((e) => {
- x(wQ()), x(L3({
+ x(CQ()), x(I3({
handler: u,
reactEvent: e
}));
}, [x, u]), P = (0, B.useCallback)((e) => {
- x(x3(e)), x(L3({
+ x(b3(e)), x(I3({
handler: d,
reactEvent: e
}));
}, [x, d]), ee = (0, B.useCallback)(() => {
- x(A3());
+ x(k3());
}, [x]), F = (0, B.useCallback)(() => {
- x(j3());
+ x(A3());
}, [x]), I = (0, B.useCallback)((e) => {
- x(k3(e.key));
+ x(O3(e.key));
}, [x]), te = (0, B.useCallback)((e) => {
- x(L3({
+ x(I3({
handler: o,
reactEvent: e
}));
}, [x, o]), ne = (0, B.useCallback)((e) => {
- x(L3({
+ x(I3({
handler: s,
reactEvent: e
}));
}, [x, s]), re = (0, B.useCallback)((e) => {
- x(L3({
+ x(I3({
handler: c,
reactEvent: e
}));
}, [x, c]), ie = (0, B.useCallback)((e) => {
- x(L3({
+ x(I3({
handler: f,
reactEvent: e
}));
}, [x, f]), ae = (0, B.useCallback)((e) => {
- x(L3({
+ x(I3({
handler: h,
reactEvent: e
}));
}, [x, h]), oe = (0, B.useCallback)((e) => {
- y && x(H3(e)), x(L3({
+ y && x(V3(e)), x(I3({
handler: m,
reactEvent: e
}));
@@ -71867,16 +71851,16 @@ var kVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
y,
m
]), se = (0, B.useCallback)((e) => {
- x(L3({
+ x(I3({
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = OVe(v);
- return /*#__PURE__*/ B.createElement(E$.Provider, { value: S }, /*#__PURE__*/ B.createElement(yz.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {
+ }, [x, p]), ce = DVe(v);
+ return /*#__PURE__*/ B.createElement(T$.Provider, { value: S }, /*#__PURE__*/ B.createElement(bz.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: _h("recharts-wrapper", r),
- style: yVe({
+ style: vVe({
position: "relative",
cursor: "default",
width: O,
@@ -71897,8 +71881,8 @@ var kVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ B.createElement(CVe, null), n)));
-}), AVe = [
+ }, /*#__PURE__*/ B.createElement(SVe, null), n)));
+}), kVe = [
"width",
"height",
"responsive",
@@ -71909,16 +71893,16 @@ var kVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
"title",
"desc"
];
-function jVe(e, t) {
+function AVe(e, t) {
if (e == null) return {};
- var n, r, i = MVe(e, t);
+ var n, r, i = jVe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function MVe(e, t) {
+function jVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71927,16 +71911,16 @@ function MVe(e, t) {
}
return n;
}
-var s6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = fz(jVe(e, AVe));
+var o6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = pz(AVe(e, kVe));
return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(OW, {
width: n,
height: r
- }), /*#__PURE__*/ B.createElement(r6, {
+ }), /*#__PURE__*/ B.createElement(n6, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ B.createElement(kVe, {
+ }, a)) : /*#__PURE__*/ B.createElement(OVe, {
className: o,
style: s,
width: n,
@@ -71953,25 +71937,25 @@ var s6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ B.createElement(r6, {
+ }, /*#__PURE__*/ B.createElement(n6, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ B.createElement(RLe, null, a)));
+ }, /*#__PURE__*/ B.createElement(LLe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function c6() {
- return c6 = Object.assign ? Object.assign.bind() : function(e) {
+function s6() {
+ return s6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, c6.apply(null, arguments);
+ }, s6.apply(null, arguments);
}
-function l6(e, t) {
+function c6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -71981,30 +71965,30 @@ function l6(e, t) {
}
return n;
}
-function NVe(e) {
+function MVe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? l6(Object(n), !0).forEach(function(t) {
- PVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l6(Object(n)).forEach(function(t) {
+ t % 2 ? c6(Object(n), !0).forEach(function(t) {
+ NVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function PVe(e, t, n) {
- return (t = FVe(t)) in e ? Object.defineProperty(e, t, {
+function NVe(e, t, n) {
+ return (t = PVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FVe(e) {
- var t = IVe(e, "string");
+function PVe(e) {
+ var t = FVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function IVe(e, t) {
+function FVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72014,7 +71998,7 @@ function IVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var LVe = NVe({
+var IVe = MVe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -72029,24 +72013,24 @@ var LVe = NVe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, J3), u6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = HB(e.categoricalChartProps, LVe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, q3), l6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ var n = UB(e.categoricalChartProps, IVe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ B.createElement(X3, {
+ return /*#__PURE__*/ B.createElement(Y3, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ B.createElement(V2, { chartData: s.data }), /*#__PURE__*/ B.createElement(Z3, {
+ }, /*#__PURE__*/ B.createElement(B2, { chartData: s.data }), /*#__PURE__*/ B.createElement(X3, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ B.createElement($3, {
+ }), /*#__PURE__*/ B.createElement(Q3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ B.createElement(Q3, {
+ }), /*#__PURE__*/ B.createElement(Z3, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -72058,52 +72042,52 @@ var LVe = NVe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ B.createElement(s6, c6({}, n, { ref: t })));
-}), RVe = ["axis"], zVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(u6, {
+ }), /*#__PURE__*/ B.createElement(o6, s6({}, n, { ref: t })));
+}), LVe = ["axis"], RVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: RVe,
- tooltipPayloadSearcher: A$,
+ validateTooltipEventTypes: LVe,
+ tooltipPayloadSearcher: k$,
categoricalChartProps: e,
ref: t
-})), BVe = ["axis", "item"], d6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(u6, {
+})), zVe = ["axis", "item"], u6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: BVe,
- tooltipPayloadSearcher: A$,
+ validateTooltipEventTypes: zVe,
+ tooltipPayloadSearcher: k$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function VVe(e) {
+function BVe(e) {
var t = vV();
return (0, B.useEffect)(() => {
- t(iVe(e));
+ t(rVe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var HVe = ["layout"];
-function f6() {
- return f6 = Object.assign ? Object.assign.bind() : function(e) {
+var VVe = ["layout"];
+function d6() {
+ return d6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, f6.apply(null, arguments);
+ }, d6.apply(null, arguments);
}
-function UVe(e, t) {
+function HVe(e, t) {
if (e == null) return {};
- var n, r, i = WVe(e, t);
+ var n, r, i = UVe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function WVe(e, t) {
+function UVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -72112,7 +72096,7 @@ function WVe(e, t) {
}
return n;
}
-function p6(e, t) {
+function f6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -72122,30 +72106,30 @@ function p6(e, t) {
}
return n;
}
-function GVe(e) {
+function WVe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? p6(Object(n), !0).forEach(function(t) {
- KVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p6(Object(n)).forEach(function(t) {
+ t % 2 ? f6(Object(n), !0).forEach(function(t) {
+ GVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KVe(e, t, n) {
- return (t = qVe(t)) in e ? Object.defineProperty(e, t, {
+function GVe(e, t, n) {
+ return (t = KVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qVe(e) {
- var t = JVe(e, "string");
+function KVe(e) {
+ var t = qVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JVe(e, t) {
+function qVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72155,7 +72139,7 @@ function JVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var m6 = GVe({
+var p6 = WVe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -72174,24 +72158,24 @@ var m6 = GVe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, J3), h6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = HB(e.categoricalChartProps, m6), { layout: r } = n, i = UVe(n, HVe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, q3), m6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ var n = UB(e.categoricalChartProps, p6), { layout: r } = n, i = HVe(n, VVe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ B.createElement(X3, {
+ return /*#__PURE__*/ B.createElement(Y3, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ B.createElement(V2, { chartData: n.data }), /*#__PURE__*/ B.createElement(Z3, {
+ }, /*#__PURE__*/ B.createElement(B2, { chartData: n.data }), /*#__PURE__*/ B.createElement(X3, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ B.createElement($3, {
+ }), /*#__PURE__*/ B.createElement(Q3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ B.createElement(Q3, {
+ }), /*#__PURE__*/ B.createElement(Z3, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -72203,18 +72187,18 @@ var m6 = GVe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ B.createElement(VVe, {
+ }), /*#__PURE__*/ B.createElement(BVe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ B.createElement(s6, f6({}, i, { ref: t })));
+ }), /*#__PURE__*/ B.createElement(o6, d6({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function g6(e, t) {
+function h6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -72224,30 +72208,30 @@ function g6(e, t) {
}
return n;
}
-function _6(e) {
+function g6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? g6(Object(n), !0).forEach(function(t) {
- YVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g6(Object(n)).forEach(function(t) {
+ t % 2 ? h6(Object(n), !0).forEach(function(t) {
+ JVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YVe(e, t, n) {
- return (t = XVe(t)) in e ? Object.defineProperty(e, t, {
+function JVe(e, t, n) {
+ return (t = YVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XVe(e) {
- var t = ZVe(e, "string");
+function YVe(e) {
+ var t = XVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZVe(e, t) {
+function XVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72257,31 +72241,31 @@ function ZVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var QVe = ["axis"], $Ve = _6(_6({}, m6), {}, {
+var ZVe = ["axis"], QVe = g6(g6({}, p6), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), eHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = HB(e, $Ve);
- return /*#__PURE__*/ B.createElement(h6, {
+}), $Ve = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = UB(e, QVe);
+ return /*#__PURE__*/ B.createElement(m6, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: QVe,
- tooltipPayloadSearcher: A$,
+ validateTooltipEventTypes: ZVe,
+ tooltipPayloadSearcher: k$,
categoricalChartProps: n,
ref: t
});
-}), tHe = ["axis"], nHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(u6, {
+}), eHe = ["axis"], tHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: tHe,
- tooltipPayloadSearcher: A$,
+ validateTooltipEventTypes: eHe,
+ tooltipPayloadSearcher: k$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function v6(e, t) {
+function _6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -72291,30 +72275,30 @@ function v6(e, t) {
}
return n;
}
-function y6(e) {
+function v6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? v6(Object(n), !0).forEach(function(t) {
- rHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v6(Object(n)).forEach(function(t) {
+ t % 2 ? _6(Object(n), !0).forEach(function(t) {
+ nHe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rHe(e, t, n) {
- return (t = iHe(t)) in e ? Object.defineProperty(e, t, {
+function nHe(e, t, n) {
+ return (t = rHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iHe(e) {
- var t = aHe(e, "string");
+function rHe(e) {
+ var t = iHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aHe(e, t) {
+function iHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72324,55 +72308,55 @@ function aHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var oHe = ["axis", "item"], sHe = y6(y6({}, m6), {}, {
+var aHe = ["axis", "item"], oHe = v6(v6({}, p6), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), cHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = HB(e, sHe);
- return /*#__PURE__*/ B.createElement(h6, {
+}), sHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = UB(e, oHe);
+ return /*#__PURE__*/ B.createElement(m6, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: oHe,
- tooltipPayloadSearcher: A$,
+ validateTooltipEventTypes: aHe,
+ tooltipPayloadSearcher: k$,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function b6(...e) {
- return vE(_h(e));
+function y6(...e) {
+ return gE(_h(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var x6 = {
+var b6 = {
light: "",
dark: ".dark"
-}, S6 = Object.keys(x6);
-function lHe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !S6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${S6.join(", ")}). Received empty object or invalid keys.`);
+}, x6 = Object.keys(b6);
+function cHe(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !x6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${x6.join(", ")}). Received empty object or invalid keys.`);
}
-var C6 = B.createContext(null);
-function w6() {
- let e = B.useContext(C6);
+var S6 = B.createContext(null);
+function C6() {
+ let e = B.useContext(S6);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function T6({ id: e, config: t, initialDimension: n = {
+function w6({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = B.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return lHe(t), /* @__PURE__ */ (0, V.jsx)(C6.Provider, {
+ return cHe(t), /* @__PURE__ */ (0, V.jsx)(S6.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: b6("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: y6("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, V.jsx)(D6, {
+ /* @__PURE__ */ (0, V.jsx)(E6, {
id: c,
config: t
}),
@@ -72386,7 +72370,7 @@ function T6({ id: e, config: t, initialDimension: n = {
})
});
}
-function E6({ isLoading: e }) {
+function T6({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -72395,7 +72379,7 @@ function E6({ isLoading: e }) {
})
}) : null;
}
-function uHe(e, t) {
+function lHe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -72405,46 +72389,46 @@ function uHe(e, t) {
}
return r;
}
-var D6 = ({ id: e, config: t }) => {
+var E6 = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : uHe(r, k6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(x6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : lHe(r, O6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(b6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, V.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function O6(e, t, n) {
+function D6(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function k6(e) {
+function O6(e) {
if (!e.colors) return 1;
- let t = S6.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = x6.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var dHe = (e = 10, t = 0, n = 70) => {
+var uHe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, fHe = {
+}, dHe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, pHe = {
+}, fHe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function A6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = w6(), g = B.useMemo(() => {
+function k6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = C6(), g = B.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = O6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = D6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("font-medium", c),
+ className: y6("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("font-medium", c),
+ className: y6("font-medium", c),
children: a
}) : null;
}, [
@@ -72459,23 +72443,23 @@ function A6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: b6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", fHe[p], pHe[m], n),
+ className: y6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", dHe[p], fHe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, V.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = O6(h, e, n), o = i ? k6(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = D6(h, e, n), o = i ? O6(i) : 1;
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: y6("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("shrink-0 rounded-[2px]", {
+ className: y6("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: mHe(n, o)
+ style: pHe(n, o)
}), /* @__PURE__ */ (0, V.jsxs)("div", {
- className: b6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: y6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, V.jsx)("span", {
@@ -72492,27 +72476,27 @@ function A6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function mHe(e, t) {
+function pHe(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var j6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(rNe, {
+var A6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(nNe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function M6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = w6();
+function j6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = C6();
return r?.length ? /* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: y6("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = O6(u, e, r), a = o === null || o === r, d = i ? k6(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = D6(u, e, r), a = o === null || o === r, d = i ? O6(i) : 1;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: b6("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: y6("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(hHe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(mHe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -72521,8 +72505,8 @@ function M6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function hHe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = gHe(t, n), i = _He(t, n);
+function mHe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = hHe(t, n), i = gHe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, V.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -72554,10 +72538,10 @@ function hHe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function gHe(e, t) {
+function hHe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function _He(e, t) {
+function gHe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -72572,12 +72556,12 @@ function _He(e, t) {
...n
};
}
-var N6 = EG, P6 = () => null, F6 = {
+var M6 = EG, N6 = () => null, P6 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function vHe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function _He({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = B.useRef(null), [a, o] = B.useState(!1), s = (0, B.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, B.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -72623,7 +72607,7 @@ function vHe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function yHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function vHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = B.useRef(null), S = B.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = B.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = B.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -72657,7 +72641,7 @@ function yHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = vHe({
+ }, [C, v]), { isDragging: A, bind: j } = _He({
range: E,
totalPoints: C,
containerRef: x,
@@ -72684,7 +72668,7 @@ function yHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]);
let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Hf(N), F = Hf(P);
ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);
- let I = Yf(ee, F6), te = Yf(F, F6), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {
+ let I = Yf(ee, P6), te = Yf(F, P6), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {
oe.set(`${Math.max(0, te.get() - I.get())}%`);
}, [
I,
@@ -72704,16 +72688,16 @@ function yHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, V.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: b6("group relative select-none", o),
+ className: y6("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, V.jsx)(D6, {
+ !b && /* @__PURE__ */ (0, V.jsx)(E6, {
id: w,
config: t
}),
/* @__PURE__ */ (0, V.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, V.jsx)(bHe, {
+ children: /* @__PURE__ */ (0, V.jsx)(yHe, {
data: e,
keys: S,
chartConfig: t,
@@ -72742,13 +72726,13 @@ function yHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, V.jsx)(I6, {
+ /* @__PURE__ */ (0, V.jsx)(F6, {
side: "left",
position: ne,
label: y ? ce(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, V.jsx)(I6, {
+ /* @__PURE__ */ (0, V.jsx)(F6, {
side: "right",
position: re,
label: y ? ce(M.endIndex) : void 0,
@@ -72757,16 +72741,16 @@ function yHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function I6({ side: e, position: t, label: n, bind: r }) {
+function F6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
return /* @__PURE__ */ (0, V.jsxs)(ep.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: y6("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: y6("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -72777,15 +72761,15 @@ function I6({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, V.jsx)("div", {
- className: b6("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: y6("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
}
-function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function yHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = B.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: k6(t)
+ colorsCount: O6(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -72842,7 +72826,7 @@ function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
if (r === "line") return /* @__PURE__ */ (0, V.jsx)(_W, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(zVe, {
+ children: /* @__PURE__ */ (0, V.jsxs)(RVe, {
data: e,
margin: {
top: 4,
@@ -72850,7 +72834,7 @@ function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(k4, {
+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(O4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -72869,7 +72853,7 @@ function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
return /* @__PURE__ */ (0, V.jsx)(_W, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(d6, {
+ children: /* @__PURE__ */ (0, V.jsxs)(u6, {
data: e,
margin: {
top: 2,
@@ -72879,7 +72863,7 @@ function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(r3, {
+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(n3, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -72898,7 +72882,7 @@ function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
return /* @__PURE__ */ (0, V.jsx)(_W, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(nHe, {
+ children: /* @__PURE__ */ (0, V.jsxs)(tHe, {
data: e,
margin: {
top: 4,
@@ -72906,7 +72890,7 @@ function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(W4, {
+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(U4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -72924,7 +72908,7 @@ function bHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function xHe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function bHe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = B.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -72948,7 +72932,7 @@ function xHe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var SHe = {
+var xHe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {
id: e,
x: "0",
@@ -73120,9 +73104,9 @@ var SHe = {
})
})
};
-function L6({ variant: e }) {
- let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = SHe[e];
- return /* @__PURE__ */ (0, V.jsxs)(S$, {
+function I6({ variant: e }) {
+ let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = xHe[e];
+ return /* @__PURE__ */ (0, V.jsxs)(x$, {
zIndex: -1,
children: [/* @__PURE__ */ (0, V.jsxs)("defs", { children: [
/* @__PURE__ */ (0, V.jsx)(a, { id: n }),
@@ -73152,20 +73136,20 @@ function L6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var R6 = 2, CHe = "loading", wHe = 2e3, THe = "evil-stacked", EHe = .5, DHe = .05, OHe = [
+var L6 = 2, SHe = "loading", CHe = 2e3, wHe = "evil-stacked", THe = .5, EHe = .05, DHe = [
0,
.7,
.5,
1
-], z6 = (0, B.createContext)(null);
-function B6() {
- let e = (0, B.use)(z6);
+], R6 = (0, B.createContext)(null);
+function z6() {
+ let e = (0, B.use)(R6);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function V6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = R6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, B.useId)().replace(/:/g, ""), [v] = (0, B.useState)(() => Date.now()), [y, b] = (0, B.useState)(f), [x, S] = (0, B.useState)(!1), { loadingData: C, onShimmerExit: w } = qHe(m, h), { visibleData: T, brushProps: E } = xHe({ data: t }), D = (0, B.useMemo)(() => {
- let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === P6), r = (0, B.isValidElement)(t) ? t.props : {};
+function B6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = L6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+ let _ = (0, B.useId)().replace(/:/g, ""), [v] = (0, B.useState)(() => Date.now()), [y, b] = (0, B.useState)(f), [x, S] = (0, B.useState)(!1), { loadingData: C, onShimmerExit: w } = KHe(m, h), { visibleData: T, brushProps: E } = bHe({ data: t }), D = (0, B.useMemo)(() => {
+ let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === N6), r = (0, B.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, B.isValidElement)(t),
@@ -73173,7 +73157,7 @@ function V6({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === P6))
+ chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === N6))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, B.useCallback)((e) => {
b(e), p?.(e);
@@ -73202,12 +73186,12 @@ function V6({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, V.jsx)(z6, {
+ return /* @__PURE__ */ (0, V.jsx)(R6, {
value: N,
- children: /* @__PURE__ */ (0, V.jsxs)(T6, {
+ children: /* @__PURE__ */ (0, V.jsxs)(w6, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, V.jsx)(yHe, {
+ footer: O && !m && /* @__PURE__ */ (0, V.jsx)(vHe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -73223,7 +73207,7 @@ function V6({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, V.jsx)(E6, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(d6, {
+ children: [/* @__PURE__ */ (0, V.jsx)(T6, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(u6, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -73235,10 +73219,10 @@ function V6({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, V.jsx)(L6, { variant: d }),
- /* @__PURE__ */ (0, V.jsx)(Y2, { color: "white" }),
+ d && /* @__PURE__ */ (0, V.jsx)(I6, { variant: d }),
+ /* @__PURE__ */ (0, V.jsx)(J2, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, V.jsx)(JHe, {
+ m && /* @__PURE__ */ (0, V.jsx)(qHe, {
chartId: _,
onShimmerExit: w
})
@@ -73247,8 +73231,8 @@ function V6({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function kHe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
- let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = B6(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();
+function OHe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = z6(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -73268,65 +73252,65 @@ function kHe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(r3, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(n3, {
dataKey: e,
- stackId: u ? THe : void 0,
+ stackId: u ? wHe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, V.jsx)(H6, {
+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(V6, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(H6, {
+ activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(V6, {
...e,
...T,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, V.jsx)(RHe, {
+ /* @__PURE__ */ (0, V.jsx)(LHe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, V.jsx)(zHe, {
+ t === "hatched" && /* @__PURE__ */ (0, V.jsx)(RHe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, V.jsx)(VHe, {
+ t === "duotone" && /* @__PURE__ */ (0, V.jsx)(BHe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(HHe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(VHe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, V.jsx)(UHe, {
+ t === "gradient" && /* @__PURE__ */ (0, V.jsx)(HHe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, V.jsx)(WHe, {
+ t === "stripped" && /* @__PURE__ */ (0, V.jsx)(UHe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, V.jsx)(BHe, {
+ s && /* @__PURE__ */ (0, V.jsx)(zHe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, V.jsx)(GHe, {
+ o && /* @__PURE__ */ (0, V.jsx)(WHe, {
id: b,
dataKey: e
})
] })] });
}
-function AHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = B6();
- return o ? null : /* @__PURE__ */ (0, V.jsx)(d3, {
+function kHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = z6();
+ return o ? null : /* @__PURE__ */ (0, V.jsx)(u3, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -73335,9 +73319,9 @@ function AHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function jHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = B6();
- return s ? null : /* @__PURE__ */ (0, V.jsx)(g3, {
+function AHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = z6();
+ return s ? null : /* @__PURE__ */ (0, V.jsx)(h3, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -73347,33 +73331,33 @@ function jHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function MHe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = B6();
- return /* @__PURE__ */ (0, V.jsx)(f4, {
+function jHe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = z6();
+ return /* @__PURE__ */ (0, V.jsx)(d4, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function NHe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = B6();
- return r ? null : /* @__PURE__ */ (0, V.jsx)(j6, {
+function MHe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = z6();
+ return r ? null : /* @__PURE__ */ (0, V.jsx)(A6, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, V.jsx)(A6, {
+ content: /* @__PURE__ */ (0, V.jsx)(k6, {
selected: i,
roundness: t,
variant: e
})
});
}
-function PHe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = B6();
- return /* @__PURE__ */ (0, V.jsx)(N6, {
+function NHe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = z6();
+ return /* @__PURE__ */ (0, V.jsx)(M6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, V.jsx)(M6, {
+ content: /* @__PURE__ */ (0, V.jsx)(j6, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -73381,8 +73365,8 @@ function PHe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var H6 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = FHe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : IHe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = LHe({
+var V6 = (e) => {
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = PHe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : FHe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = IHe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -73427,7 +73411,7 @@ var H6 = (e) => {
children: A
}) : A]
});
-}, FHe = (e, t, n, r, i) => {
+}, PHe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -73442,11 +73426,11 @@ var H6 = (e) => {
break;
default: s = t;
}
- let c = s * DHe * 1e3, l = EHe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * EHe * 1e3, l = THe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: OHe,
+ ease: DHe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -73460,7 +73444,7 @@ var H6 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, IHe = (e, t, n) => {
+}, FHe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -73469,11 +73453,11 @@ var H6 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, LHe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, IHe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, RHe = ({ id: e, dataKey: t, config: n }) => {
- let r = k6(n[t] ?? {});
+}, LHe = ({ id: e, dataKey: t, config: n }) => {
+ let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -73494,7 +73478,7 @@ var H6 = (e) => {
}, i);
})
});
-}, zHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+}, RHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -73535,7 +73519,7 @@ var H6 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), BHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+] }), zHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -73576,8 +73560,8 @@ var H6 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), VHe = ({ id: e, dataKey: t, config: n }) => {
- let r = k6(n[t] ?? {});
+] }), BHe = ({ id: e, dataKey: t, config: n }) => {
+ let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -73644,8 +73628,8 @@ var H6 = (e) => {
})
})
] });
-}, HHe = ({ id: e, dataKey: t, config: n }) => {
- let r = k6(n[t] ?? {});
+}, VHe = ({ id: e, dataKey: t, config: n }) => {
+ let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -73712,7 +73696,7 @@ var H6 = (e) => {
})
})
] });
-}, UHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+}, HHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -73749,7 +73733,7 @@ var H6 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), WHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+] }), UHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -73786,7 +73770,7 @@ var H6 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), GHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
+] }), WHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -73806,35 +73790,35 @@ var H6 = (e) => {
}),
/* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), KHe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), GHe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function qHe(e, t = 12) {
+function KHe(e, t = 12) {
let [n, r] = (0, B.useState)(!1), i = (0, B.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, B.useMemo)(() => dHe(t, 20, 80), [t, n]),
+ loadingData: (0, B.useMemo)(() => uHe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var JHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(r3, {
- dataKey: CHe,
+var qHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(n3, {
+ dataKey: SHe,
fill: "currentColor",
fillOpacity: .15,
- radius: R6,
+ radius: L6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(YHe, {
+}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(JHe, {
chartId: e,
onShimmerExit: t
-}) })] }), YHe = ({ chartId: e, onShimmerExit: t }) => {
- let n = KHe(), r = (0, B.useRef)(-1);
+}) })] }), JHe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = GHe(), r = (0, B.useRef)(-1);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -73865,7 +73849,7 @@ var JHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: wHe / 1e3,
+ duration: CHe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -73887,11 +73871,11 @@ var JHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fr
})
] });
};
-V6.Bar = kHe, V6.XAxis = AHe, V6.YAxis = jHe, V6.Grid = MHe, V6.Tooltip = NHe, V6.Legend = PHe, V6.Brush = P6;
+B6.Bar = OHe, B6.XAxis = kHe, B6.YAxis = AHe, B6.Grid = jHe, B6.Tooltip = MHe, B6.Legend = NHe, B6.Brush = N6;
//#endregion
//#region src/react/charts/chart-card.tsx
-var U6 = `${wE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function W6({ title: e, figure: t, note: n }) {
+var H6 = `${SE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function U6({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, V.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
@@ -73909,24 +73893,24 @@ function W6({ title: e, figure: t, note: n }) {
})]
});
}
-var G6 = [
+var W6 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], K6 = (e) => ({ light: [e] }), q6 = (e) => `s${e}`;
-function XHe(e) {
- return Object.fromEntries(e.map((e, t) => [q6(t), {
+], G6 = (e) => ({ light: [e] }), K6 = (e) => `s${e}`;
+function YHe(e) {
+ return Object.fromEntries(e.map((e, t) => [K6(t), {
label: e,
- colors: K6(G6[t % G6.length])
+ colors: G6(W6[t % W6.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var J6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function Y6({ swatch: e, name: t, value: n }) {
+var q6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function J6({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -73941,33 +73925,33 @@ function Y6({ swatch: e, name: t, value: n }) {
})]
});
}
-var X6 = "size-2.5 shrink-0 rounded-xs";
-function ZHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = w6(), s = (t ?? []).filter((e) => e.type !== "none");
+var Y6 = "size-2.5 shrink-0 rounded-xs";
+function XHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = C6(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: J6,
+ className: q6,
children: [c ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = O6(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, V.jsx)(Y6, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = D6(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, V.jsx)(J6, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, V.jsx)("i", {
- className: X6,
+ className: Y6,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function Z6({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, V.jsx)(j6, {
+function X6({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, V.jsx)(A6, {
cursor: !1,
- content: /* @__PURE__ */ (0, V.jsx)(ZHe, {
+ content: /* @__PURE__ */ (0, V.jsx)(XHe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -73976,12 +73960,12 @@ function Z6({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var Q6 = [0, (e) => e * 1.2], $6 = (e) => ({
+var Z6 = [0, (e) => e * 1.2], Q6 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function e8({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function $6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
@@ -73989,53 +73973,53 @@ function e8({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: U6,
+ className: H6,
"aria-label": e,
- children: [/* @__PURE__ */ (0, V.jsx)(W6, {
+ children: [/* @__PURE__ */ (0, V.jsx)(U6, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, V.jsxs)(V6, {
+ }), /* @__PURE__ */ (0, V.jsxs)(B6, {
data: o,
config: { value: {
label: n,
- colors: K6(i)
+ colors: G6(i)
} },
layout: a,
barRadius: 4,
className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, V.jsx)(V6.Grid, {}),
- c ? /* @__PURE__ */ (0, V.jsx)(V6.YAxis, {
+ /* @__PURE__ */ (0, V.jsx)(B6.Grid, {}),
+ c ? /* @__PURE__ */ (0, V.jsx)(B6.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, V.jsx)(V6.XAxis, {
+ }) : /* @__PURE__ */ (0, V.jsx)(B6.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, V.jsx)(V6.XAxis, {
+ c ? /* @__PURE__ */ (0, V.jsx)(B6.XAxis, {
hide: !0,
- domain: Q6
- }) : /* @__PURE__ */ (0, V.jsx)(V6.YAxis, {
+ domain: Z6
+ }) : /* @__PURE__ */ (0, V.jsx)(B6.YAxis, {
hide: !0,
- domain: Q6
+ domain: Z6
}),
- /* @__PURE__ */ (0, V.jsx)(V6.Bar, {
+ /* @__PURE__ */ (0, V.jsx)(B6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: $6(c ? "right" : "top")
+ label: Q6(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, V.jsx)(Z6, {})
+ /* @__PURE__ */ (0, V.jsx)(X6, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var t8 = [
+var e8 = [
"周一",
"周二",
"周三",
@@ -74043,8 +74027,8 @@ var t8 = [
"周五",
"周六",
"周日"
-], n8 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function QHe(e) {
+], t8 = (e, t) => e ? Math.max(.12, e / t) : 0;
+function ZHe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -74054,14 +74038,14 @@ function QHe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${t8[t]} ${n}:00`,
+ label: `${e8[t]} ${n}:00`,
count: e,
- share: n8(e, r)
+ share: t8(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function $He(e) {
+function QHe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -74079,7 +74063,7 @@ function $He(e) {
key: r,
label: r,
count: s,
- share: n8(s, o)
+ share: t8(s, o)
};
});
return {
@@ -74091,7 +74075,7 @@ function $He(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var r8 = 14, i8 = 17, a8 = {
+var n8 = 14, r8 = 17, i8 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -74100,42 +74084,42 @@ var r8 = 14, i8 = 17, a8 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, eUe = {
+}, $He = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function tUe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function eUe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${J6} ${eUe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${q6} ${$He[a]}`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, V.jsx)(Y6, {
+ }), /* @__PURE__ */ (0, V.jsx)(J6, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${X6} ${a8[n].dot}` })
+ swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${Y6} ${i8[n].dot}` })
})]
});
}
-function o8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * i8, m = f + a * i8, h = (e) => ({
- x: d + e % i * i8,
- y: f + Math.floor(e / i) * i8
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + r8 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function a8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * r8, m = f + a * r8, h = (e) => ({
+ x: d + e % i * r8,
+ y: f + Math.floor(e / i) * r8
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + n8 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + r8 / 2,
- end: _.x + r8
+ center: _.x + n8 / 2,
+ end: _.x + n8
}[y] : 0;
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: U6,
+ className: H6,
children: [
- /* @__PURE__ */ (0, V.jsx)(W6, {
+ /* @__PURE__ */ (0, V.jsx)(U6, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -74158,19 +74142,19 @@ function o8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: r8,
- height: r8,
+ width: n8,
+ height: n8,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${a8[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${i8[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, V.jsx)(tUe, {
+ }), g && _ ? /* @__PURE__ */ (0, V.jsx)(eUe, {
cell: g,
series: t.series,
tone: c,
@@ -74186,24 +74170,24 @@ function o8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var nUe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t8.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {
+var tUe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e8.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {
x: 0,
- y: 18 + t * i8 + 7,
+ y: 18 + t * r8 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, V.jsx)("text", {
- x: 30 + t * i8,
+ x: 30 + t * r8,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function s8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = QHe(e), s = $He(e);
+function o8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = ZHe(e), s = QHe(e);
return s.cells.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, V.jsx)(o8, {
+ children: [/* @__PURE__ */ (0, V.jsx)(a8, {
title: t,
words: r,
tone: i,
@@ -74211,9 +74195,9 @@ function s8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: nUe,
+ axis: tUe,
footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, V.jsx)(o8, {
+ }), /* @__PURE__ */ (0, V.jsx)(a8, {
title: n,
words: r,
tone: i,
@@ -74224,7 +74208,7 @@ function s8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, V.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, V.jsxs)("section", {
- className: U6,
+ className: H6,
children: [/* @__PURE__ */ (0, V.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -74236,7 +74220,7 @@ function s8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function c8({ children: e, className: t = "", previewCount: n = 10 }) {
+function s8({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, B.useId)(), i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1), l = B.Children.toArray(e), u = l.length > n;
(0, B.useLayoutEffect)(() => {
let e = i.current;
@@ -74277,20 +74261,20 @@ function c8({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, V.jsx)(cT, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, V.jsx)(sT, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var rUe = "30%", iUe = "100%", l8 = 5, u8 = 14, aUe = 5, d8 = 1500, f8 = (0, B.createContext)(null);
-function p8() {
- let e = (0, B.use)(f8);
+var nUe = "30%", rUe = "100%", c8 = 5, l8 = 14, iUe = 5, u8 = 1500, d8 = (0, B.createContext)(null);
+function f8() {
+ let e = (0, B.use)(d8);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function m8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = rUe, outerRadius: l = iUe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = fUe(f), v = lUe(o), y = (0, B.useCallback)((e, t) => {
+function p8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = nUe, outerRadius: l = rUe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = dUe(f), v = cUe(o), y = (0, B.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -74317,12 +74301,12 @@ function m8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, V.jsx)(f8, {
+ return /* @__PURE__ */ (0, V.jsx)(d8, {
value: x,
- children: /* @__PURE__ */ (0, V.jsxs)(T6, {
+ children: /* @__PURE__ */ (0, V.jsxs)(w6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, V.jsx)(E6, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(cHe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(T6, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(sHe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -74333,16 +74317,16 @@ function m8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(_0, {
+ s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(g0, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, V.jsx)(L6, { variant: p }),
+ p && /* @__PURE__ */ (0, V.jsx)(I6, { variant: p }),
r,
- f && /* @__PURE__ */ (0, V.jsx)(pUe, {}),
- /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(uUe, {
+ f && /* @__PURE__ */ (0, V.jsx)(fUe, {}),
+ /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(lUe, {
config: e,
chartId: m
}) })
@@ -74351,9 +74335,9 @@ function m8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function oUe({ dataKey: e, cornerRadius: t = l8, barSize: n = u8, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = p8();
- return s ? null : /* @__PURE__ */ (0, V.jsx)(B2, {
+function aUe({ dataKey: e, cornerRadius: t = c8, barSize: n = l8, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = f8();
+ return s ? null : /* @__PURE__ */ (0, V.jsx)(z2, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -74376,12 +74360,12 @@ function oUe({ dataKey: e, cornerRadius: t = l8, barSize: n = u8, showBackground
...a
});
}
-function sUe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = p8();
- return i ? null : /* @__PURE__ */ (0, V.jsx)(j6, {
+function oUe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = f8();
+ return i ? null : /* @__PURE__ */ (0, V.jsx)(A6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, V.jsx)(A6, {
+ content: /* @__PURE__ */ (0, V.jsx)(k6, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -74389,12 +74373,12 @@ function sUe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function cUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = p8();
- return a ? null : /* @__PURE__ */ (0, V.jsx)(N6, {
+function sUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = f8();
+ return a ? null : /* @__PURE__ */ (0, V.jsx)(M6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, V.jsx)(M6, {
+ content: /* @__PURE__ */ (0, V.jsx)(j6, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -74403,7 +74387,7 @@ function cUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function lUe(e) {
+function cUe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -74419,8 +74403,8 @@ function lUe(e) {
};
}
}
-var uUe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = k6(n);
+var lUe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = O6(n);
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -74442,29 +74426,29 @@ var uUe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function dUe() {
- return Array.from({ length: aUe }, (e, t) => ({
+function uUe() {
+ return Array.from({ length: iUe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function fUe(e) {
+function dUe(e) {
let [t, n] = (0, B.useState)(0);
return (0, B.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, d8);
+ }, u8);
return () => clearInterval(t);
- }, [e]), (0, B.useMemo)(() => dUe(), [t]);
+ }, [e]), (0, B.useMemo)(() => uUe(), [t]);
}
-var pUe = () => /* @__PURE__ */ (0, V.jsx)(B2, {
+var fUe = () => /* @__PURE__ */ (0, V.jsx)(z2, {
dataKey: "value",
- cornerRadius: l8,
- barSize: u8,
+ cornerRadius: c8,
+ barSize: l8,
background: !0,
isAnimationActive: !0,
- animationDuration: d8,
+ animationDuration: u8,
animationEasing: "ease-in-out",
shape: (e) => /* @__PURE__ */ (0, V.jsx)(jK, {
...e,
@@ -74472,17 +74456,17 @@ var pUe = () => /* @__PURE__ */ (0, V.jsx)(B2, {
fillOpacity: .25
})
});
-m8.RadialBar = oUe, m8.Tooltip = sUe, m8.Legend = cUe;
+p8.RadialBar = aUe, p8.Tooltip = oUe, p8.Legend = sUe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var mUe = [
+var pUe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], hUe = [
+], mUe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -74490,15 +74474,15 @@ var mUe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function h8({ title: e, rows: t, unit: n = "个视频" }) {
+function m8({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, B.useState)(-1), [a, o] = (0, B.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({
- slice: q6(t),
+ slice: K6(t),
value: e.value
}));
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: U6,
+ className: H6,
children: [
/* @__PURE__ */ (0, V.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -74520,16 +74504,16 @@ function h8({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, V.jsxs)(m8, {
+ children: /* @__PURE__ */ (0, V.jsxs)(p8, {
data: f,
nameKey: "slice",
- config: XHe(s.map((e) => e.name)),
- max: $be(s.map((e) => e.value)),
+ config: YHe(s.map((e) => e.name)),
+ max: Xbe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, V.jsx)(m8.RadialBar, {
+ children: [/* @__PURE__ */ (0, V.jsx)(p8.RadialBar, {
dataKey: "value",
- barSize: exe(s.length),
+ barSize: Zbe(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, V.jsx)(jK, {
...e,
@@ -74539,7 +74523,7 @@ function h8({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, V.jsx)(Z6, {
+ }), /* @__PURE__ */ (0, V.jsx)(X6, {
nameKey: "slice",
hideLabel: !0
})]
@@ -74555,13 +74539,13 @@ function h8({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${hUe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${mUe[t % 6]}`,
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, V.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${mUe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${pUe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, V.jsx)("b", {
@@ -74580,8 +74564,8 @@ function h8({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var gUe = 10, g8 = G6[5], _Ue = G6[4], vUe = `${wE()} flex flex-col gap-4`, yUe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", bUe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", xUe = "开始播放后,这里会显示最近的真实观看证据。", SUe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", CUe = "添加媒体文件夹后,这里会显示存储空间。";
-function _8({ term: e, value: t }) {
+var hUe = 10, h8 = W6[5], gUe = W6[4], _Ue = `${SE()} flex flex-col gap-4`, vUe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", yUe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", bUe = "开始播放后,这里会显示最近的真实观看证据。", xUe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", SUe = "添加媒体文件夹后,这里会显示存储空间。";
+function g8({ term: e, value: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, V.jsx)("span", {
@@ -74593,7 +74577,7 @@ function _8({ term: e, value: t }) {
})]
});
}
-function v8({ term: e, value: t, total: n }) {
+function _8({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, V.jsxs)("p", {
@@ -74602,17 +74586,17 @@ function v8({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, V.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [az(t, n), "%"]
+ children: [oz(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, V.jsx)(kE, {
+ }), /* @__PURE__ */ (0, V.jsx)(DE, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function y8({ term: e, figure: t, unit: n }) {
+function v8({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -74631,28 +74615,28 @@ function y8({ term: e, figure: t, unit: n }) {
]
});
}
-function b8({ headline: e, children: t }) {
+function y8({ headline: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: `${vUe} md:flex-row md:gap-6`,
+ className: `${_Ue} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function wUe({ data: e, configurable: t, openMediaSettings: n }) {
+function CUe({ data: e, configurable: t, openMediaSettings: n }) {
return e.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, V.jsx)(h8, {
+ children: [/* @__PURE__ */ (0, V.jsx)(m8, {
title: "网盘与本地",
rows: e.by_loc.map((e) => ({
name: se[e.k] ?? e.k,
value: e.videos,
detail: pe(e.bytes)
}))
- }), /* @__PURE__ */ (0, V.jsx)(h8, {
+ }), /* @__PURE__ */ (0, V.jsx)(m8, {
title: "媒体库",
rows: e.by_library.map((e) => ({
name: e.name,
@@ -74663,49 +74647,49 @@ function wUe({ data: e, configurable: t, openMediaSettings: n }) {
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(e8, {
+ /* @__PURE__ */ (0, V.jsx)($6, {
title: "时长",
unit: "个视频",
series: "视频",
- color: g8,
- rows: ixe(e.by_length)
+ color: h8,
+ rows: txe(e.by_length)
}),
- /* @__PURE__ */ (0, V.jsx)(e8, {
+ /* @__PURE__ */ (0, V.jsx)($6, {
title: "画质",
unit: "个视频",
series: "视频",
- color: g8,
- rows: cz(e.by_quality)
+ color: h8,
+ rows: lz(e.by_quality)
}),
- /* @__PURE__ */ (0, V.jsx)(e8, {
+ /* @__PURE__ */ (0, V.jsx)($6, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: g8,
+ color: h8,
layout: "horizontal",
- rows: nxe(e.by_medium)
+ rows: $be(e.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: bae,
+ icon: xae,
title: "还没有视频",
actions: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : null, /* @__PURE__ */ (0, V.jsx)(xE, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: yUe
+ children: vUe
});
}
-function TUe({ data: e }) {
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(s8, {
+function wUe({ data: e }) {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(o8, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -74715,40 +74699,40 @@ function TUe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, V.jsx)(e8, {
+ }), /* @__PURE__ */ (0, V.jsx)($6, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: _Ue,
- rows: oxe(e.replays)
+ color: gUe,
+ rows: rxe(e.replays)
})] });
}
-function EUe({ attribution: e }) {
+function TUe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, V.jsx)(v8, {
+ /* @__PURE__ */ (0, V.jsx)(_8, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(v8, {
+ /* @__PURE__ */ (0, V.jsx)(_8, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(v8, {
+ /* @__PURE__ */ (0, V.jsx)(_8, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(v8, {
+ /* @__PURE__ */ (0, V.jsx)(_8, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(v8, {
+ /* @__PURE__ */ (0, V.jsx)(_8, {
term: "已探测时长",
value: e.duration,
total: t
@@ -74756,7 +74740,7 @@ function EUe({ attribution: e }) {
]
});
}
-function DUe({ volume: e }) {
+function EUe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, V.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -74773,11 +74757,11 @@ function DUe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [pe(n), /* @__PURE__ */ (0, V.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [az(n, t), "%"]
+ children: [oz(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, V.jsx)(kE, {
+ t == null ? null : /* @__PURE__ */ (0, V.jsx)(DE, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -74795,25 +74779,25 @@ function DUe({ volume: e }) {
]
});
}
-function OUe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function DUe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(DUe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(EUe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: yT,
+ icon: vT,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: CUe
+ children: SUe
});
}
-function kUe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, V.jsx)(c8, {
- previewCount: gUe,
+function OUe({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, V.jsx)(s8, {
+ previewCount: hUe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, V.jsx)("li", {
className: "min-w-0",
@@ -74837,24 +74821,24 @@ function kUe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: ST,
+ icon: xT,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, V.jsx)(CE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: bUe
+ children: yUe
});
}
-function AUe({ rows: e }) {
+function kUe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = oz(e);
+ let t = sz(e);
return /* @__PURE__ */ (0, V.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -74862,41 +74846,41 @@ function AUe({ rows: e }) {
children: [/* @__PURE__ */ (0, V.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, V.jsx)("a", {
- href: Qbe(e),
+ href: Ybe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, V.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: Zbe(e) })]
+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: Jbe(e) })]
})]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, V.jsx)(kE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(DE, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, V.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${sz(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${cz(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: bT,
+ icon: yT,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, V.jsx)(CE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: xUe
+ children: bUe
});
}
-function jUe({ sources: e, videos: t }) {
+function AUe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("article", {
@@ -74915,7 +74899,7 @@ function jUe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(kE, {
+ /* @__PURE__ */ (0, V.jsx)(DE, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -74926,27 +74910,27 @@ function jUe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: ST,
+ icon: xT,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, V.jsx)(CE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: SUe
+ children: xUe
});
}
-function x8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, V.jsx)(Xk, {
+function b8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, V.jsx)(Jk, {
id: e,
- className: iM({
+ className: rM({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, V.jsx)(cM, {
+ children: /* @__PURE__ */ (0, V.jsx)(sM, {
label: t,
icon: i,
accent: a,
@@ -74955,76 +74939,76 @@ function x8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function MUe(e) {
- let t = TS({
- queryKey: rz,
- queryFn: ({ signal: e }) => iz(e)
+function jUe(e) {
+ let t = wS({
+ queryKey: iz,
+ queryFn: ({ signal: e }) => az(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, V.jsx)(DE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? W(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = az(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, V.jsxs)(DE, { children: [
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = oz(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${pe(o)}`
}),
- /* @__PURE__ */ (0, V.jsxs)(Jk, {
+ /* @__PURE__ */ (0, V.jsxs)(Kk, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(qk, {
"aria-label": "统计视图",
- className: aM,
+ className: iM,
children: [
- /* @__PURE__ */ (0, V.jsx)(x8, {
+ /* @__PURE__ */ (0, V.jsx)(b8, {
id: "inventory",
label: "馆藏视频",
- icon: hT,
+ icon: mT,
accent: 0,
figure: a.toLocaleString(),
detail: pe(o)
}),
- /* @__PURE__ */ (0, V.jsx)(x8, {
+ /* @__PURE__ */ (0, V.jsx)(b8, {
id: "viewing",
label: "看过",
- icon: vT,
+ icon: _T,
accent: 1,
figure: r.played.toLocaleString(),
- detail: Xbe(r.play_seconds)
+ detail: qbe(r.play_seconds)
}),
- /* @__PURE__ */ (0, V.jsx)(x8, {
+ /* @__PURE__ */ (0, V.jsx)(b8, {
id: "coverage",
label: "内容标签",
- icon: ST,
+ icon: xT,
accent: 2,
figure: `${s}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, V.jsx)(x8, {
+ /* @__PURE__ */ (0, V.jsx)(b8, {
id: "storage",
label: "使用空间",
- icon: yT,
+ icon: vT,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${pe(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "inventory",
- children: /* @__PURE__ */ (0, V.jsx)(wUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(CUe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, V.jsxs)(Zk, {
+ /* @__PURE__ */ (0, V.jsxs)(Yk, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, V.jsx)(b8, {
- headline: /* @__PURE__ */ (0, V.jsx)(y8, {
+ children: [/* @__PURE__ */ (0, V.jsx)(y8, {
+ headline: /* @__PURE__ */ (0, V.jsx)(v8, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -75032,62 +75016,62 @@ function MUe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, V.jsx)(_8, {
+ /* @__PURE__ */ (0, V.jsx)(g8, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, V.jsx)(TUe, { data: n })]
+ }), /* @__PURE__ */ (0, V.jsx)(wUe, { data: n })]
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "coverage",
- children: /* @__PURE__ */ (0, V.jsx)(b8, {
- headline: /* @__PURE__ */ (0, V.jsx)(y8, {
+ children: /* @__PURE__ */ (0, V.jsx)(y8, {
+ headline: /* @__PURE__ */ (0, V.jsx)(v8, {
term: "内容标签覆盖",
figure: `${s}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, V.jsx)(EUe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, V.jsx)(TUe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "storage",
- children: /* @__PURE__ */ (0, V.jsx)(b8, {
- headline: /* @__PURE__ */ (0, V.jsx)(y8, {
+ children: /* @__PURE__ */ (0, V.jsx)(y8, {
+ headline: /* @__PURE__ */ (0, V.jsx)(v8, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, V.jsx)(OUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(DUe, {
volumes: n.storage_volumes,
...e
})
@@ -75095,51 +75079,51 @@ function MUe(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Jk, {
+ /* @__PURE__ */ (0, V.jsxs)(Kk, {
defaultSelectedKey: "tags",
- className: `${wE({ padding: "none" })} flex flex-col`,
+ className: `${SE({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, V.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, V.jsxs)($k, {
+ children: /* @__PURE__ */ (0, V.jsxs)(Zk, {
"aria-label": "统计维度",
- className: tA,
+ className: $k,
children: [
- /* @__PURE__ */ (0, V.jsx)(Xk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "tags",
- className: nA,
+ className: eA,
children: "内容标签"
}),
- /* @__PURE__ */ (0, V.jsx)(Xk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "recent",
- className: nA,
+ className: eA,
children: "最近看过"
}),
- /* @__PURE__ */ (0, V.jsx)(Xk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "sources",
- className: nA,
+ className: eA,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(kUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(OUe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(AUe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, V.jsx)(kUe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, V.jsx)(Zk, {
+ /* @__PURE__ */ (0, V.jsx)(Yk, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(jUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(AUe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -75150,66 +75134,66 @@ function MUe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function NUe(e, t) {
+function MUe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function S8(e) {
+function x8(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function S8(e, t) {
+ return w8(e.source, t.source) || e.index - t.index;
+}
function C8(e, t) {
- return T8(e.source, t.source) || e.index - t.index;
+ return w8(e.target, t.target) || e.index - t.index;
}
function w8(e, t) {
- return T8(e.target, t.target) || e.index - t.index;
-}
-function T8(e, t) {
return e.y0 - t.y0;
}
-function E8(e) {
+function T8(e) {
return e.value;
}
-function PUe(e) {
+function NUe(e) {
return e.index;
}
-function FUe(e) {
+function PUe(e) {
return e.nodes;
}
-function IUe(e) {
+function FUe(e) {
return e.links;
}
-function D8(e, t) {
+function E8(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function O8({ nodes: e }) {
+function D8({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function LUe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = PUe, c = NUe, l, u, d = FUe, f = IUe, p = 6;
+function IUe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = NUe, c = MUe, l, u, d = PUe, f = FUe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), O8(e), e;
+ return h(e), g(e), _(e), v(e), x(e), D8(e), e;
}
m.update = function(e) {
- return O8(e), e;
+ return D8(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : S8(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : x8(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : S8(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : x8(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -75217,9 +75201,9 @@ function LUe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : S8(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : x8(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : S8(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : x8(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -75235,12 +75219,12 @@ function LUe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = D8(n, t)), typeof i != "object" && (i = r.target = D8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = E8(n, t)), typeof i != "object" && (i = r.target = E8(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(Qq(t.sourceLinks, E8), Qq(t.targetLinks, E8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Qq(t.sourceLinks, T8), Qq(t.targetLinks, T8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -75274,7 +75258,7 @@ function LUe() {
return o;
}
function b(e) {
- let n = Yq(e, (e) => (r - t - (e.length - 1) * o) / Qq(e, E8));
+ let n = Yq(e, (e) => (r - t - (e.length - 1) * o) / Qq(e, T8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -75310,7 +75294,7 @@ function LUe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(T8), w(i, n);
+ l === void 0 && i.sort(w8), w(i, n);
}
}
function C(e, t, n) {
@@ -75326,7 +75310,7 @@ function LUe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(T8), w(i, n);
+ l === void 0 && i.sort(w8), w(i, n);
}
}
function w(e, n) {
@@ -75347,12 +75331,12 @@ function LUe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(w8);
- for (let { target: { targetLinks: t } } of e) t.sort(C8);
+ for (let { source: { sourceLinks: e } } of t) e.sort(C8);
+ for (let { target: { targetLinks: t } } of e) t.sort(S8);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(w8), n.sort(C8);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(C8), n.sort(S8);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -75382,15 +75366,15 @@ function LUe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var k8 = Math.PI, A8 = 2 * k8, j8 = 1e-6, RUe = A8 - j8;
-function M8() {
+var O8 = Math.PI, k8 = 2 * O8, A8 = 1e-6, LUe = k8 - A8;
+function j8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function N8() {
- return new M8();
+function M8() {
+ return new j8();
}
-M8.prototype = N8.prototype = {
- constructor: M8,
+j8.prototype = M8.prototype = {
+ constructor: j8,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -75411,11 +75395,11 @@ M8.prototype = N8.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 > j8) {
- if (!(Math.abs(u * s - c * l) > j8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > A8) {
+ if (!(Math.abs(u * s - c * l) > A8) || !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((k8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > j8 && (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((O8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > A8 && (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);
}
}
},
@@ -75423,7 +75407,7 @@ M8.prototype = N8.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) > j8 || Math.abs(this._y1 - l) > j8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % A8 + A8), d > RUe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > j8 && (this._ += "A" + n + "," + n + ",0," + +(d >= k8) + "," + 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) > A8 || Math.abs(this._y1 - l) > A8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % k8 + k8), d > LUe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > A8 && (this._ += "A" + n + "," + n + ",0," + +(d >= O8) + "," + 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";
@@ -75434,90 +75418,90 @@ M8.prototype = N8.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function P8(e) {
+function N8(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function zUe(e) {
+function RUe(e) {
return e[0];
}
-function BUe(e) {
+function zUe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var VUe = Array.prototype.slice;
+var BUe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function HUe(e) {
+function VUe(e) {
return e.source;
}
-function UUe(e) {
+function HUe(e) {
return e.target;
}
-function WUe(e) {
- var t = HUe, n = UUe, r = zUe, i = BUe, a = null;
+function UUe(e) {
+ var t = VUe, n = HUe, r = RUe, i = zUe, a = null;
function o() {
- var o, s = VUe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = N8(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = BUe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = M8(), 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 : P8(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : N8(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : P8(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : N8(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function GUe(e, t, n, r, i) {
+function WUe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function KUe() {
- return WUe(GUe);
+function GUe() {
+ return UUe(WUe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function qUe(e) {
+function KUe(e) {
return [e.source.x1, e.y0];
}
-function JUe(e) {
+function qUe(e) {
return [e.target.x0, e.y1];
}
-function YUe() {
- return KUe().source(qUe).target(JUe);
+function JUe() {
+ return GUe().source(KUe).target(qUe);
}
//#endregion
//#region src/react/taste/taste.ts
-var XUe = "/api/taste", F8 = "/api/taste/refresh", ZUe = "/api/taste/import", QUe = "/api/taste/source", I8 = (e) => ["taste", e], $Ue = ["taste", "refresh"], eWe = [
+var YUe = "/api/taste", P8 = "/api/taste/refresh", XUe = "/api/taste/import", ZUe = "/api/taste/source", F8 = (e) => ["taste", e], QUe = ["taste", "refresh"], $Ue = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], L8 = (e, t) => G(`${XUe}?window=${e}`, t), tWe = (e) => G(F8, e);
-async function nWe(e, t) {
+], I8 = (e, t) => G(`${YUe}?window=${e}`, t), eWe = (e) => G(P8, e);
+async function tWe(e, t) {
await z.fetchQuery({
- queryKey: I8(e),
- queryFn: () => L8(e, t)
+ queryKey: F8(e),
+ queryFn: () => I8(e, t)
});
}
-var rWe = (e) => K(F8, {
+var nWe = (e) => K(P8, {
window: e,
background: !0
-}), iWe = (e, t) => K(QUe, {
+}), rWe = (e, t) => K(ZUe, {
operation: "remove",
source_key: e,
window: t
});
-async function aWe(e) {
- let t = await fetch(ZUe, {
+async function iWe(e) {
+ let t = await fetch(XUe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -75531,39 +75515,39 @@ async function aWe(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new jS(e || `导入失败(${t.status})`, t.status, n);
+ throw new AS(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var oWe = 1e4, R8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", sWe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, cWe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function lWe(e) {
+var aWe = 1e4, L8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", oWe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, sWe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function cWe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function uWe(e) {
- let t = e.map(cWe), n = Math.max(1, ...t);
+function lWe(e) {
+ let t = e.map(sWe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var z8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var R8 = (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 dWe(e) {
- let t = z8(e, 6);
+function uWe(e) {
+ let t = R8(e, 6);
return t.length < 3 ? [] : t;
}
-var B8 = {
+var z8 = {
width: 720,
height: 435
-}, V8 = {
+}, B8 = {
source: 145,
target: 545
};
-function fWe(e = []) {
+function dWe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = LUe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = IUe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -75578,7 +75562,7 @@ function fWe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = YUe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = JUe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -75608,11 +75592,11 @@ function fWe(e = []) {
total: a
};
}
-var pWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, H8 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var fWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, V8 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = B.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, V.jsx)(W8, {
+ case "border": return /* @__PURE__ */ (0, V.jsx)(U8, {
cx: e,
cy: t,
dotId: c,
@@ -75621,7 +75605,7 @@ var pWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, H8 = B.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, V.jsx)(G8, {
+ case "colored-border": return /* @__PURE__ */ (0, V.jsx)(W8, {
cx: e,
cy: t,
dotId: c,
@@ -75630,7 +75614,7 @@ var pWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, H8 = B.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, V.jsx)(U8, {
+ default: return /* @__PURE__ */ (0, V.jsx)(H8, {
cx: e,
cy: t,
dotId: c,
@@ -75640,7 +75624,7 @@ var pWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, H8 = B.memo(functio
maskId: s
});
}
-}), U8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
+}), H8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {
@@ -75660,9 +75644,9 @@ var pWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, H8 = B.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-U8.displayName = "DefaultDot";
-var W8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
- className: b6(a, "text-background"),
+H8.displayName = "DefaultDot";
+var U8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
+ className: y6(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {
@@ -75698,9 +75682,9 @@ var W8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-W8.displayName = "PrimaryBorderDot";
-var G8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
- className: b6(a, "text-background"),
+U8.displayName = "PrimaryBorderDot";
+var W8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
+ className: y6(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {
@@ -75728,17 +75712,17 @@ var G8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-G8.displayName = "ColoredBorderDot";
+W8.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var mWe = 1, hWe = .3, gWe = 6, K8 = 1500, q8 = "value", J8 = (0, B.createContext)(null);
-function Y8() {
- let e = (0, B.use)(J8);
+var pWe = 1, mWe = .3, hWe = 6, G8 = 1500, K8 = "value", q8 = (0, B.createContext)(null);
+function J8() {
+ let e = (0, B.use)(q8);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function X8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = kWe(c, l), m = (0, B.useCallback)((e) => {
+function Y8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+ let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = OWe(c, l), m = (0, B.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, B.useMemo)(() => ({
config: e,
@@ -75751,37 +75735,37 @@ function X8({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, V.jsx)(J8, {
+ return /* @__PURE__ */ (0, V.jsx)(q8, {
value: h,
- children: /* @__PURE__ */ (0, V.jsxs)(T6, {
+ children: /* @__PURE__ */ (0, V.jsxs)(w6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, V.jsx)(E6, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(eHe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(T6, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)($Ve, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, V.jsx)(L6, { variant: a }),
+ a && /* @__PURE__ */ (0, V.jsx)(I6, { variant: a }),
n,
- c && /* @__PURE__ */ (0, V.jsx)(AWe, {})
+ c && /* @__PURE__ */ (0, V.jsx)(kWe, {})
]
})]
})
});
}
-function _We({ dataKey: e, variant: t = "filled", fillOpacity: n = hWe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = Y8(), d = (0, B.useId)().replace(/:/g, "");
+function gWe({ dataKey: e, variant: t = "filled", fillOpacity: n = mWe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = J8(), d = (0, B.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = CWe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(u2, {
+ }, m = t === "filled", { dot: h, activeDot: g } = SWe(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(l2, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: mWe,
+ strokeWidth: pWe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -75794,30 +75778,30 @@ function _We({ dataKey: e, variant: t = "filled", fillOpacity: n = hWe, isGlowin
},
...o
}), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, V.jsx)(wWe, {
+ /* @__PURE__ */ (0, V.jsx)(CWe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, V.jsx)(TWe, {
+ /* @__PURE__ */ (0, V.jsx)(wWe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, V.jsx)(EWe, {
+ m && /* @__PURE__ */ (0, V.jsx)(TWe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, V.jsx)(DWe, {
+ r && /* @__PURE__ */ (0, V.jsx)(EWe, {
id: d,
dataKey: e
})
] })] });
}
-var Z8 = () => null, Q8 = () => null;
-function vWe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, V.jsx)(r0, {
+var X8 = () => null, Z8 = () => null;
+function _We({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, V.jsx)(n0, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -75825,47 +75809,47 @@ function vWe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function yWe({ tick: e = {
+function vWe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = Y8();
- return r ? null : /* @__PURE__ */ (0, V.jsx)(_0, {
+ let { isLoading: r } = J8();
+ return r ? null : /* @__PURE__ */ (0, V.jsx)(g0, {
tick: e,
tickLine: t,
...n
});
}
-function bWe({ tick: e = {
+function yWe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = Y8();
- return i ? null : /* @__PURE__ */ (0, V.jsx)(d0, {
+ let { isLoading: i } = J8();
+ return i ? null : /* @__PURE__ */ (0, V.jsx)(u0, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function xWe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = Y8();
- return r ? null : /* @__PURE__ */ (0, V.jsx)(j6, {
+function bWe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = J8();
+ return r ? null : /* @__PURE__ */ (0, V.jsx)(A6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, V.jsx)(A6, {
+ content: /* @__PURE__ */ (0, V.jsx)(k6, {
selected: i,
roundness: t,
variant: e
})
});
}
-function SWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = Y8();
- return i ? null : /* @__PURE__ */ (0, V.jsx)(N6, {
+function xWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = J8();
+ return i ? null : /* @__PURE__ */ (0, V.jsx)(M6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, V.jsx)(M6, {
+ content: /* @__PURE__ */ (0, V.jsx)(j6, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -75873,22 +75857,22 @@ function SWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var CWe = (e, t, n, r) => {
+var SWe = (e, t, n, r) => {
let i = !1, a = !1;
return B.Children.forEach(e, (e) => {
if ((0, B.isValidElement)(e)) {
- if (e.type === Z8) {
+ if (e.type === X8) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, V.jsx)(H8, {
+ i = /* @__PURE__ */ (0, V.jsx)(V8, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === Q8) {
+ if (e.type === Z8) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, V.jsx)(H8, {
+ a = /* @__PURE__ */ (0, V.jsx)(V8, {
type: i,
dataKey: n,
chartId: t,
@@ -75900,7 +75884,7 @@ var CWe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, $8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {
+}, Q8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -75915,46 +75899,46 @@ var CWe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), wWe = ({ id: e, dataKey: t, config: n }) => {
- let r = k6(n[t] ?? {});
+}) }), CWe = ({ id: e, dataKey: t, config: n }) => {
+ let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, V.jsx)($8, {
+ children: /* @__PURE__ */ (0, V.jsx)(Q8, {
dataKey: t,
colorsCount: r
})
});
-}, TWe = ({ id: e, dataKey: t, config: n }) => {
- let r = k6(n[t] ?? {});
+}, wWe = ({ id: e, dataKey: t, config: n }) => {
+ let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, V.jsx)($8, {
+ children: /* @__PURE__ */ (0, V.jsx)(Q8, {
dataKey: t,
colorsCount: r
})
});
-}, EWe = ({ id: e, dataKey: t, config: n }) => {
- let r = k6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, TWe = ({ id: e, dataKey: t, config: n }) => {
+ let r = O6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, V.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, V.jsx)($8, {
+ children: /* @__PURE__ */ (0, V.jsx)(Q8, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, DWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
+}, EWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -75974,7 +75958,7 @@ var CWe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), OWe = (e) => [
+}), DWe = (e) => [
"A",
"B",
"C",
@@ -75983,20 +75967,20 @@ var CWe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [q8]: 30 + Math.random() * 70
+ [K8]: 30 + Math.random() * 70
}));
-function kWe(e, t = gWe) {
+function OWe(e, t = hWe) {
let [n, r] = (0, B.useState)(0);
return (0, B.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, K8);
+ }, G8);
return () => clearInterval(t);
- }, [e]), (0, B.useMemo)(() => OWe(t), [t, n]);
+ }, [e]), (0, B.useMemo)(() => DWe(t), [t, n]);
}
-var AWe = () => /* @__PURE__ */ (0, V.jsx)(u2, {
- dataKey: q8,
+var kWe = () => /* @__PURE__ */ (0, V.jsx)(l2, {
+ dataKey: K8,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -76004,30 +75988,30 @@ var AWe = () => /* @__PURE__ */ (0, V.jsx)(u2, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: K8,
+ animationDuration: G8,
animationEasing: "ease-in-out"
});
-X8.Radar = _We, X8.Dot = Z8, X8.ActiveDot = Q8, X8.PolarGrid = vWe, X8.PolarAngleAxis = yWe, X8.PolarRadiusAxis = bWe, X8.Tooltip = xWe, X8.Legend = SWe;
+Y8.Radar = gWe, Y8.Dot = X8, Y8.ActiveDot = Z8, Y8.PolarGrid = _We, Y8.PolarAngleAxis = vWe, Y8.PolarRadiusAxis = yWe, Y8.Tooltip = bWe, Y8.Legend = xWe;
//#endregion
//#region src/react/taste/charts.tsx
-var jWe = [
+var AWe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], MWe = [
+], jWe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], e5 = { value: {
+], $8 = { value: {
label: "标签命中",
- colors: K6(G6[3])
-} }, NWe = [
+ colors: G6(W6[3])
+} }, MWe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -76037,78 +76021,78 @@ var jWe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], PWe = 26, FWe = { radius: e5.value }, IWe = (e, t) => Math.sqrt(e / t);
-function LWe({ rows: e, label: t }) {
- let n = dWe(e);
+], NWe = 26, PWe = { radius: $8.value }, FWe = (e, t) => Math.sqrt(e / t);
+function IWe({ rows: e, label: t }) {
+ let n = uWe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: IWe(e.value, r)
+ radius: FWe(e.value, r)
}));
return /* @__PURE__ */ (0, V.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, V.jsxs)(X8, {
+ children: /* @__PURE__ */ (0, V.jsxs)(Y8, {
data: i,
- config: FWe,
+ config: PWe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, V.jsx)(X8.PolarGrid, {}),
- /* @__PURE__ */ (0, V.jsx)(X8.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, V.jsx)(X8.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, V.jsx)(Y8.PolarGrid, {}),
+ /* @__PURE__ */ (0, V.jsx)(Y8.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, V.jsx)(Y8.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, V.jsx)(X8.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, V.jsx)(Z6, { valueKey: "value" })
+ /* @__PURE__ */ (0, V.jsx)(Y8.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, V.jsx)(X6, { valueKey: "value" })
]
})
});
}
-function RWe({ rows: e, label: t }) {
- let n = z8(e, 8);
+function LWe({ rows: e, label: t }) {
+ let n = R8(e, 8);
return n.length ? /* @__PURE__ */ (0, V.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${NWe[n.length]}`,
- children: /* @__PURE__ */ (0, V.jsxs)(V6, {
+ className: `flex grow flex-col ${MWe[n.length]}`,
+ children: /* @__PURE__ */ (0, V.jsxs)(B6, {
data: n,
- config: e5,
+ config: $8,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: PWe },
+ chartProps: { maxBarSize: NWe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, V.jsx)(V6.YAxis, {
+ /* @__PURE__ */ (0, V.jsx)(B6.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, V.jsx)(V6.XAxis, {
+ /* @__PURE__ */ (0, V.jsx)(B6.XAxis, {
hide: !0,
- domain: Q6
+ domain: Z6
}),
- /* @__PURE__ */ (0, V.jsx)(V6.Bar, {
+ /* @__PURE__ */ (0, V.jsx)(B6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: $6("right")
+ label: Q6("right")
}
}),
- /* @__PURE__ */ (0, V.jsx)(Z6, {})
+ /* @__PURE__ */ (0, V.jsx)(X6, {})
]
})
}) : null;
}
-function zWe({ flows: e }) {
- let [t, n] = (0, B.useState)(null), r = fWe(e);
+function RWe({ flows: e }) {
+ let [t, n] = (0, B.useState)(null), r = dWe(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: U6,
+ className: H6,
children: [
- /* @__PURE__ */ (0, V.jsx)(W6, {
+ /* @__PURE__ */ (0, V.jsx)(U6, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -76116,7 +76100,7 @@ function zWe({ flows: e }) {
/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, V.jsxs)("svg", {
- viewBox: `0 0 ${B8.width} ${B8.height}`,
+ viewBox: `0 0 ${z8.width} ${z8.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -76130,7 +76114,7 @@ function zWe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${jWe[e.color]}`,
+ className: `outline-none transition-opacity ${AWe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -76164,15 +76148,15 @@ function zWe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? MWe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? jWe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, V.jsxs)("text", {
- x: V8[e.side],
+ x: B8[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [pWe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {
- x: V8[e.side],
+ children: [fWe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {
+ x: B8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -76189,11 +76173,11 @@ function zWe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var BWe = 10, t5 = vE(dM, fM, "text-body-2-medium"), n5 = `${wE()} flex flex-col gap-4`, r5 = "rounded-xl bg-background-primary-default p-3", VWe = "读取运行 Peach 的这台电脑上的浏览记录", HWe = "导入或读取浏览记录后,这里会列出已采集设备。", UWe = "馆藏里暂时没有对得上浏览信号的标签。", WWe = "采集浏览记录后,这里会显示聚合后的口味证据。", GWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", KWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", qWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", JWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", YWe = "这个数据源将不再用于口味分析。原始导出文件保留。", i5 = "peach-taste-guide-dismissed";
-function a5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var zWe = 10, e5 = gE(uM, dM, "text-body-2-medium"), t5 = `${SE()} flex flex-col gap-4`, n5 = "rounded-xl bg-background-primary-default p-3", BWe = "读取运行 Peach 的这台电脑上的浏览记录", VWe = "导入或读取浏览记录后,这里会列出已采集设备。", HWe = "馆藏里暂时没有对得上浏览信号的标签。", UWe = "采集浏览记录后,这里会显示聚合后的口味证据。", WWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", GWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", KWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", qWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", JWe = "这个数据源将不再用于口味分析。原始导出文件保留。", r5 = "peach-taste-guide-dismissed";
+function i5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: iM(),
- children: /* @__PURE__ */ (0, V.jsx)(cM, {
+ className: rM(),
+ children: /* @__PURE__ */ (0, V.jsx)(sM, {
label: t,
icon: e,
accent: i,
@@ -76202,7 +76186,7 @@ function a5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function o5({ name: e, domain: t }) {
+function a5({ name: e, domain: t }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, V.jsx)("img", {
@@ -76216,22 +76200,22 @@ function o5({ name: e, domain: t }) {
})]
});
}
-function XWe({ html: e }) {
+function YWe({ html: e }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${eL}`,
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${nL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function ZWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, V.jsx)(TE, {
+function XWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
+ if (!e.length) return /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: TT,
+ icon: wT,
title: "暂无足够证据",
children: r
});
- let a = uWe(e);
- return /* @__PURE__ */ (0, V.jsx)(c8, {
- previewCount: BWe,
+ let a = lWe(e);
+ return /* @__PURE__ */ (0, V.jsx)(s8, {
+ previewCount: zWe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
@@ -76250,15 +76234,15 @@ function ZWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, V.jsx)(o5, {
+ n === "domain" ? /* @__PURE__ */ (0, V.jsx)(a5, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, V.jsx)(o5, {
+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, V.jsx)(a5, {
name: e.name,
domain: s
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(XWe, { html: w(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(YWe, { html: w(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
image_version: e.image_version,
@@ -76271,10 +76255,10 @@ function ZWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: e.name
}), /* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: lWe(e)
+ children: cWe(e)
})]
}),
- o ? /* @__PURE__ */ (0, V.jsx)(uT, {
+ o ? /* @__PURE__ */ (0, V.jsx)(lT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -76294,31 +76278,31 @@ function ZWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
})
});
}
-function s5({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, V.jsxs)(Jk, {
- className: `${wE({ padding: "none" })} flex flex-col`,
+function o5({ label: e, panels: t, onSignal: n }) {
+ return /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ className: `${SE({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, V.jsx)($k, {
+ children: /* @__PURE__ */ (0, V.jsx)(Zk, {
"aria-label": e,
- className: tA,
- children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(Xk, {
+ className: $k,
+ children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(Jk, {
id: e.id,
- className: nA,
+ className: eA,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Zk, {
+ }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Yk, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(ZWe, {
+ children: /* @__PURE__ */ (0, V.jsx)(XWe, {
...e.props,
onSignal: n
})
}, e.id))]
});
}
-function QWe({ data: e, onSignal: t, navigate: n }) {
+function ZWe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -76333,7 +76317,7 @@ function QWe({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: n5,
+ className: t5,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, V.jsxs)("header", {
@@ -76359,7 +76343,7 @@ function QWe({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${r5}`,
+ className: `flex min-w-0 flex-col gap-1 ${n5}`,
children: [/* @__PURE__ */ (0, V.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -76374,7 +76358,7 @@ function QWe({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${r5} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${n5} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, V.jsx)("b", {
@@ -76384,44 +76368,44 @@ function QWe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, V.jsx)(uT, {
+ }), /* @__PURE__ */ (0, V.jsx)(lT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: TT,
+ icon: wT,
title: "还没有可探索的入口",
- children: UWe
+ children: HWe
})
]
});
}
-function $We({ onboarding: e, done: t }) {
+function QWe({ onboarding: e, done: t }) {
let [n, r] = (0, B.useState)(() => {
try {
- return localStorage.getItem(i5) === "1";
+ return localStorage.getItem(r5) === "1";
} catch {
return !1;
}
});
return t || n ? null : /* @__PURE__ */ (0, V.jsx)("div", {
- className: wE({
+ className: SE({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, V.jsxs)(GE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: KWe
+ children: GWe
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: qWe
+ children: KWe
}),
/* @__PURE__ */ (0, V.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -76451,7 +76435,7 @@ function $We({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: JWe
+ children: qWe
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "self-start",
@@ -76460,7 +76444,7 @@ function $We({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(i5, "1");
+ localStorage.setItem(r5, "1");
} catch {}
r(!0);
},
@@ -76471,7 +76455,7 @@ function $We({ onboarding: e, done: t }) {
})
});
}
-function eGe({ busy: e, onRefresh: t, onImport: n }) {
+function $We({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -76480,15 +76464,15 @@ function eGe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: mT,
- title: VWe,
+ leadingIcon: pT,
+ title: BWe,
onClick: t,
...X(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, V.jsx)(J, {
ref: r,
iconOnly: !0,
- leadingIcon: cT,
+ leadingIcon: sT,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -76497,29 +76481,29 @@ function eGe({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, V.jsx)(tk, {
+ }), /* @__PURE__ */ (0, V.jsx)($O, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: uM,
- children: /* @__PURE__ */ (0, V.jsxs)(lM, {
+ className: lM,
+ children: /* @__PURE__ */ (0, V.jsxs)(cM, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
- className: t5,
+ className: e5,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, V.jsx)(mT, {
+ children: [/* @__PURE__ */ (0, V.jsx)(pT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
- className: t5,
+ className: e5,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, V.jsx)(ET, {
+ children: [/* @__PURE__ */ (0, V.jsx)(TT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -76527,15 +76511,15 @@ function eGe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function tGe({ sources: e, window: t, toast: n }) {
- let r = OS({
- mutationFn: (e) => iWe(e, t),
+function eGe({ sources: e, window: t, toast: n }) {
+ let r = DS({
+ mutationFn: (e) => rWe(e, t),
onSuccess: (e) => {
- z.setQueryData(I8(t), e.dashboard), n("已移除口味数据源");
+ z.setQueryData(F8(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: n5,
+ className: t5,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, V.jsx)("h3", {
@@ -76549,14 +76533,14 @@ function tGe({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${r5}`,
+ className: `flex min-w-0 items-center gap-3 ${n5}`,
children: [
/* @__PURE__ */ (0, V.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(ET, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(TT, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, V.jsx)(hT, {
+ }) : /* @__PURE__ */ (0, V.jsx)(mT, {
"aria-hidden": !0,
className: "size-4"
})
@@ -76576,12 +76560,12 @@ function tGe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: gT,
+ leadingIcon: hT,
...X(r.isPending),
onClick: () => {
r.isPending || Te({
title: "移除口味数据源",
- body: YWe,
+ body: JWe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -76589,32 +76573,32 @@ function tGe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: hT,
+ icon: mT,
title: "还没有数据源",
- children: HWe
+ children: VWe
})
]
});
}
-function nGe(e) {
- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = TS({
- queryKey: I8(a),
- queryFn: ({ signal: e }) => L8(a, e),
- placeholderData: AS.keepPreviousData
- }), { job: d, running: f, outcome: p, start: m } = kM({
- queryKey: $Ue,
- queryFn: ({ signal: e }) => tWe(e),
- start: () => rWe(a),
- idlePollMs: oWe,
+function tGe(e) {
+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = wS({
+ queryKey: F8(a),
+ queryFn: ({ signal: e }) => I8(a, e),
+ placeholderData: kS.keepPreviousData
+ }), { job: d, running: f, outcome: p, start: m } = OM({
+ queryKey: QUe,
+ queryFn: ({ signal: e }) => eWe(e),
+ start: () => nWe(a),
+ idlePollMs: aWe,
onFinish: (e) => {
e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
- }), h = OS({
- mutationFn: (e) => aWe(e),
+ }), h = DS({
+ mutationFn: (e) => iWe(e),
onSuccess: (e) => {
- z.setQueryData(I8("all"), e.dashboard), o("all"), r("已导入口味数据");
+ z.setQueryData(F8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), g = (e) => {
let t = e.currentTarget.files?.[0];
@@ -76622,47 +76606,47 @@ function nGe(e) {
}, _ = () => {
f || m.isPending || (m.reset(), m.mutate());
}, v = u.data;
- if (!v) return /* @__PURE__ */ (0, V.jsx)(DE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!v) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "口味分析读取失败",
children: u.error ? W(u.error) : "读取口味分析失败"
}) });
let y = v.summary || {}, b = v.coverage || {}, x = v.rankings || {}, S = v.storage || {}, C = x.browser_categories || [], w = v.gaps || [], T = b.tagged || 0, E = b.identified || 0, D = m.error ? W(m.error) : h.error ? W(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, V.jsxs)(DE, { children: [
- /* @__PURE__ */ (0, V.jsxs)(Jk, {
+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(Kk, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, V.jsxs)($k, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Zk, {
"aria-label": "口味证据来源",
- className: tA,
- children: [/* @__PURE__ */ (0, V.jsx)(Xk, {
+ className: $k,
+ children: [/* @__PURE__ */ (0, V.jsx)(Jk, {
id: "browser",
- className: nA,
+ className: eA,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, V.jsx)(Xk, {
+ }), /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "peach",
- className: nA,
+ className: eA,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: eWe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(DM, {
+ children: $Ue.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(eGe, {
+ /* @__PURE__ */ (0, V.jsx)($We, {
busy: f || m.isPending || h.isPending,
onRefresh: _,
onImport: () => l.current?.click()
@@ -76678,7 +76662,7 @@ function nGe(e) {
]
})]
}),
- /* @__PURE__ */ (0, V.jsx)($We, {
+ /* @__PURE__ */ (0, V.jsx)(QWe, {
onboarding: i,
done: !!(y.history_sources || v.updated_at)
}),
@@ -76686,48 +76670,48 @@ function nGe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, V.jsx)(SM, {
+ f ? /* @__PURE__ */ (0, V.jsx)(xM, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- h.isPending ? /* @__PURE__ */ (0, V.jsx)(SM, { label: "正在导入历史文件" }) : null,
+ h.isPending ? /* @__PURE__ */ (0, V.jsx)(xM, { label: "正在导入历史文件" }) : null,
D ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: D
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Zk, {
+ /* @__PURE__ */ (0, V.jsxs)(Yk, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: aM,
+ className: iM,
children: [
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 0,
- icon: bT,
+ icon: yT,
term: "浏览记录",
figure: Number(y.history_visits || 0).toLocaleString(),
- detail: `${y.history_sources || 0} 个数据源 · ${R8(y.range_start)}—${R8(y.range_end)}`
+ detail: `${y.history_sources || 0} 个数据源 · ${L8(y.range_start)}—${L8(y.range_end)}`
}),
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 1,
- icon: ST,
+ icon: xT,
term: "口味维度",
figure: C.length.toLocaleString(),
detail: C[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 2,
- icon: TT,
+ icon: wT,
term: "浏览候选",
figure: w.length.toLocaleString()
}),
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 3,
- icon: hT,
+ icon: mT,
term: "私有导出",
figure: Number(S.exports || 0).toLocaleString(),
detail: pe(S.bytes || 0)
@@ -76735,7 +76719,7 @@ function nGe(e) {
]
}),
/* @__PURE__ */ (0, V.jsxs)("section", {
- className: `${n5} md:flex-row md:gap-6`,
+ className: `${t5} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -76744,29 +76728,29 @@ function nGe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, V.jsx)(LWe, {
+ /* @__PURE__ */ (0, V.jsx)(IWe, {
rows: C,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: v.updated_at ? `更新于 ${R8(v.updated_at)}` : "尚未采集浏览记录"
+ children: v.updated_at ? `更新于 ${L8(v.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: C.length ? /* @__PURE__ */ (0, V.jsx)(RWe, {
+ children: C.length ? /* @__PURE__ */ (0, V.jsx)(LWe, {
rows: C,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, V.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {
shell: "plain",
- icon: TT,
+ icon: wT,
title: "暂无口味维度",
- children: WWe
+ children: UWe
})
})]
}),
- /* @__PURE__ */ (0, V.jsx)(s8, {
+ /* @__PURE__ */ (0, V.jsx)(o8, {
activity: v.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -76778,8 +76762,8 @@ function nGe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, V.jsx)(zWe, { flows: v.creator_flows }),
- /* @__PURE__ */ (0, V.jsx)(s5, {
+ /* @__PURE__ */ (0, V.jsx)(RWe, { flows: v.creator_flows }),
+ /* @__PURE__ */ (0, V.jsx)(o5, {
label: "浏览器口味维度",
onSignal: t,
panels: [
@@ -76820,49 +76804,49 @@ function nGe(e) {
rows: w,
kind: "",
visual: "none",
- empty: GWe
+ empty: WWe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Zk, {
+ /* @__PURE__ */ (0, V.jsxs)(Yk, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: aM,
+ className: iM,
children: [
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 0,
- icon: vT,
+ icon: _T,
term: "Peach 看过",
figure: Number(y.peach_items || 0).toLocaleString(),
- detail: sWe(y.peach_seconds || 0)
+ detail: oWe(y.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 1,
- icon: yae,
+ icon: bae,
term: "喜欢",
figure: Number(y.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 2,
- icon: vae,
+ icon: yae,
term: "不合口味",
figure: Number(y.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, V.jsx)(a5, {
+ /* @__PURE__ */ (0, V.jsx)(i5, {
accent: 3,
- icon: ST,
+ icon: xT,
term: "有标签",
figure: T.toLocaleString()
})
]
}),
/* @__PURE__ */ (0, V.jsxs)("section", {
- className: `${n5} md:flex-row md:gap-6`,
+ className: `${t5} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -76882,18 +76866,18 @@ function nGe(e) {
]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, V.jsx)(c5, {
+ children: [/* @__PURE__ */ (0, V.jsx)(s5, {
term: "有标签",
value: T,
rest: b.untagged || 0
- }), /* @__PURE__ */ (0, V.jsx)(c5, {
+ }), /* @__PURE__ */ (0, V.jsx)(s5, {
term: "有身份",
value: E,
rest: b.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(s5, {
+ /* @__PURE__ */ (0, V.jsx)(o5, {
label: "Peach 口味维度",
onSignal: t,
panels: [
@@ -76933,19 +76917,19 @@ function nGe(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(QWe, {
+ /* @__PURE__ */ (0, V.jsx)(ZWe, {
data: v,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, V.jsx)(tGe, {
+ /* @__PURE__ */ (0, V.jsx)(eGe, {
sources: v.sources || [],
window: a,
toast: r
})
] });
}
-function c5({ term: e, value: t, rest: n }) {
+function s5({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -76958,7 +76942,7 @@ function c5({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, V.jsx)(kE, {
+ }), /* @__PURE__ */ (0, V.jsx)(DE, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -76967,18 +76951,18 @@ function c5({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-function rGe(e, t, n) {
+function nGe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- u5(r) ? n(r) : t.openManage(e);
+ l5(r) ? n(r) : t.openManage(e);
}
-var l5 = {
+var c5 = {
"/stats": {
- prefetch: (e, t) => Ybe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(MUe, {
+ prefetch: (e, t) => Kbe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(jUe, {
tagLabel: ot,
onTag: t.openTag,
configurable: e.configurable,
@@ -76988,8 +76972,8 @@ var l5 = {
})
},
"/taste": {
- prefetch: (e, t) => nWe("all", t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(nGe, {
+ prefetch: (e, t) => tWe("all", t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(tGe, {
onSignal: t.openTasteSignal,
navigate: n,
toast: (e) => t.receipt(e),
@@ -76997,8 +76981,8 @@ var l5 = {
})
},
"/review": {
- prefetch: (e, t) => pue(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Bve, {
+ prefetch: (e, t) => mue(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Lve, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -77008,24 +76992,24 @@ var l5 = {
})
},
"/data-cleanup": {
- prefetch: (e, t) => ede(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(hfe, {
+ prefetch: (e, t) => tde(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(gfe, {
failure: t.failure,
- open: (e) => rGe(e, t, n),
+ open: (e) => nGe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
- prefetch: (e, t) => Ole(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(dme, {
+ prefetch: (e, t) => kle(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(lme, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
})
},
"/quality-goals": {
- prefetch: (e, t) => Kle(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(wve, {
+ prefetch: (e, t) => qle(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(xve, {
openItem: t.openItem,
javTitleHtml: at,
javDisplayName: it,
@@ -77034,19 +77018,19 @@ var l5 = {
})
},
"/scraping": {
- prefetch: (e, t) => qve(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(eye, { toast: (e) => t.toast(e) })
+ prefetch: (e, t) => Wve(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Zve, { toast: (e) => t.toast(e) })
},
"/configuration": {
- prefetch: (e, t) => _R(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(fbe, {
+ prefetch: (e, t) => vR(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(lbe, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial
})
},
"/diagnostics": {
- prefetch: (e, t) => fme(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(gme, {
+ prefetch: (e, t) => ume(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(mme, {
navigate: n,
openItem: t.openItem,
receipt: (e) => t.receipt(e),
@@ -77056,12 +77040,12 @@ var l5 = {
})
},
"/activity": {
- prefetch: (e, t) => koe(t),
- page: () => /* @__PURE__ */ (0, V.jsx)(Koe, {})
+ prefetch: (e, t) => joe(t),
+ page: () => /* @__PURE__ */ (0, V.jsx)(Joe, {})
},
"/follow-manage": {
- prefetch: (e, t) => Jme(t, e.tab),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(T_e, {
+ prefetch: (e, t) => Kme(t, e.tab),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(S_e, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -77069,10 +77053,10 @@ var l5 = {
openFollow: t.openFollow
})
}
-}, u5 = (e) => Object.hasOwn(l5, e), d5 = {
+}, l5 = (e) => Object.hasOwn(c5, e), u5 = {
"/playlists": {
- prefetch: (e, t) => uve(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Sve, {
+ prefetch: (e, t) => sve(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(yve, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -77081,12 +77065,12 @@ var l5 = {
})
},
"/follow": {
- prefetch: (e, t) => nhe(e, t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(Ehe, { ...e })
+ prefetch: (e, t) => ehe(e, t),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(whe, { ...e })
}
-}, f5 = (e) => Object.hasOwn(d5, e), p5 = {
- prefetch: (e, t) => Ife(e, t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(V_e, {
+}, d5 = (e) => Object.hasOwn(u5, e), f5 = {
+ prefetch: (e, t) => Lfe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(R_e, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -77099,103 +77083,103 @@ var l5 = {
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, p5 = {
+ "/performers": f5,
+ "/creators": f5,
+ "/studios": f5,
+ "/agencies": f5,
+ "/tags": f5
}, m5 = {
- "/performers": p5,
- "/creators": p5,
- "/studios": p5,
- "/agencies": p5,
- "/tags": p5
+ prefetch: (e) => Efe(e),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(eme, { ...e })
}, h5 = {
- prefetch: (e) => Tfe(e),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(nme, { ...e })
+ "/performers/*": m5,
+ "/studios/*": m5,
+ "/creators/*": m5,
+ "/series/*": m5,
+ "/agencies/*": m5
}, g5 = {
- "/performers/*": h5,
- "/studios/*": h5,
- "/creators/*": h5,
- "/series/*": h5,
- "/agencies/*": h5
-}, _5 = {
"/": {
- prefetch: (e, t) => jre(e, t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(EA, { ...e })
+ prefetch: (e, t) => Are(e, t),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(wA, { ...e })
},
"/junk-files": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)(nve, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)($_e, { ...e })
}
-}, v5 = (e) => Object.hasOwn(_5, e), iGe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(cve, { ...e }) : /* @__PURE__ */ (0, V.jsx)(wM, { ...e }), y5 = {
+}, _5 = (e) => Object.hasOwn(g5, e), rGe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(ave, { ...e }) : /* @__PURE__ */ (0, V.jsx)(CM, { ...e }), v5 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)(Zce, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)($ce, { ...e })
},
"feed-new": {
- prefetch: (e) => bfe(e),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(_me, { ...e })
+ prefetch: (e) => xfe(e),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(hme, { ...e })
},
"library-processing": {
- prefetch: (e, t) => zA(t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(iGe, { ...e })
+ prefetch: (e, t) => RA(t),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(rGe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)(aye, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(nye, { ...e })
}
-}, b5 = (e) => Object.hasOwn(y5, e), x5 = {
+}, y5 = (e) => Object.hasOwn(v5, e), b5 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Ane, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(jne, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Nne, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Pne, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Gie, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Kie, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Pie, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Fie, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Fbe, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Mbe, {})
}
-}, S5 = (e) => Object.hasOwn(x5, e), aGe = [
+}, x5 = (e) => Object.hasOwn(b5, e), iGe = [
"/",
"/unseen",
"/watch-later",
"/flagged",
"/trash",
"/junk-files"
-], oGe = [
- ...Object.keys(l5),
- ...Object.keys(d5),
- ...Object.keys(m5),
- ...Object.keys(g5),
- ...aGe
-], C5 = (e) => u5(e) || f5(e) || Object.hasOwn(m5, e) || Object.hasOwn(g5, e) || v5(e) || b5(e) || S5(e);
-function w5(e) {
- return u5(e) ? l5[e] : f5(e) ? d5[e] : v5(e) ? _5[e] : b5(e) ? y5[e] : S5(e) ? x5[e] : Object.hasOwn(m5, e) ? m5[e] : g5[e];
+], aGe = [
+ ...Object.keys(c5),
+ ...Object.keys(u5),
+ ...Object.keys(p5),
+ ...Object.keys(h5),
+ ...iGe
+], S5 = (e) => l5(e) || d5(e) || Object.hasOwn(p5, e) || Object.hasOwn(h5, e) || _5(e) || y5(e) || x5(e);
+function C5(e) {
+ return l5(e) ? c5[e] : d5(e) ? u5[e] : _5(e) ? g5[e] : y5(e) ? v5[e] : x5(e) ? b5[e] : Object.hasOwn(p5, e) ? p5[e] : h5[e];
}
-function sGe(e, t, n) {
- return C5(e) ? w5(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function oGe(e, t, n) {
+ return S5(e) ? C5(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function cGe(e, t, n, r) {
- return w5(e).page(t, n, r);
+function sGe(e, t, n, r) {
+ return C5(e).page(t, n, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var lGe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, uGe = /^[\\/]{2}/;
-function dGe(e, t) {
+var cGe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, lGe = /^[\\/]{2}/;
+function uGe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-function T5(e, t) {
+function w5(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function E5(e, t) {
+function T5(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -77203,10 +77187,10 @@ function E5(e, t) {
} catch {}
}
}
-function fGe({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function dGe({ 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 D5(e) {
+function E5(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -77218,21 +77202,21 @@ function D5(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function pGe(e, t, n = "/") {
- return mGe(e, t, n, !1);
+function fGe(e, t, n = "/") {
+ return pGe(e, t, n, !1);
}
-function mGe(e, t, n, r, i) {
- let a = P5((typeof t == "string" ? D5(t) : t).pathname || "/", n);
+function pGe(e, t, n, r, i) {
+ let a = N5((typeof t == "string" ? E5(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? hGe(e), s = null, c = OGe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = DGe(o[e], c, r);
+ let o = i ?? mGe(e), s = null, c = DGe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = EGe(o[e], c, r);
return s;
}
-function hGe(e) {
- let t = O5(e);
- return gGe(t), t;
+function mGe(e) {
+ let t = D5(e);
+ return hGe(t), t;
}
-function O5(e, t = [], n = [], r = "", i = !1) {
+function D5(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -77242,14 +77226,14 @@ function O5(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- T5(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);
+ w5(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 = R5([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (T5(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), O5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
+ let l = L5([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (w5(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), D5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
path: l,
- score: TGe(l, e.index),
+ score: wGe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = N5(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = M5(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -77260,68 +77244,68 @@ function O5(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 k5(e.path)) a(e, t, !0, n);
+ else for (let n of O5(e.path)) a(e, t, !0, n);
}), t;
}
-function k5(e) {
+function O5(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 = k5(r.join("/")), s = [];
+ let o = O5(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 gGe(e) {
- e.sort((e, t) => e.score === t.score ? EGe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function hGe(e) {
+ e.sort((e, t) => e.score === t.score ? TGe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var _Ge = /^:[\w-]+$/, vGe = /^:[\w-]+/, yGe = 3.5, bGe = 3, xGe = 2, SGe = 1, CGe = 10, wGe = -2, A5 = (e) => e === "*";
-function TGe(e, t) {
+var gGe = /^:[\w-]+$/, _Ge = /^:[\w-]+/, vGe = 3.5, yGe = 3, bGe = 2, xGe = 1, SGe = 10, CGe = -2, k5 = (e) => e === "*";
+function wGe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(A5) && (r += wGe), t && (r += xGe), n.filter((e) => !A5(e)).reduce((e, t) => e + (_Ge.test(t) ? bGe : vGe.test(t) ? yGe : t === "" ? SGe : CGe), r);
+ return n.some(k5) && (r += CGe), t && (r += bGe), n.filter((e) => !k5(e)).reduce((e, t) => e + (gGe.test(t) ? yGe : _Ge.test(t) ? vGe : t === "" ? xGe : SGe), r);
}
-function EGe(e, t) {
+function TGe(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;
}
-function DGe(e, t, n = !1) {
+function EGe(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? M5(u, l, s.matcher, s.compiledParams) : j5(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = j5({
+ }, d = s.matcher && s.compiledParams ? j5(u, l, s.matcher, s.compiledParams) : A5(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = A5({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: R5([a, d.pathname]),
- pathnameBase: NGe(R5([a, d.pathnameBase])),
+ pathname: L5([a, d.pathname]),
+ pathnameBase: MGe(L5([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = R5([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = L5([a, d.pathnameBase]));
}
return o;
}
-function j5(e, t) {
+function A5(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = N5(e.path, e.caseSensitive, e.end);
- return M5(e, t, n, r);
+ let [n, r] = M5(e.path, e.caseSensitive, e.end);
+ return j5(e, t, n, r);
}
-function M5(e, t, n, r) {
+function j5(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = z5(a, 1), s = i.slice(1);
+ let a = i[0], o = R5(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = z5(a.slice(0, a.length - e.length), 1);
+ o = R5(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -77331,8 +77315,8 @@ function M5(e, t, n, r) {
pattern: e
};
}
-function N5(e, t = !1, n = !0) {
- E5(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 M5(e, t = !1, n = !0) {
+ T5(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,
@@ -77345,46 +77329,46 @@ function N5(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function OGe(e) {
+function DGe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return E5(!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 T5(!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 P5(e, t) {
+function N5(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 kGe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? D5(e) : e, a;
- return n ? (n = L5(n), a = n.startsWith("/") || n.startsWith("\\") ? F5(n.substring(1), "/") : F5(n, t)) : a = t, {
+function OGe(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? E5(e) : e, a;
+ return n ? (n = I5(n), a = n.startsWith("/") || n.startsWith("\\") ? P5(n.substring(1), "/") : P5(n, t)) : a = t, {
pathname: a,
- search: PGe(r),
- hash: FGe(i)
+ search: NGe(r),
+ hash: PGe(i)
};
}
-function F5(e, t) {
- let n = z5(t).split("/");
+function P5(e, t) {
+ let n = R5(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function I5(e, t, n, r) {
+function F5(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 AGe(e) {
+function kGe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function jGe(e) {
- let t = AGe(e);
+function AGe(e) {
+ let t = kGe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function MGe(e, t, n, r = !1) {
+function jGe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = D5(e) : (i = { ...e }, T5(!i.pathname || !i.pathname.includes("?"), I5("?", "pathname", "search", i)), T5(!i.pathname || !i.pathname.includes("#"), I5("#", "pathname", "hash", i)), T5(!i.search || !i.search.includes("#"), I5("#", "search", "hash", i)));
+ typeof e == "string" ? i = E5(e) : (i = { ...e }, w5(!i.pathname || !i.pathname.includes("?"), F5("?", "pathname", "search", i)), w5(!i.pathname || !i.pathname.includes("#"), F5("#", "pathname", "hash", i)), w5(!i.search || !i.search.includes("#"), F5("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -77396,16 +77380,16 @@ function MGe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = kGe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = OGe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var L5 = (e) => e.replace(/[\\/]{2,}/g, "/"), R5 = (e) => L5(e.join("/"));
-function z5(e, t = 0) {
+var I5 = (e) => e.replace(/[\\/]{2,}/g, "/"), L5 = (e) => I5(e.join("/"));
+function R5(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 NGe = (e) => z5(e).replace(/^\/*/, "/"), PGe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, FGe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, IGe = class {
+var MGe = (e) => R5(e).replace(/^\/*/, "/"), NGe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, PGe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, FGe = class {
status;
statusText;
data;
@@ -77415,26 +77399,26 @@ var NGe = (e) => z5(e).replace(/^\/*/, "/"), PGe = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function LGe(e) {
+function IGe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function RGe(e) {
- return R5(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function LGe(e) {
+ return L5(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var B5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function zGe(e, t) {
+var z5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function RGe(e, t) {
let n = e;
- if (typeof n != "string" || !lGe.test(n)) return {
+ if (typeof n != "string" || !cGe.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (B5) try {
- let e = new URL(window.location.href), r = uGe.test(n) ? new URL(dGe(n, e.protocol)) : new URL(n), a = P5(r.pathname, t);
+ if (z5) try {
+ let e = new URL(window.location.href), r = lGe.test(n) ? new URL(uGe(n, e.protocol)) : new URL(n), a = N5(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- E5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ T5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -77444,45 +77428,45 @@ function zGe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var V5 = new URL("http://localhost");
-function H5(e) {
+var B5 = new URL("http://localhost");
+function V5(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), V5);
+ return new URL(e.createHref("/"), B5);
} catch {
- return V5;
+ return B5;
}
}
-function U5(e, t) {
+function H5(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function BGe(e, t) {
+function zGe(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function W5(e, t, n, r) {
+function U5(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 && !U5(i, n), s = !U5(a, n);
+ let a = new URL(t, n), o = i != null && !H5(i, n), s = !H5(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !BGe(e, i) || !U5(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !zGe(e, i) || !H5(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var G5 = [
+var W5 = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(G5);
-var VGe = ["GET", ...G5];
-new Set(VGe);
-var HGe = [
+new Set(W5);
+var BGe = ["GET", ...W5];
+new Set(BGe);
+var VGe = [
"about:",
"blob:",
"chrome:",
@@ -77494,85 +77478,85 @@ var HGe = [
"filesystem:",
"javascript:"
];
-function UGe(e) {
+function HGe(e) {
try {
- return HGe.includes(new URL(e).protocol);
+ return VGe.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
+var G5 = B.createContext(null);
+G5.displayName = "DataRouter";
+var UGe = B.createContext(null);
+UGe.displayName = "DataRouterState";
var K5 = B.createContext(null);
-K5.displayName = "DataRouter";
+K5.displayName = "DataRouterData";
var WGe = B.createContext(null);
-WGe.displayName = "DataRouterState";
-var q5 = B.createContext(null);
-q5.displayName = "DataRouterData";
-var GGe = B.createContext(null);
-GGe.displayName = "DataRouterNavigation";
-var KGe = B.createContext(!1), qGe = B.createContext({ isTransitioning: !1 });
-qGe.displayName = "ViewTransition";
+WGe.displayName = "DataRouterNavigation";
+var GGe = B.createContext(!1), KGe = B.createContext({ isTransitioning: !1 });
+KGe.displayName = "ViewTransition";
+var qGe = B.createContext(null);
+qGe.displayName = "Fetchers";
var JGe = B.createContext(null);
-JGe.displayName = "Fetchers";
-var YGe = B.createContext(null);
-YGe.displayName = "Await";
+JGe.displayName = "Await";
+var q5 = B.createContext(null);
+q5.displayName = "Navigation";
var J5 = B.createContext(null);
-J5.displayName = "Navigation";
-var Y5 = B.createContext(null);
-Y5.displayName = "Location";
-var X5 = B.createContext({
+J5.displayName = "Location";
+var Y5 = B.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-X5.displayName = "Route";
-var Z5 = B.createContext(!1);
-Z5.displayName = "IsDataRoute";
-var Q5 = B.createContext(void 0);
-Q5.displayName = "RouteId";
-var $5 = B.createContext(null);
-$5.displayName = "RouteError";
+Y5.displayName = "Route";
+var X5 = B.createContext(!1);
+X5.displayName = "IsDataRoute";
+var Z5 = B.createContext(void 0);
+Z5.displayName = "RouteId";
+var Q5 = B.createContext(null);
+Q5.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var e7 = "REACT_ROUTER_ERROR", XGe = "REDIRECT", ZGe = "ROUTE_ERROR_RESPONSE";
-function QGe(e) {
- if (e.startsWith(`${e7}:${XGe}:{`)) try {
+var $5 = "REACT_ROUTER_ERROR", YGe = "REDIRECT", XGe = "ROUTE_ERROR_RESPONSE";
+function ZGe(e) {
+ if (e.startsWith(`${$5}:${YGe}:{`)) 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 $Ge(e) {
- if (e.startsWith(`${e7}:${ZGe}:{`)) try {
+function QGe(e) {
+ if (e.startsWith(`${$5}:${XGe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new IGe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new FGe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
+function e7() {
+ return B.useContext(J5) != null;
+}
function t7() {
- return B.useContext(Y5) != null;
+ return w5(e7(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(J5).location;
}
-function n7() {
- return T5(t7(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(Y5).location;
+var n7 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function $Ge() {
+ return B.useContext(X5) ? dKe() : eKe();
}
-var r7 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function eKe() {
- return B.useContext(Z5) ? fKe() : tKe();
-}
-function tKe() {
- T5(t7(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = B.useContext(K5), { basename: t, navigator: n } = B.useContext(J5), { matches: r } = B.useContext(X5), { pathname: i } = n7(), a = JSON.stringify(jGe(r)), o = B.useRef(!1);
+ w5(e7(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = B.useContext(G5), { basename: t, navigator: n } = B.useContext(q5), { matches: r } = B.useContext(Y5), { pathname: i } = t7(), a = JSON.stringify(AGe(r)), o = B.useRef(!1);
return B.useLayoutEffect(() => {
o.current = !0;
}), B.useCallback((r, s = {}) => {
- if (E5(o.current, r7), !o.current) return;
+ if (T5(o.current, n7), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = MGe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : R5([t, c.pathname])), W5(typeof r == "string" ? r : fGe(r), n.createHref(c), H5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = jGe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : L5([t, c.pathname])), U5(typeof r == "string" ? r : dGe(r), n.createHref(c), V5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -77582,19 +77566,19 @@ function tKe() {
]);
}
B.createContext(null);
-function nKe(e, t) {
- return i7(e, t);
+function tKe(e, t) {
+ return r7(e, t);
}
-function i7(e, t, n) {
- T5(t7(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = B.useContext(J5), { matches: i } = B.useContext(X5), a = i[i.length - 1], o = a ? a.params : {};
+function r7(e, t, n) {
+ w5(e7(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = B.useContext(q5), { matches: i } = B.useContext(Y5), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = n7(), l;
+ let c = t7(), l;
if (t) {
- let e = typeof t == "string" ? D5(t) : t;
- T5(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" ? E5(t) : t;
+ w5(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 !== "/") {
@@ -77602,13 +77586,13 @@ function i7(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- 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) : pGe(e, { pathname: d });
- let p = cKe(f && f.map((e) => Object.assign({}, e, {
+ 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) : fGe(e, { pathname: d });
+ let p = sKe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: R5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : R5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: L5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : L5([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__ */ B.createElement(Y5.Provider, { value: {
+ return t && p ? /* @__PURE__ */ B.createElement(J5.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -77621,14 +77605,14 @@ function i7(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function rKe() {
- let e = dKe(), t = LGe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function nKe() {
+ let e = uKe(), t = IGe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ B.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ B.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var iKe = /* @__PURE__ */ B.createElement(rKe, null), aKe = class extends B.Component {
+var rKe = /* @__PURE__ */ B.createElement(nKe, null), iKe = class extends B.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -77636,7 +77620,7 @@ var iKe = /* @__PURE__ */ B.createElement(rKe, null), aKe = class extends B.Comp
error: e.error
};
}
- static contextType = KGe;
+ static contextType = GGe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -77657,30 +77641,30 @@ var iKe = /* @__PURE__ */ B.createElement(rKe, null), aKe = class extends B.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = $Ge(e.digest);
+ let t = QGe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(X5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(Z5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(Q5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement($5.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(Y5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(X5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(Z5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement(Q5.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ B.createElement(oKe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ B.createElement(aKe, { error: e }, t) : t;
}
-}, a7 = /* @__PURE__ */ new WeakMap();
-function oKe({ children: e, error: t }) {
- let { basename: n, navigator: r } = B.useContext(J5);
+}, i7 = /* @__PURE__ */ new WeakMap();
+function aKe({ children: e, error: t }) {
+ let { basename: n, navigator: r } = B.useContext(q5);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = QGe(t.digest);
+ let e = ZGe(t.digest);
if (e) {
- let i = a7.get(t);
+ let i = i7.get(t);
if (i) throw i;
- let a = zGe(e.location, n), o = a.absoluteURL || a.to;
- if (W5(e.location, o, H5(r), "allow-explicit"), UGe(o)) throw Error("Invalid redirect location");
- if (B5 && !a7.get(t)) {
+ let a = RGe(e.location, n), o = a.absoluteURL || a.to;
+ if (U5(e.location, o, V5(r), "allow-explicit"), HGe(o)) throw Error("Invalid redirect location");
+ if (z5 && !i7.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 a7.set(t, n), n;
+ throw i7.set(t, n), n;
}
}
return /* @__PURE__ */ B.createElement("meta", {
@@ -77691,11 +77675,11 @@ function oKe({ children: e, error: t }) {
}
return e;
}
-function sKe({ routeContext: e, match: t, children: n }) {
- let r = B.useContext(K5);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(X5.Provider, { value: e }, /* @__PURE__ */ B.createElement(Z5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(Q5.Provider, { value: t.route.id }, n)));
+function oKe({ routeContext: e, match: t, children: n }) {
+ let r = B.useContext(G5);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(Y5.Provider, { value: e }, /* @__PURE__ */ B.createElement(X5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(Z5.Provider, { value: t.route.id }, n)));
}
-function cKe(e, t = [], n) {
+function sKe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -77706,7 +77690,7 @@ function cKe(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);
- T5(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));
+ w5(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) {
@@ -77726,16 +77710,16 @@ function cKe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: RGe(r.matches),
+ pattern: LGe(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || iKe, o && (s < 0 && c === 0 ? (pKe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || rKe, o && (s < 0 && c === 0 ? (fKe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(sKe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(oKe, {
match: n,
routeContext: {
outlet: e,
@@ -77745,7 +77729,7 @@ function cKe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(aKe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(iKe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -77760,44 +77744,44 @@ function cKe(e, t = [], n) {
}) : h();
}, null);
}
-function o7(e) {
+function a7(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
+function cKe(e) {
+ let t = B.useContext(G5);
+ return w5(t, a7(e)), t;
+}
function lKe(e) {
let t = B.useContext(K5);
- return T5(t, o7(e)), t;
+ return w5(t, a7(e)), t;
}
-function uKe(e) {
- let t = B.useContext(q5);
- return T5(t, o7(e)), t;
-}
-function s7(e) {
- let t = B.useContext(Q5);
- return T5(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function o7(e) {
+ let t = B.useContext(Z5);
+ return w5(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function dKe() {
- let e = B.useContext($5), t = uKe("useRouteError"), n = s7("useRouteError");
+function uKe() {
+ let e = B.useContext(Q5), t = lKe("useRouteError"), n = o7("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function fKe() {
- let { router: e } = lKe("useNavigate"), t = s7("useNavigate"), n = B.useRef(!1);
+function dKe() {
+ let { router: e } = cKe("useNavigate"), t = o7("useNavigate"), n = B.useRef(!1);
return B.useLayoutEffect(() => {
n.current = !0;
}), B.useCallback(async (r, i = {}) => {
- E5(n.current, r7), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ T5(n.current, n7), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var c7 = {};
-function pKe(e, t, n) {
- !t && !c7[e] && (c7[e] = !0, E5(!1, n));
+var s7 = {};
+function fKe(e, t, n) {
+ !t && !s7[e] && (s7[e] = !0, T5(!1, n));
}
-B.memo(mKe);
-function mKe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = B.useContext(K5);
- return T5(a, "You must render this element inside a <DataRouterContext.Provider> element"), i7(e, void 0, {
+B.memo(pKe);
+function pKe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = B.useContext(G5);
+ return w5(a, "You must render this element inside a <DataRouterContext.Provider> element"), r7(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -77805,11 +77789,11 @@ function mKe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function l7(e) {
- T5(!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 c7(e) {
+ w5(!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 hKe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- T5(!t7(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function mKe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ w5(!e7(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = B.useMemo(() => ({
basename: s,
navigator: i,
@@ -77822,9 +77806,9 @@ function hKe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = D5(n));
+ typeof n == "string" && (n = E5(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = B.useMemo(() => {
- let e = P5(l, s);
+ let e = N5(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -77846,27 +77830,27 @@ function hKe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return E5(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__ */ B.createElement(J5.Provider, { value: c }, /* @__PURE__ */ B.createElement(Y5.Provider, {
+ return T5(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__ */ B.createElement(q5.Provider, { value: c }, /* @__PURE__ */ B.createElement(J5.Provider, {
children: t,
value: h
}));
}
-function u7({ children: e, location: t }) {
- return nKe(d7(e), t);
+function l7({ children: e, location: t }) {
+ return tKe(u7(e), t);
}
B.Component;
-function d7(e, t = []) {
+function u7(e, t = []) {
let n = [];
return B.Children.forEach(e, (e, r) => {
if (!B.isValidElement(e)) return;
let i = [...t, r];
if (e.type === B.Fragment) {
- n.push.apply(n, d7(e.props.children, i));
+ n.push.apply(n, u7(e.props.children, i));
return;
}
- T5(e.type === l7, `[${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>`);
+ w5(e.type === c7, `[${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;
- T5(!a.index || !a.children, "An index route cannot have child routes.");
+ w5(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -77885,22 +77869,22 @@ function d7(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = d7(a.children, i)), n.push(o);
+ a.children && (o.children = u7(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/react/providers.tsx
-var f7 = null;
-function gKe() {
- return f7?.isConnected || (f7 = document.createElement("div"), f7.className = "peach-react", f7.dataset.reactOverlays = "", document.body.append(f7)), f7;
+var d7 = null;
+function hKe() {
+ return d7?.isConnected || (d7 = document.createElement("div"), d7.className = "peach-react", d7.dataset.reactOverlays = "", document.body.append(d7)), d7;
}
-function p7({ children: e }) {
- return /* @__PURE__ */ (0, V.jsx)(uS, {
+function f7({ children: e }) {
+ return /* @__PURE__ */ (0, V.jsx)(lS, {
client: z,
children: /* @__PURE__ */ (0, V.jsx)(rd, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, V.jsx)($v, {
- getContainer: gKe,
+ children: /* @__PURE__ */ (0, V.jsx)(Qv, {
+ getContainer: hKe,
children: e
})
})
@@ -77908,12 +77892,12 @@ function p7({ children: e }) {
}
//#endregion
//#region src/react/router/router.tsx
-var m7 = (0, B.createContext)(0), h7 = (0, B.createContext)(null);
-function _Ke({ children: e }) {
+var p7 = (0, B.createContext)(0), m7 = (0, B.createContext)(null);
+function gKe({ children: e }) {
let [t, n] = (0, B.useState)(() => ft.navigation);
- return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(m7.Provider, {
+ return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(p7.Provider, {
value: t.seq,
- children: /* @__PURE__ */ (0, V.jsx)(hKe, {
+ children: /* @__PURE__ */ (0, V.jsx)(mKe, {
location: t.location,
navigationType: t.action,
navigator: ft,
@@ -77921,44 +77905,44 @@ function _Ke({ children: e }) {
})
});
}
-function vKe() {
- let e = (0, B.useContext)(m7);
+function _Ke() {
+ let e = (0, B.useContext)(p7);
return (0, B.useLayoutEffect)(() => {
queueMicrotask(() => pt(e));
}, [e]), null;
}
-function yKe({ target: e }) {
- let t = eKe();
+function vKe({ target: e }) {
+ let t = $Ge();
return (0, B.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function bKe(e, t, n) {
+function yKe(e, t, n) {
let r = new URL(e, window.location.href);
- if (!u5(r.pathname)) {
+ if (!l5(r.pathname)) {
t.navigate(e);
return;
}
n(`${r.pathname}${r.search}${r.hash}`);
}
-function xKe() {
- let e = (0, B.useContext)(h7), [t, n] = (0, B.useState)(dt), r = (0, B.useRef)(null);
+function bKe() {
+ let e = (0, B.useContext)(m7), [t, n] = (0, B.useState)(dt), r = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => (n(dt()), ut((e, t) => {
t ? (0, $f.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, B.useMemo)(() => (t) => {
- e && r.current && bKe(t, e, r.current);
+ e && r.current && yKe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(yKe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(SKe, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(vKe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(xKe, {
entry: t,
- children: /* @__PURE__ */ (0, V.jsx)(CKe, {
+ children: /* @__PURE__ */ (0, V.jsx)(SKe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var SKe = class extends B.Component {
+var xKe = class extends B.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -77969,100 +77953,100 @@ var SKe = class extends B.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, CKe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {
- return C5(e.path) ? (0, $f.createPortal)(cGe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, SKe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {
+ return S5(e.path) ? (0, $f.createPortal)(sGe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function wKe({ children: e }) {
- let t = n7(), n = ct(t.state);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(u7, {
+function CKe({ children: e }) {
+ let t = t7(), n = ct(t.state);
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(l7, {
location: n ?? t,
children: [
- oGe.map((e) => /* @__PURE__ */ (0, V.jsx)(l7, {
+ aGe.map((e) => /* @__PURE__ */ (0, V.jsx)(c7, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, V.jsx)(l7, {
+ /* @__PURE__ */ (0, V.jsx)(c7, {
path: "/resource-sync",
element: null
}),
- /* @__PURE__ */ (0, V.jsx)(l7, {
+ /* @__PURE__ */ (0, V.jsx)(c7, {
path: "*",
element: e
})
]
- }), /* @__PURE__ */ (0, V.jsxs)(u7, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(l7, {
+ }), /* @__PURE__ */ (0, V.jsxs)(l7, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(c7, {
path: e,
element: null
- }, e)), /* @__PURE__ */ (0, V.jsx)(l7, {
+ }, e)), /* @__PURE__ */ (0, V.jsx)(c7, {
path: "*",
element: null
})] })] });
}
-function TKe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, V.jsx)(p7, { children: /* @__PURE__ */ (0, V.jsx)(h7.Provider, {
+function wKe({ children: e, actions: t = null }) {
+ return /* @__PURE__ */ (0, V.jsx)(f7, { children: /* @__PURE__ */ (0, V.jsx)(m7.Provider, {
value: t,
- children: /* @__PURE__ */ (0, V.jsxs)(_Ke, { children: [
- /* @__PURE__ */ (0, V.jsx)(vKe, {}),
- /* @__PURE__ */ (0, V.jsx)(xKe, {}),
- /* @__PURE__ */ (0, V.jsx)(wKe, { children: e })
+ children: /* @__PURE__ */ (0, V.jsxs)(gKe, { children: [
+ /* @__PURE__ */ (0, V.jsx)(_Ke, {}),
+ /* @__PURE__ */ (0, V.jsx)(bKe, {}),
+ /* @__PURE__ */ (0, V.jsx)(CKe, { children: e })
] })
}) });
}
-var EKe = { onCaughtError: (e) => {
+var TKe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, g7 = null;
-function DKe(e) {
- if (g7) return;
- g7 = (0, AN.createRoot)(document.createElement("div"), EKe);
- let t = g7;
- (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(TKe, { actions: e })));
+} }, h7 = null;
+function EKe(e) {
+ if (h7) return;
+ h7 = (0, kN.createRoot)(document.createElement("div"), TKe);
+ let t = h7;
+ (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(wKe, { actions: e })));
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var _7 = "__home__", OKe = {
+var g7 = "__home__", DKe = {
creator: 26,
tag: 30,
tech: 16
-}, v7 = 180, y7 = null, b7 = null, x7 = {
+}, _7 = 180, v7 = null, y7 = null, b7 = {
content: null,
filters: {},
latest: null
-}, S7 = 0;
-function C7() {
- let e = y7;
- if (!e || !b7) return;
- let t = x7, n = S7;
- (0, $f.flushSync)(() => b7.render(/* @__PURE__ */ (0, V.jsx)(p7, { children: /* @__PURE__ */ (0, V.jsx)(jKe, {
+}, x7 = 0;
+function S7() {
+ let e = v7;
+ if (!e || !y7) return;
+ let t = b7, n = x7;
+ (0, $f.flushSync)(() => y7.render(/* @__PURE__ */ (0, V.jsx)(f7, { children: /* @__PURE__ */ (0, V.jsx)(AKe, {
host: e,
props: t,
epoch: n
}) })));
}
-var kKe = {
+var OKe = {
render(e) {
- x7 = e, C7();
+ b7 = e, S7();
},
navChanged() {
- S7 += 1, C7();
+ x7 += 1, S7();
}
};
-function AKe(e) {
- return y7 = e, x7 = {
+function kKe(e) {
+ return v7 = e, b7 = {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), b7 = (0, AN.createRoot)(e.scroll), C7(), e.attached(), kKe;
+ }, e.scroll.replaceChildren(), y7 = (0, kN.createRoot)(e.scroll), S7(), e.attached(), OKe;
}
-function jKe({ host: e, props: t, epoch: n }) {
+function AKe({ host: e, props: t, epoch: n }) {
let r = (0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, V.jsx)(MKe, {
+ /* @__PURE__ */ (0, V.jsx)(jKe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, V.jsx)(PKe, {
+ t.content ? /* @__PURE__ */ (0, V.jsx)(NKe, {
host: e,
content: t.content,
filters: t.filters,
@@ -78070,8 +78054,8 @@ function jKe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function MKe({ host: e, epoch: t, version: n }) {
- let r = LR(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, B.useRef)(null), l = (0, B.useRef)(null), u = hD(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function jKe({ host: e, epoch: t, version: n }) {
+ let r = RR(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, B.useRef)(null), l = (0, B.useRef)(null), u = pD(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || g7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, B.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -78089,7 +78073,7 @@ function MKe({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || _7);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || g7);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -78104,7 +78088,7 @@ function MKe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : RR(i, n, e, a);
+ let o = n === null ? null : zR(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -78127,16 +78111,16 @@ function MKe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, V.jsx)(nT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]
- }, t || _7))
+ }) : /* @__PURE__ */ (0, V.jsx)(tT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]
+ }, t || g7))
}), v ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var w7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function NKe(e) {
+var C7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function MKe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -78149,7 +78133,7 @@ function NKe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function PKe({ host: e, content: t, filters: n, latest: r }) {
+function NKe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;
(0, B.useLayoutEffect)(() => {
t.kind === "catalog" && Le(e.scroll, "drawer");
@@ -78158,8 +78142,8 @@ function PKe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? FKe(e, t.facets, n, r, i) : [IKe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(LKe, {
+ let a = t.kind === "catalog" ? PKe(e, t.facets, n, r, i) : [FKe(e, t.tags, new Set(t.selected))], o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(IKe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -78168,11 +78152,11 @@ function PKe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function FKe(e, t, n, r, i) {
- let a = NKe(r), o = (t, r, i) => {
+function PKe(e, t, n, r, i) {
+ let a = MKe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = w7(n, r);
- return /* @__PURE__ */ (0, V.jsx)(D7, {
+ let o = C7(n, r);
+ return /* @__PURE__ */ (0, V.jsx)(E7, {
rows: t,
filterKey: r,
multi: i,
@@ -78182,7 +78166,7 @@ function FKe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = w7(n, l), p = c.some((e) => f.includes(e.value));
+ let f = C7(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -78194,12 +78178,12 @@ function FKe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, V.jsx)(zKe, {
+ body: /* @__PURE__ */ (0, V.jsx)(RKe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: OKe[d],
+ limit: DKe[d],
filterKey: l,
selected: f,
counts: a,
@@ -78214,7 +78198,7 @@ function FKe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, V.jsx)(BKe, {
+ body: /* @__PURE__ */ (0, V.jsx)(zKe, {
host: e,
filters: n
})
@@ -78228,7 +78212,7 @@ function FKe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, V.jsx)(O7, {
+ body: /* @__PURE__ */ (0, V.jsx)(D7, {
rows: t.followTags,
host: e,
selected: null,
@@ -78237,12 +78221,12 @@ function FKe(e, t, n, r, i) {
} : null
];
}
-function IKe(e, t, n) {
+function FKe(e, t, n) {
return t.length ? {
title: "内容标签",
kind: "online",
active: t.some((e) => n.has(e.value)),
- body: /* @__PURE__ */ (0, V.jsx)(O7, {
+ body: /* @__PURE__ */ (0, V.jsx)(D7, {
rows: t,
host: e,
selected: n,
@@ -78250,19 +78234,19 @@ function IKe(e, t, n) {
})
} : null;
}
-function T7(e, t) {
+function w7(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function LKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, B.useRef)(null), s = (0, B.useRef)(null), [c, l] = (0, B.useState)(() => T7(e, n)), u = (0, B.useRef)(!1);
+function IKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, B.useRef)(null), s = (0, B.useRef)(null), [c, l] = (0, B.useState)(() => w7(e, n)), u = (0, B.useRef)(!1);
(0, B.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? T7(e, n) : c;
+ let i = u.current ? w7(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("fcollapse") && r.classList.toggle("fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -78283,7 +78267,7 @@ function LKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, V.jsx)(nT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, V.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -78294,7 +78278,7 @@ function LKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, V.jsx)(E7.Provider, {
+ children: /* @__PURE__ */ (0, V.jsx)(T7.Provider, {
value: d,
children: a
})
@@ -78303,15 +78287,15 @@ function LKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var E7 = (0, B.createContext)(() => {});
-function RKe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(nT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {
+var T7 = (0, B.createContext)(() => {});
+function LKe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(tT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, V.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
+function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -78328,7 +78312,7 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
title: e.offline,
onClick: () => a.toggleChip(t, e.value, n),
children: [
- /* @__PURE__ */ (0, V.jsx)(RKe, { dot: e.dot }),
+ /* @__PURE__ */ (0, V.jsx)(LKe, { dot: e.dot }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -78343,8 +78327,8 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
})
});
}
-function zKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, B.useContext)(E7), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(e);
+function RKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, B.useContext)(T7), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(e);
p !== e && (m(e), f(null));
let h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, B.useLayoutEffect)(() => {
@@ -78359,7 +78343,7 @@ function zKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("fcollapse"), Ae(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(D7, {
+ }, [d, _]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(E7, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -78384,10 +78368,10 @@ function zKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, V.jsx)(nT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
}) : null] });
}
-function O7({ rows: e, host: t, selected: n, badges: r }) {
+function D7({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
@@ -78408,10 +78392,10 @@ function O7({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var k7 = (e, t) => e ? Math.min(v7, Number(e) / 60) : t;
-function BKe({ host: e, filters: t }) {
- let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, B.useState)(n), [a, o] = (0, B.useState)(() => [k7(t.dur_min, 0), k7(t.dur_max, v7)]), [s, c] = (0, B.useState)("max");
- r !== n && (i(n), o([k7(t.dur_min, 0), k7(t.dur_max, v7)]));
+var O7 = (e, t) => e ? Math.min(_7, Number(e) / 60) : t;
+function zKe({ host: e, filters: t }) {
+ let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, B.useState)(n), [a, o] = (0, B.useState)(() => [O7(t.dur_min, 0), O7(t.dur_max, _7)]), [s, c] = (0, B.useState)("max");
+ r !== n && (i(n), o([O7(t.dur_min, 0), O7(t.dur_max, _7)]));
let [l, u] = a, d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(a);
m.current = a;
let h = (e, t) => {
@@ -78424,11 +78408,11 @@ function BKe({ host: e, filters: t }) {
}, [e]), (0, B.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
- e.style.setProperty("--lo", `${l / v7 * 100}%`), e.style.setProperty("--hi", `${u / v7 * 100}%`);
+ e.style.setProperty("--lo", `${l / _7 * 100}%`), e.style.setProperty("--hi", `${u / _7 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? u : l;
- e.style.left = `${n / v7 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / _7 * 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`);
});
@@ -78438,7 +78422,7 @@ function BKe({ host: e, filters: t }) {
"data-range-end": e,
"data-range-active": s === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= v7 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= _7 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-duration": "",
@@ -78453,7 +78437,7 @@ function BKe({ host: e, filters: t }) {
id: "durMin",
type: "range",
min: "0",
- max: v7,
+ max: _7,
step: "5",
value: l,
"aria-label": "最短时长(分钟)",
@@ -78464,7 +78448,7 @@ function BKe({ host: e, filters: t }) {
id: "durMax",
type: "range",
min: "0",
- max: v7,
+ max: _7,
step: "5",
value: u,
"aria-label": "最长时长(分钟)",
@@ -78479,17 +78463,17 @@ function BKe({ host: e, filters: t }) {
}
//#endregion
//#region src/board-skeleton.ts
-var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VKe = () => `${A7("80%")}${A7("48%")}`, HKe = (e, t) => e.repeat(t);
-function UKe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${HKe(VKe(), 4)}</div></aside></div>`;
+var k7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, BKe = () => `${k7("80%")}${k7("48%")}`, VKe = (e, t) => e.repeat(t);
+function HKe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${k7("85%")}${k7("65%")}${VKe(BKe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var j7 = (e) => ["follow-item", e], WKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, GKe = "/api/follow/save", KKe = "/api/follow/media/hide";
-async function M7(e, t) {
- let n = await G(WKe(e), t);
+var A7 = (e) => ["follow-item", e], UKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, WKe = "/api/follow/save", GKe = "/api/follow/media/hide";
+async function j7(e, t) {
+ let n = await G(UKe(e), t);
for (let t of n.groups || []) {
- let r = kF(t).find((t) => t.id === e);
+ let r = jF(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -78499,21 +78483,21 @@ async function M7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function qKe(e, t) {
- let n = j7(e.id), r = rhe(e.id), i = z.getQueryData(TF) ? null : z.fetchQuery({
- queryKey: TF,
- queryFn: () => EF(t)
+async function KKe(e, t) {
+ let n = A7(e.id), r = the(e.id), i = z.getQueryData(DF) ? null : z.fetchQuery({
+ queryKey: DF,
+ queryFn: () => OF(t)
});
r ? z.setQueryData(n, {
...r,
item: r.item
}) : await z.fetchQuery({
queryKey: n,
- queryFn: () => M7(e.id, t)
+ queryFn: () => j7(e.id, t)
}), await i;
}
-function JKe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && PF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function qKe(e, t, n, r) {
+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && IF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
selected: s,
@@ -78527,32 +78511,32 @@ function JKe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var YKe = (e) => kF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), XKe = {
+var JKe = (e) => jF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), YKe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, ZKe = {
+}, XKe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function QKe(e) {
+function ZKe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return XKe[t] || t;
+ return YKe[t] || t;
} catch {
return "外部文件页";
}
}
-function N7(e, t) {
- return ZKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function M7(e, t) {
+ return XKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function $Ke(e, t, n = "") {
+function QKe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -78561,56 +78545,56 @@ function $Ke(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var eqe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", tqe = /* @__PURE__ */ new Set([
+var $Ke = (e) => String(e.name || "").trim(), N7 = (e, t) => e.tag_types?.[t] || "unknown", eqe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function nqe(e, t) {
- let n = P7(e, t);
- return `r34-${tqe.has(n) ? n : "general"}`;
+function tqe(e, t) {
+ let n = N7(e, t);
+ return `r34-${eqe.has(n) ? n : "general"}`;
}
-var F7 = [
+var P7 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function rqe(e, t) {
+function nqe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = F7.indexOf(P7(e, t));
- return n < 0 ? F7.length : n;
+ let n = P7.indexOf(N7(e, t));
+ return n < 0 ? P7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function iqe(e, t) {
+function rqe(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;
}
-var aqe = (e, t) => ({
+var iqe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), I7 = (e) => e?.size ? { size: e.size } : {};
-function oqe(e, t) {
+}), F7 = (e) => e?.size ? { size: e.size } : {};
+function aqe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
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: N7(t, e),
- ...I7(t),
+ source: M7(t, e),
+ ...F7(t),
position: r + 1,
total: n.length
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: N7(a, e),
- ...I7(a),
+ source: M7(a, e),
+ ...F7(a),
position: 1,
total: 1
}] : e.thumb_url ? [{
@@ -78622,10 +78606,10 @@ function oqe(e, t) {
total: 1
}] : [];
}
-var sqe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var oqe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
-function L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
return /* @__PURE__ */ (0, V.jsxs)("aside", {
"data-mix-queue": "",
"data-queue-kind": e,
@@ -78653,7 +78637,7 @@ function L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function L7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, V.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -78676,29 +78660,29 @@ function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var cqe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {
+var sqe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, V.jsx)("span", { children: t })
]
-}), z7 = (e) => Number(e) > 0, lqe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+}), R7 = (e) => Number(e) > 0, cqe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), B7 = R("external-link", "externalmark");
-function uqe(e) {
- let { id: t, actions: n } = e, r = TS({
- queryKey: j7(t),
- queryFn: ({ signal: e }) => M7(t, e)
- }), i = TS({
- queryKey: TF,
- queryFn: ({ signal: e }) => EF(e)
+}), z7 = R("external-link", "externalmark");
+function lqe(e) {
+ let { id: t, actions: n } = e, r = wS({
+ queryKey: A7(t),
+ queryFn: ({ signal: e }) => j7(t, e)
+ }), i = wS({
+ queryKey: DF,
+ queryFn: ({ signal: e }) => OF(e)
}), a = (0, B.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, B.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, V.jsx)(dqe, {
+ return r.data ? /* @__PURE__ */ (0, V.jsx)(uqe, {
...e,
data: r.data,
- context: aqe(r.data, a),
+ context: iqe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, V.jsx)("div", {
@@ -78707,9 +78691,9 @@ function uqe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, V.jsx)(V7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(B7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? /* @__PURE__ */ (0, V.jsx)(gA, {
+ children: r.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: ye(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -78717,7 +78701,7 @@ function uqe(e) {
})
});
}
-var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
+var B7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -78726,8 +78710,8 @@ var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function dqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = JKe(s, c, n, i), u = hqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({
+function uqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = qKe(s, c, n, i), u = mqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({
key: "",
kind: ""
}), m = {
@@ -78747,20 +78731,20 @@ function dqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? YKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(G7, {
+ let h = !l.embedded.length && l.collection ? JKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(W7, {
item: s,
current: l.selected.index,
helpers: a,
actions: o,
onMedia: r
- }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(G7, {
+ }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(W7, {
item: h,
current: null,
helpers: a,
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, V.jsx)(pqe, {
+ }) : /* @__PURE__ */ (0, V.jsx)(fqe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -78771,7 +78755,7 @@ function dqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(fqe, {
+ /* @__PURE__ */ (0, V.jsx)(dqe, {
item: s,
media: l,
helpers: a,
@@ -78780,7 +78764,7 @@ function dqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, V.jsx)(mqe, {
+ /* @__PURE__ */ (0, V.jsx)(pqe, {
item: s,
data: e,
context: t,
@@ -78793,8 +78777,8 @@ function dqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function fqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = oqe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({
+function dqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = aqe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({
item: e,
selected: o
}), C = (0, B.useRef)(i.failed);
@@ -78824,14 +78808,14 @@ function fqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"--follow-image-arrow-inset": p === null ? void 0 : `${p}px`
},
children: [
- /* @__PURE__ */ (0, V.jsx)(V7, { onClose: n.close }),
+ /* @__PURE__ */ (0, V.jsx)(B7, { onClose: n.close }),
_ ? null : v ? /* @__PURE__ */ (0, V.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": h.length ? "" : void 0,
src: b,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: h.length ? () => void IN(Math.max(0, l), h) : void 0,
+ onClick: h.length ? () => void FN(Math.max(0, l), h) : void 0,
onError: () => {
if (y && b !== y) {
x(y), i.thumbFallback();
@@ -78843,7 +78827,7 @@ function fqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: BF(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: HF(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, V.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
@@ -78882,11 +78866,11 @@ function fqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var H7 = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+var V7 = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function U7({ src: e }) {
+function H7({ src: e }) {
let [t, n] = (0, B.useState)(!1);
return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {
src: e,
@@ -78896,14 +78880,14 @@ function U7({ src: e }) {
onError: () => n(!0)
});
}
-function W7(e) {
+function U7(e) {
return (0, B.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function pqe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = PF(e), a = W7(n);
- return /* @__PURE__ */ (0, V.jsx)(L7, {
+function fqe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = IF(e), a = U7(n);
+ return /* @__PURE__ */ (0, V.jsx)(I7, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
@@ -78911,12 +78895,12 @@ function pqe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = $Ke(e, n, i ? n.provider_label : ""), o = i ? BF(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, V.jsxs)(R7, {
+ let i = e.duplicates.includes(n), a = QKe(e, n, i ? n.provider_label : ""), o = i ? HF(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, V.jsxs)(L7, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(H7, { kind: "video" }), z7(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {
+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(V7, { kind: "video" }), R7(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: fe(n.duration)
@@ -78934,15 +78918,15 @@ function pqe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, V.jsx)("time", {
dateTime: n.published_at || "",
- children: qF(n)
+ children: YF(n)
})]
})]
}, n.id);
})
});
}
-function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = W7(r), c = [];
+function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = U7(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -78952,26 +78936,26 @@ function G7({ 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, V.jsx)(L7, {
+ return /* @__PURE__ */ (0, V.jsx)(I7, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(cqe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(sqe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(R7, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(L7, {
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, V.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(H7, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(V7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, V.jsx)("b", {
"data-middle-truncate": "",
- children: eqe(n)
+ children: $Ke(n)
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -78979,16 +78963,16 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function pqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = GF(d, e), p = UF(e, iqe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = KF(e, n), g = rqe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = qF(d, e), p = GF(e, rqe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = JF(e, n), g = nqe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
- } : {}, b = (0, B.useRef)(null), [x, S] = (0, B.useState)(null);
+ } : {};
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-side": "",
"data-follow-detail-side": "",
@@ -79001,7 +78985,7 @@ function mqe({ 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: WF(d, e) + L(e.title) }
+ dangerouslySetInnerHTML: { __html: KF(d, e) + L(e.title) }
}), e.url ? /* @__PURE__ */ (0, V.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -79009,7 +78993,7 @@ function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: B7 }
+ dangerouslySetInnerHTML: { __html: z7 }
}) : null]
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -79028,8 +79012,8 @@ function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, V.jsx)("span", { children: qF(e) }),
- z7(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,
+ /* @__PURE__ */ (0, V.jsx)("span", { children: YF(e) }),
+ R7(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,
f ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -79062,9 +79046,9 @@ function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [QKe(e), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [ZKe(e), /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: B7 }
+ dangerouslySetInnerHTML: { __html: z7 }
})]
}, e))
}) : null,
@@ -79135,19 +79119,6 @@ function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
onClick: () => i.hide(l.index),
dangerouslySetInnerHTML: { __html: R("image-off") }
}) : null,
- /* @__PURE__ */ (0, V.jsx)("button", {
- ref: b,
- type: "button",
- "data-follow-cloud-download": "",
- "aria-label": "云下载",
- title: "云下载",
- "aria-haspopup": "dialog",
- onClick: () => S({
- title: e.title || "",
- origin: `follow:${e.id}`
- }),
- dangerouslySetInnerHTML: { __html: R("cloud-download") }
- }),
u ? /* @__PURE__ */ (0, V.jsx)("a", {
"data-follow-download": "",
href: `${u}${u.includes("?") ? "&" : "?"}download=1`,
@@ -79176,7 +79147,7 @@ function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(lqe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(H7, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(cqe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -79185,18 +79156,12 @@ function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, V.jsx)(sL, {
- prefill: x,
- close: () => S(null),
- anchor: b,
- receipt: (e) => s.toast(e)
- }),
g.length ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-tags": "",
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
- "data-tag-cat": nqe(e, t),
+ "data-tag-cat": tqe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -79206,8 +79171,8 @@ function mqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function hqe(e, t, n) {
- let r = e.id, i = j7(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((n) => {
+function mqe(e, t, n) {
+ let r = e.id, i = A7(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -79217,17 +79182,17 @@ function hqe(e, t, n) {
...t.item,
status: e
}
- }), ahe(r, e);
+ }), rhe(r, e);
}, d = (e) => {
c(ye(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = OS({
- mutationFn: ({ to: e }) => K(zP, {
+ }, f = DS({
+ mutationFn: ({ to: e }) => K(VP, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && _L(), t.toast(sqe(n), { undo: i === "saved" ? void 0 : async () => {
- await K(zP, {
+ u(n), c(""), n === "ignored" && vL(), t.toast(oqe(n), { undo: i === "saved" ? void 0 : async () => {
+ await K(VP, {
item: r,
to: i
}), u(i);
@@ -79235,16 +79200,16 @@ function hqe(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), p = OS({
- mutationFn: () => K(GKe, { item: r }),
+ }), p = DS({
+ mutationFn: () => K(WKe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), m = OS({
+ }), m = DS({
mutationFn: async ({ index: e, hidden: t }) => {
- await K(KKe, {
+ await K(GKe, {
item: r,
media: e,
hidden: t
@@ -79255,17 +79220,17 @@ function hqe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = z.getQueryData(i);
- o && ihe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && nhe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), h = TS({
- queryKey: h_e(r),
- queryFn: ({ signal: e }) => v_e(r, e)
- }).data?.want ?? null, g = OS({
- mutationFn: async (e) => (e ? await gL([e.id]) : await hL({ follow: r }), !e),
+ }), h = wS({
+ queryKey: f_e(r),
+ queryFn: ({ signal: e }) => h_e(r, e)
+ }).data?.want ?? null, g = DS({
+ mutationFn: async (e) => (e ? await _L([e.id]) : await gL({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), _L();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), vL();
},
onError: d,
onSettled: () => l("want", !1)
@@ -79304,14 +79269,26 @@ function hqe(e, t, n) {
};
}
//#endregion
+//#region src/react/components/overlay-host.ts
+function hqe(e) {
+ let t = e.querySelector(":scope > [data-react-overlays]");
+ if (t) return t;
+ let n = e.ownerDocument.createElement("div");
+ return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
+}
+function gqe(e) {
+ let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
+ return hqe(n ?? t.body);
+}
+//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var gqe = "/api/cover-crop", _qe = (e, t) => K(gqe, {
+var _qe = "/api/cover-crop", vqe = (e, t) => K(_qe, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function K7({ className: e }) {
+function G7({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -79324,7 +79301,7 @@ function K7({ className: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-crop" })
});
}
-function vqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function yqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {
ref: o,
@@ -79335,15 +79312,15 @@ function vqe({ 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, V.jsx)(K7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, V.jsx)($v, {
- getContainer: () => oL(o.current),
- children: /* @__PURE__ */ (0, V.jsx)(XN, {
+ children: /* @__PURE__ */ (0, V.jsx)(G7, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, V.jsx)(Qv, {
+ getContainer: () => gqe(o.current),
+ children: /* @__PURE__ */ (0, V.jsx)(YN, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, V.jsx)(yqe, {
+ children: /* @__PURE__ */ (0, V.jsx)(bqe, {
code: e,
coverUrl: t,
box: n,
@@ -79353,9 +79330,9 @@ function vqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function yqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = vM(), f = OS({
- mutationFn: (t) => _qe(e, t),
+function bqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = _M(), f = DS({
+ mutationFn: (t) => vqe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -79367,19 +79344,19 @@ function yqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : cpe(e, kC);
- c(KN(t, e, null));
+ } : lpe(e, AC);
+ c(GN(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(ZN, { children: /* @__PURE__ */ (0, V.jsx)(K7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(G7, { className: "size-6" }) }),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(ID, {
+ /* @__PURE__ */ (0, V.jsx)(PD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -79394,8 +79371,8 @@ function yqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(bM, {
- icon: pT,
+ /* @__PURE__ */ (0, V.jsx)(yM, {
+ icon: fT,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -79405,24 +79382,24 @@ function yqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, V.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, V.jsx)($N, {
+ children: /* @__PURE__ */ (0, V.jsx)(QN, {
src: t,
- aspect: l ? kC : null,
+ aspect: l ? AC : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- WN(e) && p(e);
+ UN(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, V.jsx)($I, {
+ children: [/* @__PURE__ */ (0, V.jsx)(tL, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(KN(s, a, kC));
+ u(e), e && s && a && c(GN(s, a, AC));
},
children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -79451,21 +79428,21 @@ function yqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var q7 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+var K7 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), J7 = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+}), q7 = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function bqe(e) {
- let { queue: t, actions: n } = e, r = TS({
- queryKey: t ? IC(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => GC(t, e.helpers, n),
+function xqe(e) {
+ let { queue: t, actions: n } = e, r = wS({
+ queryKey: t ? LC(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => KC(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? JC(i, e.id) : t ? null : e.id, o = TS({
- queryKey: FC(a ?? 0),
- queryFn: ({ signal: e }) => WC(a, e),
+ }), i = t && r.data || null, a = i ? YC(i, e.id) : t ? null : e.id, o = wS({
+ queryKey: IC(a ?? 0),
+ queryFn: ({ signal: e }) => GC(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -79476,9 +79453,9 @@ function bqe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, V.jsx)(Y7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(J7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, V.jsx)(gA, {
+ children: e ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: ye(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -79488,13 +79465,13 @@ function bqe(e) {
})
});
}
- return /* @__PURE__ */ (0, V.jsx)(xqe, {
+ return /* @__PURE__ */ (0, V.jsx)(Sqe, {
...e,
- item: Vre(o.data, i),
+ item: Bre(o.data, i),
queue: i
}, o.data.id);
}
-var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
+var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -79503,36 +79480,36 @@ var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function xqe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = Lqe(t, r, i.tagLabel), o = (0, B.useRef)(t);
+function Sqe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Rqe(t, r, i.tagLabel), o = (0, B.useRef)(t);
(0, B.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, B.useEffect)(() => {
- n?.kind === "playlist" && K(LC, {
+ n?.kind === "playlist" && K(RC, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = tie(t, i.sourceOffline(t.location || ""));
+ let s = eie(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(Sqe, {
+ /* @__PURE__ */ (0, V.jsx)(Cqe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, V.jsx)(wqe, {
+ n ? /* @__PURE__ */ (0, V.jsx)(Tqe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Dqe, {
+ /* @__PURE__ */ (0, V.jsx)(Oqe, {
item: t,
queue: n,
write: a,
@@ -79540,9 +79517,9 @@ function xqe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(Iqe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(Lqe, { ...e }) : null] });
}
-function Sqe({ item: e, gate: t, helpers: n, actions: r }) {
+function Cqe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, B.useState)(t ? "" : "auto"), o = (0, B.useRef)(null), s = (0, B.useRef)(e);
(0, B.useLayoutEffect)(() => {
let e = o.current;
@@ -79553,7 +79530,7 @@ function Sqe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, V.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(Cqe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(wqe, {
item: e,
badge: c,
helpers: n,
@@ -79563,7 +79540,7 @@ function Sqe({ item: e, gate: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, V.jsx)(J7, { html: c }),
+ /* @__PURE__ */ (0, V.jsx)(q7, { html: c }),
/* @__PURE__ */ (0, V.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -79578,11 +79555,11 @@ function Sqe({ item: e, gate: t, helpers: n, actions: r }) {
id: "gate",
"data-item-gate": "metered",
onClick: () => a("clicked"),
- children: [/* @__PURE__ */ (0, V.jsx)(J7, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]
}) : null]
});
}
-function Cqe({ item: e, badge: t, helpers: n, actions: r }) {
+function wqe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -79593,7 +79570,7 @@ function Cqe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, V.jsx)(J7, { html: t }),
+ /* @__PURE__ */ (0, V.jsx)(q7, { html: t }),
/* @__PURE__ */ (0, V.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -79607,8 +79584,8 @@ function Cqe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function wqe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Zre(e), a = (0, B.useRef)(null), o = Eqe(e, t, r), s = (0, B.useRef)(o);
+function Tqe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Xre(e), a = (0, B.useRef)(null), o = Dqe(e, t, r), s = (0, B.useRef)(o);
s.current = o;
let c = (0, B.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -79616,7 +79593,7 @@ function wqe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = Tqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {
+ }, [n, e.kind]), l = Eqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -79635,7 +79612,7 @@ function wqe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, V.jsx)(L7, {
+ return /* @__PURE__ */ (0, V.jsx)(I7, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -79644,11 +79621,11 @@ function wqe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, V.jsx)("i", {
- className: `javedition ${Yre[i.edition_label] || "censored"}`,
+ className: `javedition ${Jre[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && qC(i);
- return /* @__PURE__ */ (0, V.jsxs)(R7, {
+ }) : null, s = e.kind === "playlist" && JC(i);
+ return /* @__PURE__ */ (0, V.jsxs)(L7, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -79658,25 +79635,25 @@ function wqe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J7, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {
+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(q7, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: fe(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, V.jsx)(J7, { html: F(i) }),
+ lead: /* @__PURE__ */ (0, V.jsx)(q7, { html: F(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, V.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "x" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
@@ -79687,14 +79664,14 @@ function wqe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? nw(i.part_label) : P(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? rw(i.part_label) : P(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function Tqe(e, t) {
- let n = OS({ mutationFn: (t) => K(LC, {
+function Eqe(e, t) {
+ let n = DS({ mutationFn: (t) => K(RC, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -79707,14 +79684,14 @@ function Tqe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function Eqe(e, t, n) {
- let r = IC({
+function Dqe(e, t, n) {
+ let r = LC({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (z.setQueryData(r, KC(e)), e), a = (t) => K(LC, {
+ }), i = (e) => (z.setQueryData(r, qC(e)), e), a = (t) => K(RC, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = OS({
+ }).then((e) => e.playlist), o = DS({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@ -79727,8 +79704,8 @@ function Eqe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = $re(s, t, r, c);
- if (eie(l, s)) return;
+ let l = Qre(s, t, r, c);
+ if ($re(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -79774,7 +79751,7 @@ function Eqe(e, t, n) {
}
};
}
-function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-side": "",
@@ -79782,7 +79759,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(Oqe, {
+ /* @__PURE__ */ (0, V.jsx)(kqe, {
item: e,
queue: t,
helpers: r,
@@ -79794,7 +79771,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, V.jsx)(Aqe, {
+ /* @__PURE__ */ (0, V.jsx)(jqe, {
item: e,
write: n
}),
@@ -79805,7 +79782,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [
e.width || "?",
"×",
e.height || "?"
@@ -79813,11 +79790,11 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]
}),
e.release_date ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -79825,22 +79802,22 @@ function Dqe({ 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, V.jsx)(q7, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(jqe, {
+ /* @__PURE__ */ (0, V.jsx)(Mqe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, V.jsx)(Mqe, {
+ /* @__PURE__ */ (0, V.jsx)(Nqe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, V.jsx)(Pqe, { item: e }),
+ /* @__PURE__ */ (0, V.jsx)(Fqe, { item: e }),
/* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -79854,7 +79831,7 @@ function Dqe({ 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, V.jsx)(q7, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79866,7 +79843,7 @@ function Dqe({ 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, V.jsx)(q7, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79877,7 +79854,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79888,7 +79865,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "eye" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "eye" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79899,7 +79876,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79908,7 +79885,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "playlist" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "playlist" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79919,7 +79896,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "sparkles" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79930,11 +79907,11 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "trash" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Fqe, {
+ /* @__PURE__ */ (0, V.jsx)(Iqe, {
item: e,
open: s,
write: n
@@ -79945,7 +79922,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, V.jsx)(q7, { name: "sperm" }),
+ /* @__PURE__ */ (0, V.jsx)(K7, { name: "sperm" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, V.jsx)("b", {
className: "mono",
@@ -79958,7 +79935,7 @@ function Dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function Oqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function kqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, B.useRef)(null), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(!1);
(0, B.useLayoutEffect)(() => {
let e = a.current;
@@ -79968,7 +79945,7 @@ function Oqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}, n = new ResizeObserver(t);
return n.observe(e), t(), () => n.disconnect();
}, []);
- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Qre(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Zre(e, t);
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -79995,23 +79972,23 @@ function Oqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, V.jsx)(vqe, {
+ children: /* @__PURE__ */ (0, V.jsx)(yqe, {
code: e.cover_key || e.code || "",
coverUrl: D(e),
box: e.poster_box || null,
onSaved: (t) => {
z.invalidateQueries({
- queryKey: FC(e.id),
+ queryKey: IC(e.id),
exact: !0
- }), PC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), FC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(kqe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(Aqe, {
id: e.id,
actions: r,
onStatus: i
@@ -80021,7 +79998,7 @@ function Oqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function kqe({ id: e, actions: t, onStatus: n }) {
+function Aqe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, B.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -80051,17 +80028,17 @@ function kqe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "folder-sync" })
})] });
}
-function Aqe({ item: e, write: t }) {
- let n = XC(e.rating);
+function jqe({ item: e, write: t }) {
+ let n = ZC(e.rating);
return /* @__PURE__ */ (0, V.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": YC(e.rating),
+ "data-value": XC(e.rating),
children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -80078,17 +80055,17 @@ function Aqe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "star" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Wre(e.rating)
+ children: Ure(e.rating)
})]
});
}
-function jqe({ item: e, actions: t }) {
- let n = (0, B.useMemo)(() => Ure(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function Mqe({ item: e, actions: t }) {
+ let n = (0, B.useMemo)(() => Hre(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${L(n.name.slice(0, 1))}</span>` + A({
@@ -80151,7 +80128,7 @@ function jqe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "user-round" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "user-round" })
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -80163,7 +80140,7 @@ function jqe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: cT,
+ trailingIcon: sT,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -80197,19 +80174,19 @@ function jqe({ item: e, actions: t }) {
"data-entity-name": e.name,
title: e.name,
onClick: () => t.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
}, e.name) : /* @__PURE__ */ (0, V.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null
]
});
}
-function Mqe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Kre(e, n);
+function Nqe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = Gre(e, n);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -80228,16 +80205,16 @@ function Mqe({ 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, V.jsx)(q7, { name: "x" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, V.jsx)(Nqe, {
+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(Pqe, {
item: e,
write: t,
helpers: n
})]
});
}
-function Nqe({ item: e, write: t, helpers: n }) {
+function Pqe({ item: e, write: t, helpers: n }) {
let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(-1), h = (0, B.useCallback)(() => {
i.current && De(i.current), c(!1);
}, []);
@@ -80251,7 +80228,7 @@ function Nqe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Jre(d, n.tagCandidates(), tw()) : {
+ let g = s ? qre(d, n.tagCandidates(), nw()) : {
recent: [],
results: [],
create: ""
@@ -80279,12 +80256,12 @@ function Nqe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && ZC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && QC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = ZC(e, t.k);
+ let r = b, i = QC(e, t.k);
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -80292,7 +80269,7 @@ function Nqe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, V.jsx)(q7, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, V.jsx)(K7, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -80315,7 +80292,7 @@ function Nqe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (ze(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "plus" })
}), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -80325,7 +80302,7 @@ function Nqe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, V.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -80366,7 +80343,7 @@ function Nqe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -80381,8 +80358,8 @@ function Nqe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function Pqe({ item: e }) {
- let t = nie(e);
+function Fqe({ item: e }) {
+ let t = tie(e);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -80416,7 +80393,7 @@ function Pqe({ item: e }) {
})]
});
}
-function Fqe({ item: e, open: t, write: n }) {
+function Iqe({ item: e, open: t, write: n }) {
let [r, i] = (0, B.useState)(e.like_reason || ""), a = (0, B.useRef)(null);
(0, B.useEffect)(() => {
t && a.current?.focus();
@@ -80455,10 +80432,10 @@ function Fqe({ item: e, open: t, write: n }) {
})]
});
}
-function Iqe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = TS({
- queryKey: Rre(t.id, n),
- queryFn: async ({ signal: e }) => (await G(Bre(t.id, n), e)).items || []
+function Lqe(e) {
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = wS({
+ queryKey: Lre(t.id, n),
+ queryFn: async ({ signal: e }) => (await G(zre(t.id, n), e)).items || []
}), [o] = (0, B.useState)(() => r.relatedSkeletonHtml()), s = (0, B.useCallback)((e) => {
e && (ke(e), r.wireDrag(e));
}, [r]);
@@ -80471,7 +80448,7 @@ function Iqe(e) {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, V.jsx)(EA, {
+ children: a.data ? /* @__PURE__ */ (0, V.jsx)(wA, {
mode: "items",
variant: "next",
items: a.data,
@@ -80484,12 +80461,12 @@ function Iqe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(J7, { html: o })
+ }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(q7, { html: o })
})]
});
}
-function Lqe(e, t, n) {
- let r = e.id, i = FC(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = (e, t) => o((n) => {
+function Rqe(e, t, n) {
+ let r = e.id, i = IC(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => z.getQueryData(i) || e, p = (e) => {
@@ -80505,11 +80482,11 @@ function Lqe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return NC(r, n), t;
+ return PC(r, n), t;
}, m = (e, t) => K(e, {
id: r,
...t
- }), h = OS({
+ }), h = DS({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@ -80520,7 +80497,7 @@ function Lqe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(RC, t === void 0 ? { kind: e } : {
+ let n = await m(zC, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -80540,21 +80517,21 @@ function Lqe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Gre(n, e);
- await _("rate", r), t.toast(r ? `已评 ${XC(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = Wre(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${ZC(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(rw(e, r), { undo: async () => {
+ t.toast(iw(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(BC, {});
+ let e = await m(VC, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(BC, {})).watch_later });
+ p({ watch_later: (await m(VC, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -80564,9 +80541,9 @@ function Lqe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(VC, { wanted: !e.wanted });
+ }), r = await m(HC, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(VC, e));
+ n(await m(HC, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -80580,7 +80557,7 @@ function Lqe(e, t, n) {
});
u("保存中…");
try {
- o(await m(HC, {
+ o(await m(UC, {
liked: a,
reason: i
}));
@@ -80590,7 +80567,7 @@ function Lqe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(HC, r));
+ o(await m(UC, r));
} });
});
},
@@ -80599,11 +80576,11 @@ function Lqe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => QC(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(zC, {
+ p((t) => $C(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(BC, {
operation: "add",
tag: e.k
- }), p((t) => $C(t, e));
+ }), p((t) => ew(t, e));
} });
}),
addTag: (e) => {
@@ -80612,14 +80589,14 @@ function Lqe(e, t, n) {
(await m("/api/item-tag", {
operation: "add",
tag: r
- })).ok && (p((e) => $C(e, {
+ })).ok && (p((e) => ew(e, {
k: r,
cat: "general"
- })), qre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
- await m(zC, {
+ })), Kre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
+ await m(BC, {
operation: "remove",
tag: r
- }), p((e) => QC(e, r));
+ }), p((e) => $C(e, r));
} }));
});
}
@@ -80627,31 +80604,31 @@ function Lqe(e, t, n) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = null, t9 = !1, n9 = 0, r9 = null, i9 = () => !1, a9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function Rqe(e, t) {
- X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), Yne({
+var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function zqe(e, t) {
+ Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), Xne({
...e.player,
stage: () => document.getElementById("stage")
- }), Xne({
- inMiniplayer: (e) => Z7?.player === e,
- kind: (e) => Z7?.player === e ? Z7.kind : Q7?.kind ?? $7?.kind ?? "item",
- expand: () => C9(),
- toMiniplayer: () => w9()
- }), o9 || (o9 = !0, addEventListener("pagehide", () => fC()));
-}
-var o9 = !1;
-function s9() {
- if (!X7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return X7;
-}
-function c9(e) {
- $7 = e;
-}
-var zqe = () => $7;
-function l9(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = a9(n, r.id, i?.index ?? null);
- if (Z7 && Z7.key === a) return Bqe(e, Z7);
- Z7 && S9();
+ }), Zne({
+ inMiniplayer: (e) => X7?.player === e,
+ kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
+ expand: () => S9(),
+ toMiniplayer: () => C9()
+ }), a9 || (a9 = !0, addEventListener("pagehide", () => pC()));
+}
+var a9 = !1;
+function o9() {
+ if (!Y7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return Y7;
+}
+function s9(e) {
+ Q7 = e;
+}
+var Bqe = () => Q7;
+function c9(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);
+ if (X7 && X7.key === a) return Vqe(e, X7);
+ X7 && x9();
let o = {
player: null,
kind: n,
@@ -80659,28 +80636,28 @@ function l9(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- Q7 = o;
+ Z7 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = EC(s, {
+ let c = DC(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- Q7 === o && (o.player = e);
+ Z7 === o && (o.player = e);
},
- handedOff: (e) => Z7?.player === e
+ handedOff: (e) => X7?.player === e
});
return () => {
- let e = !!o.player && Z7?.player === o.player;
- Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), fC());
+ let e = !!o.player && X7?.player === o.player;
+ Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), pC());
};
}
-function Bqe(e, t) {
+function Vqe(e, t) {
let { player: n } = t;
- b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), wC(e), e.append(n.el()), VS(n);
+ y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), TC(e), e.append(n.el()), BS(n);
let r = {
player: n,
kind: t.kind,
@@ -80688,23 +80665,23 @@ function Bqe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- Q7 = r;
- let i = TC(n, e);
- return HS(n), () => {
- Q7 === r && (Q7 = null), i(), Z7?.player !== n && (BS() === n && VS(null), iC(n), fC());
+ Z7 = r;
+ let i = EC(n, e);
+ return VS(n), () => {
+ Z7 === r && (Z7 = null), i(), X7?.player !== n && (zS() === n && BS(null), rC(n), pC());
};
}
-var u9 = () => {
- let e = Q7?.player;
+var l9 = () => {
+ let e = Z7?.player;
return e && !e.isDisposed() ? e : null;
};
-function Vqe(e) {
- let t = t9;
- t9 = !1, Z7?.pending && S9();
- let n = Q7, r = n?.player, i = $7;
- if (!n || !r || r.isDisposed() || !i || !e9) return;
- let a = s9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Kqe({
+function Hqe(e) {
+ let t = e9;
+ e9 = !1, X7?.pending && x9();
+ let n = Z7, r = n?.player, i = Q7;
+ if (!n || !r || r.isDisposed() || !i || !$7) return;
+ let a = o9().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && qqe({
player: r,
kind: n.kind,
item: n.item,
@@ -80712,52 +80689,52 @@ function Vqe(e) {
key: n.key
}, i);
}
-function Hqe(e, t) {
- if (t9 = !1, Z7) {
- if (Z7.kind === e && Z7.item.id === t) {
- Z7.pending = !0, x9();
+function Uqe(e, t) {
+ if (e9 = !1, X7) {
+ if (X7.kind === e && X7.item.id === t) {
+ X7.pending = !0, b9();
return;
}
- S9();
+ x9();
}
}
-function d9(e) {
- e9 = e, e9 && v9();
-}
-var f9 = () => !!Z7 && !Z7.pending && !Z7.player.isDisposed();
-function Uqe() {
- return f9() ? e9?.frame.querySelector("video") ?? null : null;
+function u9(e) {
+ $7 = e, $7 && _9();
}
+var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
function Wqe() {
- return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Uqe();
+ return d9() ? $7?.frame.querySelector("video") ?? null : null;
}
-function p9(e) {
- e9 && (e9.title.textContent = e.title || "", e9.sub.textContent = e.sub || "", e9.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function Gqe() {
+ return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : Wqe();
}
-function m9(e = Z7?.item) {
- if (!e9) return;
- let t = e9.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- e9.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function f9(e) {
+ $7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function h9() {
- let e = Z7?.player;
- if (!e || e.isDisposed() || !e9) return;
- let t = e.paused();
- e9.play.setAttribute("aria-label", t ? "播放" : "暂停"), e9.play.querySelector("[data-icon-swap]") || (e9.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge(e9.play, t ? "b" : "a");
-}
-function g9() {
- let e = Z7?.player;
- if (!e || e.isDisposed() || !e9) return;
- let t = ve(Z7?.item.duration) || ve(e.duration());
- e9.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;
+function p9(e = X7?.item) {
+ if (!$7) return;
+ let t = $7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ $7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-var _9 = () => Math.max(1, Number(s9().player.settings().seekSeconds) || 10);
-function v9() {
- if (!e9 || !X7) return;
- let e = _9();
- for (let [t, n] of [[e9.back, `后退 ${e} 秒`], [e9.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+function m9() {
+ let e = X7?.player;
+ if (!e || e.isDisposed() || !$7) return;
+ let t = e.paused();
+ $7.play.setAttribute("aria-label", t ? "播放" : "暂停"), $7.play.querySelector("[data-icon-swap]") || ($7.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge($7.play, t ? "b" : "a");
}
-function y9(e) {
+function h9() {
+ let e = X7?.player;
+ if (!e || e.isDisposed() || !$7) return;
+ let t = ve(X7?.item.duration) || ve(e.duration());
+ $7.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;
+}
+var g9 = () => Math.max(1, Number(o9().player.settings().seekSeconds) || 10);
+function _9() {
+ if (!$7 || !Y7) return;
+ let e = g9();
+ for (let [t, n] of [[$7.back, `后退 ${e} 秒`], [$7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function v9(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -80769,17 +80746,17 @@ function y9(e) {
"play",
"pause",
"ended"
- ], h9), t([
+ ], m9), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], g9), t("loadedmetadata", () => m9()), h9(), g9(), m9(), v9();
+ ], h9), t("loadedmetadata", () => p9()), m9(), h9(), p9(), _9();
}
-function b9(e) {
+function y9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function Gqe() {
- let e = e9?.root;
+function Kqe() {
+ let e = $7?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -80787,8 +80764,8 @@ function Gqe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function x9() {
- let e = e9?.root;
+function b9() {
+ let e = $7?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -80799,77 +80776,77 @@ function x9() {
e.style.transform = "";
}
}
-function Kqe(e, t) {
- if (!e9) return;
+function qqe(e, t) {
+ if (!$7) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Gqe(), HS(e.player);
+ X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), Kqe(), VS(e.player);
}
-function S9() {
- let e = Z7;
- e && b9(e), Z7 = null, n9++;
+function x9() {
+ let e = X7;
+ e && y9(e), X7 = null, t9++;
let t = e?.player ?? null;
- t && BS() === t && VS(null), iC(t), t && fC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), RS(), x9();
+ t && zS() === t && BS(null), rC(t), t && pC(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), LS(), b9();
}
-function C9() {
- if (!f9() || !Z7) return;
- let { kind: e, item: t, mediaIndex: n } = Z7;
- s9().expand(e, t.id, n);
+function S9() {
+ if (!d9() || !X7) return;
+ let { kind: e, item: t, mediaIndex: n } = X7;
+ o9().expand(e, t.id, n);
}
-function w9() {
- if (f9() && !i9()) {
- C9();
+function C9() {
+ if (d9() && !r9()) {
+ S9();
return;
}
- i9() && u9() && r9 && (t9 = !0, r9());
+ r9() && l9() && n9 && (e9 = !0, n9());
}
-function qqe() {
- let e = Z7?.player;
+function Jqe() {
+ let e = X7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function T9(e) {
- let t = Z7?.player;
+function w9(e) {
+ let t = X7?.player;
if (!t || t.isDisposed()) return;
- let n = ve(t.duration()) || ve(Z7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + _9() * e);
+ let n = ve(t.duration()) || ve(X7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + g9() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function E9(e) {
- return !(!f9() || !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 || s9().sourceOffline(String(e.location ?? "")));
-}
-async function Jqe(e) {
- if (!f9() || !Z7 || !e9) return;
- let t = ++n9, n = await ce(`/api/item?id=${e}`).catch(() => null);
- if (t !== n9 || !f9() || !Z7 || !e9 || !n || n.error) return;
- if (!E9(n)) {
- s9().openItem(e);
+function T9(e) {
+ return !(!d9() || !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 || o9().sourceOffline(String(e.location ?? "")));
+}
+async function Yqe(e) {
+ if (!d9() || !X7 || !$7) return;
+ let t = ++t9, n = await ce(`/api/item?id=${e}`).catch(() => null);
+ if (t !== t9 || !d9() || !X7 || !$7 || !n || n.error) return;
+ if (!T9(n)) {
+ o9().openItem(e);
return;
}
- let r = Z7;
- b9(r), BS() === r.player && VS(null), iC(r.player), fC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = X7;
+ y9(r), zS() === r.player && BS(null), rC(r.player), pC(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", e9.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", $7.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- p9(a), EC(i, {
+ f9(a), DC(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== n9) {
- r && BS() === r && VS(null), iC(r);
+ if (t !== t9) {
+ r && zS() === r && BS(null), rC(r);
return;
}
if (!r) {
- S9(), s9().openItem(e);
+ x9(), o9().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -80878,26 +80855,26 @@ async function Jqe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: a9("item", n.id, null),
+ key: i9("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- Z7 = i, y9(i);
+ X7 = i, v9(i);
}
- }), m9(n);
+ }), p9(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+var E9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
-}), Yqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {
+}), Xqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
t.stopPropagation(), e();
-}, Xqe = (0, B.memo)(function() {
+}, Zqe = (0, B.memo)(function() {
let e = (0, B.useRef)(null), t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null);
- return (0, B.useLayoutEffect)(() => (d9({
+ return (0, B.useLayoutEffect)(() => (u9({
root: e.current,
frame: n.current,
play: r.current,
@@ -80907,7 +80884,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => d9(null)), []), (0, B.useEffect)(() => Qqe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {
+ }), () => u9(null)), []), (0, B.useEffect)(() => $qe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -80931,24 +80908,24 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: O9(C9),
- children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "maximize-2" })
+ onClick: D9(S9),
+ children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: O9(S9),
- children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "x" })
+ onClick: D9(x9),
+ children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "x" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: O9(() => T9(-1)),
- children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "rotate-ccw" })
+ onClick: D9(() => w9(-1)),
+ children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: r,
@@ -80957,16 +80934,16 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: O9(qqe),
- dangerouslySetInnerHTML: Yqe
+ onClick: D9(Jqe),
+ dangerouslySetInnerHTML: Xqe
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: O9(() => T9(1)),
- children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "rotate-cw" })
+ onClick: D9(() => w9(1)),
+ children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, V.jsx)("span", {
ref: i,
@@ -80983,7 +80960,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => C9(),
+ onClick: () => S9(),
children: [/* @__PURE__ */ (0, V.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -80997,7 +80974,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
})
});
});
-function Zqe(e, t, n) {
+function Qqe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -81019,7 +80996,7 @@ function Zqe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function Qqe(e, t) {
+function $qe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -81045,7 +81022,7 @@ function Qqe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), Zqe(e, i.dx, i.dy));
+ }, 0), Qqe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -81057,65 +81034,65 @@ function Qqe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var k9 = null, A9 = null, j9 = null, M9 = null, N9 = 0, P9 = null, F9 = !1, I9 = !1, L9 = () => {
+var O9 = null, k9 = null, A9 = null, j9 = null, M9 = 0, N9 = null, P9 = !1, F9 = !1, I9 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function R9() {
- if (!k9) throw Error("舞台还没有接上宿主(configureStage)");
- return k9;
+function L9() {
+ if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
+ return O9;
}
-function $qe() {
- return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, AN.createRoot)(j9)), A9;
+function eJe() {
+ return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, kN.createRoot)(A9)), k9;
}
-function z9() {
- let e = $qe();
- (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(p7, { children: /* @__PURE__ */ (0, V.jsx)(eJe, { view: M9 }) })));
+function R9() {
+ let e = eJe();
+ (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(f7, { children: /* @__PURE__ */ (0, V.jsx)(tJe, { view: j9 }) })));
}
-function eJe({ view: e }) {
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(tJe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(Xqe, {})] });
+function tJe({ view: e }) {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(nJe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(Zqe, {})] });
}
-var B9 = () => /* @__PURE__ */ (0, V.jsx)("div", {
+var z9 = () => /* @__PURE__ */ (0, V.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: UKe() }
+ dangerouslySetInnerHTML: { __html: HKe() }
});
-function V9(e) {
+function B9(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function tJe({ view: e }) {
+function nJe({ view: e }) {
let t = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), H9();
+ e.preventDefault(), V9();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(bqe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(uqe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(xqe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(lqe, { ...r.props });
return /* @__PURE__ */ (0, V.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), H9());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), V9());
},
onPointerDown: (e) => {
- I9 = V9(e);
+ F9 = B9(e);
},
onClick: (e) => {
- I9 && V9(e) && H9();
+ F9 && B9(e) && V9();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(B9, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(z9, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(B9, {})
+ children: /* @__PURE__ */ (0, V.jsx)(z9, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-scroll": "",
@@ -81127,32 +81104,32 @@ function tJe({ view: e }) {
]
});
}
-function H9() {
- !M9 || F9 || (F9 = !0, M9.request.actions.close());
+function V9() {
+ !j9 || P9 || (P9 = !0, j9.request.actions.close());
}
-function U9(e, t) {
- let n = L9();
+function H9(e, t) {
+ let n = I9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function nJe(e) {
+function rJe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => R9().player.settings();
+ }, r = () => L9().player.settings();
if (e.kind === "item") {
let { kind: t, resume: i, actions: a, ...o } = e, s = {
...a,
- close: H9,
+ close: V9,
present: (e, t) => {
let n = e.performers;
- c9({
+ s9({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), U9(r().ambientMode, r().theaterMode), a.present(e, t);
+ }), H9(r().ambientMode, r().theaterMode), a.present(e, t);
},
- mountPlayer: (e, t, r, i) => l9(e, {
+ mountPlayer: (e, t, r, i) => c9(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -81170,16 +81147,16 @@ function nJe(e) {
}
let { kind: i, resume: a, actions: o, ...s } = e, c = {
...o,
- close: H9,
+ close: V9,
present: (e, t) => {
- c9({
+ s9({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), U9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
+ }), H9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
},
- mountPlayer: (e, t, r, i) => l9(e, {
+ mountPlayer: (e, t, r, i) => c9(e, {
kind: "follow",
item: t,
media: r,
@@ -81196,48 +81173,48 @@ function nJe(e) {
}
};
}
-function rJe(e, t) {
+function iJe(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"), M9?.generation === t && M9.phase === "reveal" && (M9 = {
- ...M9,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), j9?.generation === t && j9.phase === "reveal" && (j9 = {
+ ...j9,
phase: "content"
- }, z9());
+ }, R9());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function iJe(e) {
- M9 && W9({ miniplayer: !1 });
- let t = ++N9, n = new AbortController();
- P9 = n, F9 = !1, I9 = !1, Hqe(e.kind, e.id ?? NaN), M9 = {
+async function aJe(e) {
+ j9 && U9({ miniplayer: !1 });
+ let t = ++M9, n = new AbortController();
+ N9 = n, P9 = !1, F9 = !1, Uqe(e.kind, e.id ?? NaN), j9 = {
generation: t,
request: e,
- content: nJe(e),
+ content: rJe(e),
phase: "skeleton"
- }, z9();
- let r = L9();
+ }, R9();
+ let r = I9();
if (!r) return;
ke(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
- let i = M9.content;
+ let i = j9.content;
try {
- i.kind === "item" ? await Hre(i.props, n.signal) : await qKe(i.props, n.signal);
+ i.kind === "item" ? await Vre(i.props, n.signal) : await KKe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
- if (t !== N9 || !M9) return;
+ if (t !== M9 || !j9) return;
let a = !!r.querySelector(".skeleton-awaiting");
- M9 = {
- ...M9,
+ j9 = {
+ ...j9,
phase: a ? "content" : "reveal"
- }, z9(), a || rJe(r, t), Be(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, R9(), a || iJe(r, t), Be(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function aJe() {
- let e = L9();
+function oJe() {
+ let e = I9();
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();
@@ -81247,77 +81224,77 @@ function aJe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function W9({ miniplayer: e = !0 } = {}) {
- if (N9++, P9?.abort(), P9 = null, Vqe(e), !M9) return;
- let t = L9();
- t && ie(t), RS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");
+function U9({ miniplayer: e = !0 } = {}) {
+ if (M9++, N9?.abort(), N9 = null, Hqe(e), !j9) return;
+ let t = I9();
+ t && ie(t), LS(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
}
-function oJe(e) {
- !M9 || M9.content.kind !== "item" || (M9 = {
- ...M9,
+function sJe(e) {
+ !j9 || j9.content.kind !== "item" || (j9 = {
+ ...j9,
content: {
kind: "item",
props: {
- ...M9.content.props,
+ ...j9.content.props,
...e
}
}
- }, z9());
+ }, R9());
}
-function sJe() {
- let e = zqe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, R9().player.settings().javImage) : "";
+function cJe() {
+ let e = Bqe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, L9().player.settings().javImage) : "";
if (!n) return;
- let r = u9();
+ let r = l9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var cJe = {
- open: iJe,
- update: oJe,
- exit: aJe,
- dispose: W9,
- requestClose: H9,
- repaintPoster: sJe,
- isOpen: () => !!M9,
- activeVideo: () => Wqe(),
+var lJe = {
+ open: aJe,
+ update: sJe,
+ exit: oJe,
+ dispose: U9,
+ requestClose: V9,
+ repaintPoster: cJe,
+ isOpen: () => !!j9,
+ activeVideo: () => Gqe(),
toggleTheater: () => {
- M9 && rC(!R9().player.settings().theaterMode);
+ j9 && nC(!L9().player.settings().theaterMode);
},
- toggleMiniplayer: () => w9(),
- closeMiniplayer: () => S9(),
- miniplayerActive: () => f9(),
- miniplayerTakesCard: (e) => E9(e),
+ toggleMiniplayer: () => C9(),
+ closeMiniplayer: () => x9(),
+ miniplayerActive: () => d9(),
+ miniplayerTakesCard: (e) => T9(e),
miniplayerPlay: (e) => {
- Jqe(e);
+ Yqe(e);
}
};
-function lJe(e) {
- return k9 = e, Rqe(e, {
- isOpen: () => !!M9,
- requestClose: H9
- }), z9(), cJe;
+function uJe(e) {
+ return O9 = e, zqe(e, {
+ isOpen: () => !!j9,
+ requestClose: V9
+ }), R9(), lJe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function uJe(e) {
+function dJe(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var dJe = (e) => {
+var fJe = (e) => {
switch (e) {
- case "success": return mJe;
- case "info": return gJe;
- case "warning": return hJe;
- case "error": return _Je;
+ case "success": return hJe;
+ case "info": return _Je;
+ case "warning": return gJe;
+ case "error": return vJe;
default: return null;
}
-}, fJe = Array(12).fill(0), pJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {
+}, pJe = Array(12).fill(0), mJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, fJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {
+}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, pJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), mJe = /*#__PURE__*/ B.createElement("svg", {
+})))), hJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81328,7 +81305,7 @@ var dJe = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), hJe = /*#__PURE__*/ B.createElement("svg", {
+})), gJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -81339,7 +81316,7 @@ var dJe = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), gJe = /*#__PURE__*/ B.createElement("svg", {
+})), _Je = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81350,7 +81327,7 @@ var dJe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), _Je = /*#__PURE__*/ B.createElement("svg", {
+})), vJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81361,7 +81338,7 @@ var dJe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), vJe = /*#__PURE__*/ B.createElement("svg", {
+})), yJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -81382,7 +81359,7 @@ var dJe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), yJe = () => {
+})), bJe = () => {
let [e, t] = B.useState(document.hidden);
return B.useEffect(() => {
let e = () => {
@@ -81390,7 +81367,7 @@ var dJe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, bJe = 1, xJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : bJe++, K9 = new class {
+}, xJe = 1, SJe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : xJe++, G9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -81400,10 +81377,10 @@ var dJe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - xJe;
+ let e = this.toasts.length - SJe;
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 = G9(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = W9(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({
@@ -81522,7 +81499,7 @@ var dJe = (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 = G9(t);
+ let n = W9(t);
return this.create({
...t,
jsx: e(n),
@@ -81531,21 +81508,21 @@ var dJe = (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();
}
-}(), SJe = (e, t) => K9.message(e, t), CJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(SJe, {
- success: K9.success,
- info: K9.info,
- warning: K9.warning,
- error: K9.error,
- custom: K9.custom,
- message: K9.message,
- promise: K9.promise,
- dismiss: K9.dismiss,
- loading: K9.loading
+}(), K9 = (e, t) => G9.message(e, t), CJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(K9, {
+ success: G9.success,
+ info: G9.info,
+ warning: G9.warning,
+ error: G9.error,
+ custom: G9.custom,
+ message: G9.message,
+ promise: G9.promise,
+ dismiss: G9.dismiss,
+ loading: G9.loading
}, {
- getHistory: () => K9.toasts,
- getToasts: () => K9.getActiveToasts()
+ getHistory: () => G9.toasts,
+ getToasts: () => G9.getActiveToasts()
});
-uJe("[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%)}");
+dJe("[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 J9(e) {
return e.label !== void 0;
}
@@ -81558,7 +81535,7 @@ function jJe(e) {
return t && r.push(t), n && r.push(n), r;
}
var MJe = (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, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = yJe(), Ee = B.useMemo(() => e.swipeDirections ?? jJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "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, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = bJe(), Ee = B.useMemo(() => e.swipeDirections ?? jJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";
ye.current = B.useMemo(() => he * x + we, [he, we]), B.useEffect(() => {
se.current = _e;
}, [_e]), B.useEffect(() => {
@@ -81632,12 +81609,12 @@ var MJe = (e) => {
return w?.loading ? /*#__PURE__*/ B.createElement("div", {
className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": de === "loading"
- }, w.loading) : /*#__PURE__*/ B.createElement(pJe, {
+ }, w.loading) : /*#__PURE__*/ B.createElement(mJe, {
className: X9(C?.loader, n?.classNames?.loader),
visible: de === "loading"
});
}
- let je = n.icon || w?.[de] || dJe(de);
+ let je = n.icon || w?.[de] || fJe(de);
return /*#__PURE__*/ B.createElement("li", {
tabIndex: 0,
ref: le,
@@ -81725,7 +81702,7 @@ var MJe = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: X9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? vJe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {
+ }, w?.close ?? yJe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {
"data-icon": "",
className: X9(C?.icon, n?.classNames?.icon)
}, de === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, de === "loading" ? null : je) : null, /*#__PURE__*/ B.createElement("div", {
@@ -81786,9 +81763,9 @@ function NJe(e, t) {
}
var PJe = /*#__PURE__*/ B.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 = wJe, toastOptions: g, dir: _ = Z9(), gap: v = OJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = B.useState([]), w = B.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = B.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = B.useState([]), [O, k] = B.useState(!1), [A, j] = B.useState(!1), [M, N] = B.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = B.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = B.useRef(null), I = B.useRef(!1), te = B.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+ C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return B.useEffect(() => K9.subscribe((e) => {
+ return B.useEffect(() => G9.subscribe((e) => {
if (e.dismiss) {
requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
@@ -81927,7 +81904,7 @@ var PJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
}), $9 = !1, FJe = (e, t) => {
- $9 || ($9 = !0, (0, AN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(PJe, {
+ $9 || ($9 = !0, (0, kN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(PJe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -81962,4 +81939,4 @@ var PJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
});
};
//#endregion
-export { kne as configureBatchDock, Mne as configureGlowPicker, Nie as configureImmerse, Wie as configureManageHeader, DKe as configureRouter, Pbe as configureSettingsPanel, AKe as configureSidebar, lJe as configureStage, FJe as mountToaster, sGe as prefetchManagedRoute, IJe as showToast };
+export { Ane as configureBatchDock, Nne as configureGlowPicker, Pie as configureImmerse, Gie as configureManageHeader, EKe as configureRouter, jbe as configureSettingsPanel, kKe as configureSidebar, uJe as configureStage, FJe as mountToaster, oGe as prefetchManagedRoute, IJe as showToast };
diff --git a/web/index.html b/web/index.html
index 8a827b272..f4dfa599f 100644
--- a/web/index.html
+++ b/web/index.html
@@ -167,7 +167,6 @@
<symbol id="i-heart" viewBox="0 0 24 24"><path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" /></symbol>
<symbol id="i-upload" viewBox="0 0 24 24"><path d="M12 3v12" /><path d="m17 8-5-5-5 5" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /></symbol>
<symbol id="i-download" viewBox="0 0 24 24"><path d="M12 15V3" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><path d="m7 10 5 5 5-5" /></symbol>
- <symbol id="i-cloud-download" viewBox="0 0 24 24"><path d="M12 13v8l-4-4" /><path d="m12 21 4-4" /><path d="M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284" /></symbol>
<symbol id="i-database" viewBox="0 0 24 24"><ellipse cx="12" cy="5" rx="9" ry="3" /><path d="M3 5V19A9 3 0 0 0 21 19V5" /><path d="M3 12A9 3 0 0 0 21 12" /></symbol>
<symbol id="i-play" viewBox="0 0 24 24"><path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" /></symbol>
<symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" /><path d="M12 6v6l4 2" /></symbol>
diff --git a/web/vendor/lucide-ORIGIN.md b/web/vendor/lucide-ORIGIN.md
index b629bad74..9b4c6aea6 100644
--- a/web/vendor/lucide-ORIGIN.md
+++ b/web/vendor/lucide-ORIGIN.md
@@ -3,7 +3,7 @@
- npm 包:`[email protected]`
- npm lock integrity:`sha512-yWIrkdXc688Feq5VjOktsKmV5Ikc7y5Nu3rrdtbr8nWjkJWk8QlnZfVtIak22Af+fNhZ7k4cTJpZo1zmj7X5sA==`
- 许可证:ISC;原文见 `lucide-LICENSE.txt`
-- 消费者:`web/index.html` 内联的 124 个 symbol
+- 消费者:`web/index.html` 内联的 123 个 symbol
雪碧图里另有 9 枚自绘 symbol(check-check-outline、shuffle、alert、pics、jav、theater-enter、theater-exit、brand-minnano、mark-javdb)与 16 枚 player-* 前缀的播放器图标,都没有上游可对。
RSS 与拖动点保留填充修正,避免小圆点在全局描边样式下消失。