Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 垃圾文件队列改由路由树画进 #grid

longmeidao6d09317d210c
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index c38dc8188..ffe4c72d4 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -92,11 +92,12 @@ island。原因是那一套一上来就打 `/api/items`,而未配置的机器
目录(`/` 与筛选态、`/trash`)、资料页作品区和详情页的接着看画的都是同一张网格(`frontend/src/react/catalog-grid/`)。作品卡是 `components/media-card.tsx`,Mix 卡用播放列表页那张 `components/mix-card.tsx`。三种取数按 `mode` 分:
- `catalog` 登记在 `CATALOG_ROUTES`,由路由树画进 `#grid`。表按页面分键:目录各路径与回收站都用 `/` 打开,槽里的路径说的是画着哪一页、不是地址;`CATALOG_PATHS` 只进 `<Routes>` 的声明,不进 `isManagedPath`。筛选态是壳的 `state`,打开时连同版式、选择态、助手与动作整份交进来;之后壳的 `paintGridPage` 看 `#grid` 的 `managedEntry`:画着就经 `updateManagedRoute` 推新筛选与 `revision`,查询换键重取、不重挂;首屏还在途就重开一次。冷启动经 `place` 交 `revealRoutedPage`,骨架淡出与整页同批交接。读数行 `#count` 的结构归壳,读数那一格、`#loadSentinel` 的自动续页、Mix 落位、竖屏带与分卷/版次折叠都在页面里。判据钉在 `test/react/catalog-routes.test.tsx`。
+- 垃圾文件队列(`/junk-files`,`frontend/src/react/junk-queue/`)不是这张网格,是 `CATALOG_ROUTES` 的另一页,同样画进 `#grid`:打开前不取数,画上就铺自己那份骨架;换分类、换视图与处置后重读经 `updateManagedRoute` 推进来。它与目录网格换页时先由 `clearCatalogGrid` 收,计数行里归它的那一格随之同步撤掉,壳再往 `#count` 铺骨架。
- `entity` 由资料页正文 `entity-body`(`frontend/src/react/entity-body/`)直接渲染在它的作品视图里,不另挂岛:第一页随资料页首屏一起取来,续页由资料页按查询键取。同一块的另两个视图是名册(索引页的 `PeopleGrid`)与照片墙(样张分段在前、本地图片在后;直接打开 React 灯箱(`photo-lightbox/`),定位源文件调 `actions.revealSource`)。
- `items` 挂在 `#nrow` 上:壳手上已有那一批,岛只画卡。
- 版式、选中态与快进秒数经 `updateManagedRoute`(资料页作品区经 `pushEntityPage`)推进来:换版式只重画,已载入的分页原样保留。`selected` 每次推一个新的 `Set`。
- 卡上的悬停预览、封面取景与图片微光都在 `frontend/src/card-art/`:卡片直接调 `wireHover`/`releaseHover`(状态写在卡的 `data-previewing`/`data-longhover` 上)与 `relayoutCovers`,微光由 `installCardArt` 装的监听按 `PENDING_IMAGES` 认 `[data-media-art]>img`;壳只经 `configureHoverPreview` 告诉悬停预览多选态、打码与延迟。卡片的结构钩子全是 `data-media-*`;悬停预览插进封面格的 `video.hv`、`img.hvframes` 与封套 `img.poster` 用自己的类名,样式在 `12-cards.css`。
-- 离场:去目录与回收站以外的页面时由 `clearCatalogGrid` 收 `#grid` 那一页(`claimSurface` 只收 `#stats` 与 `#index`);资料页正文随资料页由 `releaseManagedRoute` 收起;接着看是作品详情里的子组件,随舞台岛的内容一起卸。
+- 离场:去目录、回收站与垃圾文件以外的页面时由 `clearCatalogGrid` 收 `#grid` 那一页(`claimSurface` 只收 `#stats` 与 `#index`);资料页正文随资料页由 `releaseManagedRoute` 收起;接着看是作品详情里的子组件,随舞台岛的内容一起卸。
- 屏外卡用 `content-visibility` 跳过封面与元信息区的渲染,不做虚拟列表。
- 单卡写操作都由用户点击触发:稍后看走 `actions.watchLater`,回收站卡的还原走 `actions.resourceOperation`,做完给撤销;彻底删除只在批量条上,先过 `confirmModal` 的危险档。
@@ -120,10 +121,10 @@ island。原因是那一套一上来就打 `/api/items`,而未配置的机器
### 客户端导航
-React Router 以 Declarative 模式接管历史(`frontend/src/react/router/`)。每一屏仍由壳的 `ROUTES` 表打开;管理区十页(统计、口味、复核、数据管理、重复文件、高清版、来源与凭证、配置、活动、关注管理)的正文、播放列表页、关注页、五张索引页、五类资料页与目录网格由路由树画。
+React Router 以 Declarative 模式接管历史(`frontend/src/react/router/`)。每一屏仍由壳的 `ROUTES` 表打开;管理区十页(统计、口味、复核、数据管理、重复文件、高清版、来源与凭证、配置、活动、关注管理)的正文、播放列表页、关注页、五张索引页、五类资料页、目录网格与垃圾队列由路由树画。
-- 历史只有一份:`@peach/history` 随 `peach-ui.js` 发出,壳的 `route()` 经 `shellNavigate` 写地址,`<Router>` 的 `navigator` 也是它。路由树挂在一个不进文档的容器上,管理区那一页与播放列表页、关注页经 portal 画进 `#stats`,索引页与资料页画进 `#index`,目录网格画进 `#grid`。
-- 派发点 `RouteDispatch` 是 `<Routes>` 的兄弟,从头到尾是同一个实例。它在每次历史变化后报给 `routeSeen`,由它决定要不要调 `restoreRoute`。报在提交阶段之后的微任务里:壳打开那一屏时用 `flushSync` 画侧栏等岛,提交阶段内的 `flushSync` 不同步刷新别的根。`<Routes>` 里那十五页、资料页的五个模式、目录网格的五条路径与 `/resource-sync` 只声明路径,其余落在 `path="*"`。
+- 历史只有一份:`@peach/history` 随 `peach-ui.js` 发出,壳的 `route()` 经 `shellNavigate` 写地址,`<Router>` 的 `navigator` 也是它。路由树挂在一个不进文档的容器上,管理区那一页与播放列表页、关注页经 portal 画进 `#stats`,索引页与资料页画进 `#index`,目录网格与垃圾队列画进 `#grid`。
+- 派发点 `RouteDispatch` 是 `<Routes>` 的兄弟,从头到尾是同一个实例。它在每次历史变化后报给 `routeSeen`,由它决定要不要调 `restoreRoute`。报在提交阶段之后的微任务里:壳打开那一屏时用 `flushSync` 画侧栏等岛,提交阶段内的 `flushSync` 不同步刷新别的根。`<Routes>` 里那十五页、资料页的五个模式、`#grid` 那两页的六条路径与 `/resource-sync` 只声明路径,其余落在 `path="*"`。
- 管理区宿主跟着壳登记的那一条走,不跟地址:壳的 `openXxx` 照旧收舞台、铺骨架、认领表面,再 `openManagedRoute(path, open, {container, isCurrent, place})`。它领一个代次、先取首屏,取齐后在同一个任务里清掉骨架、放进 `.peach-react` 宿主(给了 `place` 就由它把壳排的框架换进容器、交出宿主),宿主用 `flushSync` 当场画完,骨架与正文之间没有空白帧;同一路径再打开就是新代次,页面重挂重取。三个容器各记一条、互不相收,`releaseManagedRoute` 逐个点名容器:`claimSurface` 收 `#stats` 与 `#index`,`showHomeSurfaces` 只收 `#index` 那一条,`#grid` 只由 `clearCatalogGrid` 收,资料页压在管理页上时管理页藏着照常活;详情舞台推 `/item/:id` 不经过它们,页面留在舞台下面。打开之后壳的开关(选择键、资料页换筛选与版式)经 `updateManagedRoute(container, patch)` 合进画着的那一页:代次不变,不重挂、不重取,照常排进下一次渲染。
- `open` 只带那一次才算得出的值(地址上的分类与页签、只读状态、引导标记、云下载预填);回执与换到还归壳的那几屏走壳交给 `configureRouter(actions)` 的 `ShellActions`,经 Context 下发。管理区十页之间的跳转交 `navigate`,派发照旧回到壳;别的路径(含索引页与资料页)交 `actions.navigate`。配置页页签与云下载预填先交给壳再换地址,不进地址栏。判据钉在 `test/react/managed-routes.test.tsx`。
- 派发判据是序号:每次历史变化领一个 `seq`;`shellNavigate` 写的那一次当场认领,不派发;后退前进与 React 子树里的 `navigate` 没人认领,派发一次。地址不变的 `popstate` 也领新序号,照样派发。
@@ -274,7 +275,7 @@ await ui.mountIsland('playlists', $('#stats'), props, {isCurrent: () => surfaceC
- 离场有两道闸。第一道是壳:`claimSurface` 是所有页面共同经过的换页点,它在那里对管理区
正文(`#stats`)调 `unmountIsland`,根连同它的轮询一起停;路由树画的页面在同一处由
`releaseManagedRoute($('#stats'),$('#index'))` 收起,`showHomeSurfaces` 是索引页与资料页重画前的公共点,收 `#index` 那一页,
- 目录网格离开目录时由 `clearCatalogGrid` 收。
+ `#grid` 那一页离开目录时由 `clearCatalogGrid` 收。
多数页面的离场路径是直接 `innerHTML=`,根被挤出文档却照样活着,所以卸载必须由这
几个公共点负责,而不是逐页判断。第二道是 `isCurrent`:取数落地时用户可能已经走开,
这时不画。再进这一页时 `mountIsland` 先自我卸载,同时只有一份。
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index a82c7a881..2883e759f 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -210,8 +210,8 @@ async function openProcessing(
/** 1280 的桌面视口比 `--board-content` 还窄,量不出「网格铺满、标题居中」这类差别。 */
const WIDE = { name: 'wide', width: 1600, height: 900, mobile: false };
-/** 垃圾文件页。计数行由 `junk-queue` island 画,演示库里一条候选都没有时它照样在;壳铺的
- * 骨架(`[data-junk-count-skeleton]`)也有这两块,等的是 island 接管之后的那一版。 */
+/** 垃圾文件页。计数行由垃圾队列那一页画,演示库里一条候选都没有时它照样在;壳铺的
+ * 骨架(`[data-junk-count-skeleton]`)也有这两块,等的是页面接管之后的那一版。 */
const JUNK_COUNT = '#count > .peach-react:not([data-junk-count-skeleton])';
async function openJunk(browser: Browser): Promise<Visit> {
const opened = await visit(browser, '/junk-files', WIDE);
diff --git a/frontend/e2e/smoke.test.ts b/frontend/e2e/smoke.test.ts
index 9e5616584..a7e40925a 100644
--- a/frontend/e2e/smoke.test.ts
+++ b/frontend/e2e/smoke.test.ts
@@ -92,7 +92,7 @@ const ROUTES: readonly Route[] = [
page.locator('#stats section[aria-label="媒体修复"]')],
},
{
- // 演示库里没有垃圾候选,等到的是 `junk-queue` 的空态标题;壳铺的骨架只有卡片占位。
+ // 演示库里没有垃圾候选,等到的是垃圾队列那一页的空态标题;壳铺的骨架只有卡片占位。
path: '/junk-files',
body: (page) => [heading(page, '#main', '垃圾文件'), heading(page, '#grid', '没有待判断的垃圾文件')],
},
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index d21fb7865..0269f4382 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -44,7 +44,6 @@ export { junkCountSkeletonHtml, junkPath, junkRoute } from './junk-queue';
export interface IslandContracts {
'catalog-filter': ReactBundle.CatalogFilterProps;
'feed-new': ReactBundle.FeedNewProps;
- 'junk-queue': ReactBundle.JunkQueueProps;
'library-processing': ReactBundle.LibraryProcessingProps;
search: ReactBundle.SearchProps;
}
@@ -61,7 +60,6 @@ interface Island {
const REGISTRY: { [N in IslandName]: Island } = {
'catalog-filter': { react: 'catalog-filter' },
'feed-new': { react: 'feed-new' },
- 'junk-queue': { react: 'junk-queue' },
'library-processing': { react: 'library-processing' },
search: { react: 'search' },
};
diff --git a/frontend/src/junk-queue.ts b/frontend/src/junk-queue.ts
index b5059eacd..45afe860a 100644
--- a/frontend/src/junk-queue.ts
+++ b/frontend/src/junk-queue.ts
@@ -1,10 +1,10 @@
/* 垃圾文件队列(`/junk-files`)的路由与计数行骨架。
*
* 看哪一类、看待判断还是已排除,全由地址决定:分类链接是可深链的 `<a href>`,刷新后原样恢复。
- * 壳(`web/app.js`)与 `junk-queue` island 读的是同一组函数,所以放在 island 层这边,不依赖 React。
+ * 壳(`web/app.js`)与垃圾队列那一页读的是同一组函数,所以放在 island 层这边,不依赖 React。
*
* 计数行骨架是壳在 React 包加载之前铺的那一版,画在 `.peach-react` 里,结构、`data-*` 钩子与
- * 类名和 island 等数据时画出来的那一版逐项相同(`junk-queue/junk-count.tsx`,用例对照两者),
+ * 类名和页面等数据时画出来的那一版逐项相同(`junk-queue/junk-count.tsx`,用例对照两者),
* 所以接管那一拍这一行不跳。分类与视图此刻就有答案,只有读数和各类的计数徽标要等数据。 */
import { esc } from '@peach/legacy/core';
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 394989835..74fae018c 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -470,7 +470,6 @@ export interface PlaylistsProps {
export interface ReactPages {
'catalog-filter': ReactPage<CatalogFilterProps>;
'feed-new': ReactPage<FeedNewProps>;
- 'junk-queue': ReactPage<JunkQueueProps>;
'library-processing': ReactPage<LibraryProcessingProps>;
search: ReactPage<SearchProps>;
}
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index 3c3fb889f..6fbdeb135 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -10,7 +10,6 @@ import { CatalogFilterPage } from './catalog-filter/catalog-filter-page';
import { SearchPage } from './search/search-page';
import { prefetchFeedNew } from './feed-new/feed-new';
import { FeedNewPage } from './feed-new/feed-new-page';
-import { JunkQueuePage } from './junk-queue/junk-queue-page';
import { prefetchLibraryProcessing } from './library-processing/library-processing';
import { LibraryProcessingCard } from './library-processing/library-processing-card';
import { LibraryProcessingNotice } from './library-processing/library-processing-notice';
@@ -50,9 +49,6 @@ export const pages: Bundle.ReactPages = {
'catalog-filter': { prefetch: async () => {}, mount: mounter(CatalogFilterPage) },
/* 首页那一行新作:骨架还占着就连头几张封面一起等,再一次换掉。 */
'feed-new': { prefetch: prefetchFeedNew, mount: mounter(FeedNewPage) },
- /* 分类条由地址决定、挂上就画得出最终样子,等的只有读数:首屏不在这里等,由页面自己的
- 查询驱动等待态(`junk-queue-page.tsx` 开头)。 */
- 'junk-queue': { prefetch: async () => {}, mount: mounter(JunkQueuePage) },
'library-processing': {
prefetch: (_props, signal) => prefetchLibraryProcessing(signal),
mount: mounter(LibraryProcessing),
diff --git a/frontend/src/react/junk-queue/junk-queue-page.tsx b/frontend/src/react/junk-queue/junk-queue-page.tsx
index bf295a766..fbc10b425 100644
--- a/frontend/src/react/junk-queue/junk-queue-page.tsx
+++ b/frontend/src/react/junk-queue/junk-queue-page.tsx
@@ -1,9 +1,9 @@
-/* 垃圾文件队列(`junk-queue` island,`/junk-files`):计数行加一屏逐项处置的卡片。
+/* 垃圾文件队列(`/junk-files`,由路由树画进 `#grid`):计数行加一屏逐项处置的卡片。
*
- * 岛根挂在壳的 `#grid` 上,计数行经 portal 画进 `#count` 里自己建的一个 `.peach-react` 容器:
+ * 页面画在壳的 `#grid` 里,计数行经 portal 画进 `#count` 里自己建的一个 `.peach-react` 容器:
* 那一行本身归壳(目录页也用它,换页时由壳清空),里面的摘要与分类条归这里。
*
- * 首屏不在 `prefetch` 里等。分类条由地址决定、此刻就画得出最终样子,等的只有读数,所以挂上
+ * 首屏不在 `prefetch` 里等。分类条由地址决定、此刻就画得出最终样子,等的只有读数,所以一打开
* 就画:计数行是等待态(`#count[aria-busy]`、摘要里一条占位),网格是壳那份骨架,数据到了
* 骨架淡出、卡片从模糊里清晰起来(同目录网格)。在 `prefetch` 里等的话,请求挂着的这段时间
* 屏上只有壳的静态骨架,分类点不动。
@@ -69,7 +69,7 @@ export function JunkQueuePage(props: JunkQueueProps) {
);
}
-/** 计数行里归 island 的那一格。挂上时换掉壳铺的骨架,卸载时撤掉,行本身还给壳。 */
+/** 计数行里归这一页的那一格。挂上时换掉壳铺的骨架,卸载时撤掉,行本身还给壳。 */
function useCountHost(row: HTMLElement | null): HTMLElement | null {
const [host, setHost] = useState<HTMLElement | null>(null);
useLayoutEffect(() => {
diff --git a/frontend/src/react/junk-queue/junk-queue.ts b/frontend/src/react/junk-queue/junk-queue.ts
index 418fa74b1..460733f79 100644
--- a/frontend/src/react/junk-queue/junk-queue.ts
+++ b/frontend/src/react/junk-queue/junk-queue.ts
@@ -1,4 +1,4 @@
-/* 垃圾文件队列(`junk-queue` island)的数据与对外契约。
+/* 垃圾文件队列(`CATALOG_ROUTES['/junk-files']`)的数据与对外契约。
*
* 队列一次取 200 条(`/api/ads?limit=200&status=…[&kind=…]`,`src/peach/web_batch.py` 的 `q_ads`
* 现算评分),客户端按「每批条数」一段段露出来;换分类、换视图就是换查询键。写操作只有三种,
@@ -96,7 +96,7 @@ export interface JunkQueueProps extends JunkRoute {
revision: number;
selectMode: boolean;
selected: ReadonlySet<number>;
- /** 计数行(`#count`)。行本身归壳(换页时由壳清空),里面的摘要与分类条归 island。 */
+ /** 计数行(`#count`)。行本身归壳(换页时由壳清空),里面的摘要与分类条归这一页。 */
countRow: HTMLElement | null;
/** 网格骨架的 HTML(遗留层 `pageSkeletonHtml`),和壳首屏铺的是同一份。 */
skeletonHtml(): string;
diff --git a/frontend/src/react/router/managed-routes.tsx b/frontend/src/react/router/managed-routes.tsx
index 564b9091b..9ced0eeab 100644
--- a/frontend/src/react/router/managed-routes.tsx
+++ b/frontend/src/react/router/managed-routes.tsx
@@ -2,12 +2,12 @@
*
* `MANAGED_ROUTES` 是管理区那几页(画进 `#stats`),键是精确路径;`BROWSE_ROUTES` 是同样画进 `#stats`
* 的播放列表页与关注页;`INDEX_ROUTES` 是索引页、`ENTITY_ROUTES` 是资料页(都画进 `#index`),资料页按模式登记
- * (`/performers/*`),种类与名字跟着打开走;`CATALOG_ROUTES` 是画进 `#grid` 的目录网格,按页面分键。壳每次
- * 打开一页时交进来的 `open` 只带那一次才算得出的值(地址上的分类与页签、只读状态、引导标记、一次性预填、
- * 刷新代次),目录网格是壳那一整份 props;回执与换到还归壳的那几屏走 `ShellActions`。管理区几页之间的
- * 跳转走 `go`:落在 `MANAGED_ROUTES` 上的交给 React Router 的 `navigate`,其余交壳。另外四张表的页面不走
- * `go`:它们在页内写地址一律由壳认领(`routeIndex`、资料页与关注页的 `actions.route`、目录的换筛选),
- * 跨页也交壳,派发次数同壳自己打开。 */
+ * (`/performers/*`),种类与名字跟着打开走;`CATALOG_ROUTES` 是画进 `#grid` 的目录网格与垃圾队列,按页面
+ * 分键。壳每次打开一页时交进来的 `open` 只带那一次才算得出的值(地址上的分类与页签、只读状态、引导标记、
+ * 一次性预填、刷新代次),`#grid` 那两页是壳那一整份 props;回执与换到还归壳的那几屏走 `ShellActions`。
+ * 管理区几页之间的跳转走 `go`:落在 `MANAGED_ROUTES` 上的交给 React Router 的 `navigate`,其余交壳。另外
+ * 四张表的页面不走 `go`:它们在页内写地址一律由壳认领(`routeIndex`、资料页与关注页的 `actions.route`、
+ * 目录的换筛选、垃圾队列的换分类),跨页也交壳,派发次数同壳自己打开。 */
import type { ReactElement } from 'react';
import { javDisplayName, javTitleHtml } from '@peach/legacy/jav-title';
@@ -30,6 +30,7 @@ import { prefetchFollowManage } from '../follow-manage/follow-manage';
import { FollowManagePage } from '../follow-manage/follow-manage-page';
import { prefetchIndex } from '../index/index-data';
import { IndexPage } from '../index/index-page';
+import { JunkQueuePage } from '../junk-queue/junk-queue-page';
import { prefetchPlaylists } from '../playlists/playlists';
import { PlaylistsPage } from '../playlists/playlists-page';
import { prefetchQualityGoals } from '../quality-goals/quality-goals';
@@ -199,28 +200,35 @@ export const ENTITY_ROUTES: EntityRouteTable = {
'/agencies/*': entityRoute,
};
-/* 目录网格:首页、四个筛选态里除垃圾文件外的三个,和回收站,画的都是这一张网格,筛选是壳那一份
- `state`。表按页面分键:壳一律用 `/` 打开它,槽里记的路径说的是
- 画着哪一页、不是地址。按地址分键会在三处出错:网格在 `/trash` 打开之后去 `/` 是就地推,槽里的路径
- 不跟着变;`?state=ads` 在 `/` 上画的是垃圾队列;冷启动落在详情地址上时,网格在 `/item/:id` 底下补画。
- 首屏取第一页再画;之后换筛选、换版式、选择模式与刷新代次都由壳经 `updateManagedRoute` 推进来,
- 页面按新键重取、自己铺骨架,不重挂。 */
+/* 画进 `#grid` 的两页。目录网格:首页、四个筛选态里除垃圾文件外的三个,和回收站,画的都是这一张网格,
+ 筛选是壳那一份 `state`;垃圾队列:垃圾文件那一屏,分类与视图只从地址读。表按页面分键:壳用 `/` 打开
+ 网格、用 `/junk-files` 打开队列,槽里记的路径说的是画着哪一页、不是地址。按地址分键会在三处出错:网格在
+ `/trash` 打开之后去 `/` 是就地推,槽里的路径不跟着变;`?state=ads` 落在 `/` 上,画的是垃圾队列;冷启动
+ 落在详情地址上时,网格在 `/item/:id` 底下补画。
+ 网格首屏取第一页再画;队列不在打开前等,画上就铺自己那份骨架(`junk-queue-page.tsx` 开头)。之后换
+ 筛选或分类、换版式、选择模式与刷新代次都由壳经 `updateManagedRoute` 推进来,页面按新键重取、自己铺
+ 骨架,不重挂。 */
export const CATALOG_ROUTES: CatalogRouteTable = {
'/': {
prefetch: (open, signal) => prefetchCatalogGrid(open, signal),
page: (open) => <CatalogGridPage {...open} />,
},
+ '/junk-files': {
+ prefetch: async () => {},
+ page: (open) => <JunkQueuePage {...open} />,
+ },
};
const isCatalogPage = (path: string): path is CatalogPagePath => Object.hasOwn(CATALOG_ROUTES, path);
-/** 画着目录网格时地址可能落在的路径:首页、三个筛选态与回收站。只进 `<Routes>` 的声明,不当槽里的键。 */
-export const CATALOG_PATHS = ['/', '/unseen', '/watch-later', '/flagged', '/trash'] as const;
+/** 画着 `#grid` 那两页时地址可能落在的路径:首页、三个筛选态、回收站与垃圾文件。只进 `<Routes>` 的声明,
+ * 不当槽里的键。 */
+export const CATALOG_PATHS = ['/', '/unseen', '/watch-later', '/flagged', '/trash', '/junk-files'] as const;
-/** `<Routes>` 声明的路径:前四张表的键,加上目录网格画着时地址可能落在的路径。 */
+/** `<Routes>` 声明的路径:前四张表的键,加上 `#grid` 那两页画着时地址可能落在的路径。 */
export const ROUTED_PATHS: readonly string[] = [
...Object.keys(MANAGED_ROUTES), ...Object.keys(BROWSE_ROUTES), ...Object.keys(INDEX_ROUTES),
...Object.keys(ENTITY_ROUTES), ...CATALOG_PATHS,
];
-/** 路由树画得了这一页吗:首屏取数与画页按槽里记的路径查,目录网格只认它的页面键。 */
+/** 路由树画得了这一页吗:首屏取数与画页按槽里记的路径查,`#grid` 那两页只认页面键。 */
export const isRoutedPath = (path: string): path is RoutedPath => (
isManagedPath(path) || isBrowsePath(path) || Object.hasOwn(INDEX_ROUTES, path) || Object.hasOwn(ENTITY_ROUTES, path)
|| isCatalogPage(path));
diff --git a/frontend/src/react/router/router.tsx b/frontend/src/react/router/router.tsx
index 484a045bc..f4ad9e1f5 100644
--- a/frontend/src/react/router/router.tsx
+++ b/frontend/src/react/router/router.tsx
@@ -1,6 +1,6 @@
/* 客户端导航(ADR-0031「React Router 外壳阶段接管」):React Router 的 Declarative 模式接管 history。
- * 管理区那几页、播放列表页与关注页、索引页与资料页、目录网格(`managed-routes.tsx`)由这棵树画,其余页面仍由壳的
- * `ROUTES` 表打开。
+ * 管理区那几页、播放列表页与关注页、索引页与资料页、目录网格与垃圾队列(`managed-routes.tsx`)由这棵树画,
+ * 其余页面仍由壳的 `ROUTES` 表打开。
*
* 用底层的 `<Router>`,history 是 `@peach/history` 那一份:壳在 React 包到之前就要写地址,`<BrowserRouter>`
* 自己建的 history 只听 `popstate`,看不见壳 push 进去的条目。也不用 `unstable_HistoryRouter`:它的更新
@@ -67,8 +67,8 @@ function NavigateInto({ target }: { target: RefObject<NavigateFunction | null> }
}
/** 管理区页面里的跳转:落在管理区那几页上的交给 React Router(派发照旧回到壳,打开次数与壳自己写地址
- * 再打开相同),别的路径交壳自己写地址、按路由表打开。播放列表页、关注页、索引页、资料页与目录虽然也由路由树画,仍交壳:
- * 同一页换 search 必须由壳认领,跨页进来也是壳写地址再自己打开。 */
+ * 再打开相同),别的路径交壳自己写地址、按路由表打开。播放列表页、关注页、索引页、资料页、目录与垃圾文件虽然也由
+ * 路由树画,仍交壳:同一页换 search 必须由壳认领,跨页进来也是壳写地址再自己打开。 */
export function managedGo(path: string, actions: ShellActions, navigate: NavigateFunction): void {
const target = new URL(path, window.location.href);
if (!isManagedPath(target.pathname)) { actions.navigate(path); return }
diff --git a/frontend/src/react/router/shell-actions.ts b/frontend/src/react/router/shell-actions.ts
index 1ace7ac7a..82d43501b 100644
--- a/frontend/src/react/router/shell-actions.ts
+++ b/frontend/src/react/router/shell-actions.ts
@@ -9,6 +9,7 @@ import type { CatalogGridProps } from '../catalog-grid/types';
import type { OnlineAuthor } from '../follow/online-vocab';
import type { FollowFeedProps } from '../follow-feed/follow-feed';
import type { IndexKind, IndexPerson, IndexRoute, PeopleLayout, PersonAvatar } from '../index/index-data';
+import type { JunkQueueProps } from '../junk-queue/junk-queue';
/** 云下载表单的预填:番号、标题与来处(`asset:12`、`follow:34`、`wishlist:5`)。 */
export interface CloudDownloadPrefill { code?: string; title?: string; origin?: string }
@@ -103,14 +104,16 @@ export interface BrowseOpenProps {
export type BrowseRoutePath = keyof BrowseOpenProps;
-/** 目录网格画进 `#grid`,同样不算管理区:进目录要由壳按地址重建筛选(`openCatalog`,进首页还要重掷
- * 种子、作废顶部三层的缓存),回收站要把筛选钉成 `trash`,这些只有壳做得到。表按页面分键,不按地址:
- * 目录各路径与回收站画的都是 `/` 这一页,网格在 `/trash` 打开之后去 `/` 是就地推。打开时交进来的是
- * 壳那一整份 props(筛选、版式、选择态与卡片的助手和动作),之后的换筛选、换版式、选择模式经
+/** 目录网格与垃圾队列画进 `#grid`,同样不算管理区:进目录要由壳按地址重建筛选(`openCatalog`,进首页
+ * 还要重掷种子、作废顶部三层的缓存),回收站要把筛选钉成 `trash`,这些只有壳做得到。表按页面分键,不按
+ * 地址:目录各路径与回收站画的都是 `/` 这一页,网格在 `/trash` 打开之后去 `/` 是就地推;`/junk-files`
+ * 是垃圾队列那一页,`?state=ads` 落在 `/` 上时画的也是它。打开时交进来的是壳那一整份 props(筛选或
+ * 分类、版式、选择态与卡片的助手和动作),之后的换筛选、换版式、选择模式与刷新代次经
* `updateManagedRoute` 推进来。卡片的助手与动作是壳里各一份、身份不变的对象(卡片按引用比较),
- * 资料页的作品区与详情的接着看用的也是这一份,所以跟着打开走,不进 `ShellActions`。 */
+ * 目录网格那一份资料页的作品区与详情的接着看也在用,所以跟着打开走,不进 `ShellActions`。 */
export interface CatalogOpenProps {
'/': CatalogGridProps;
+ '/junk-files': JunkQueueProps;
}
export type CatalogPagePath = keyof CatalogOpenProps;
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 9caf741ad..e6d522b47 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -43,8 +43,7 @@ async function until(ok: () => boolean, what: string): Promise<void> {
describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual([
- 'catalog-filter', 'feed-new',
- 'junk-queue', 'library-processing', 'search']);
+ 'catalog-filter', 'feed-new', 'library-processing', 'search']);
});
it('未注册的名字立刻失败,不是静默什么都不画', async () => {
diff --git a/frontend/test/react/catalog-routes.test.tsx b/frontend/test/react/catalog-routes.test.tsx
index 3722169f6..64b7e8f00 100644
--- a/frontend/test/react/catalog-routes.test.tsx
+++ b/frontend/test/react/catalog-routes.test.tsx
@@ -1,14 +1,15 @@
-/* 目录网格由路由树画进 `#grid`(`CATALOG_ROUTES`):冷启动的骨架经 `revealSkeleton` 抬成淡出层,与整页落在同一批
- * 变化里;壳认领表面只收 `#stats` 与 `#index`,`#grid` 上那一页留着;停在目录时壳经 `updateManagedRoute` 推选择态、
- * 版式与筛选,页面不重挂、代次不变,换筛选只按新键重取一次;壳那一份助手与动作原样交给页面;目录的路径不交给
- * React Router。
+/* 目录网格与垃圾队列由路由树画进 `#grid`(`CATALOG_ROUTES`):冷启动的骨架经 `revealSkeleton` 抬成淡出层,与整页
+ * 落在同一批变化里;壳认领表面只收 `#stats` 与 `#index`,`#grid` 上那一页留着;停在目录时壳经 `updateManagedRoute`
+ * 推选择态、版式与筛选,页面不重挂、代次不变,换筛选只按新键重取一次;垃圾队列一次清空骨架,收起时计数行那一格
+ * 同步撤掉;壳那一份助手与动作原样交给页面;这些路径不交给 React Router。
*
- * 一屏卡片怎么排、卡面画什么由 `catalog-grid.test.tsx` 管,这里看的是路由树这一层。 */
+ * 一屏卡片怎么排、卡面画什么由 `catalog-grid.test.tsx` 与 `junk-queue.test.tsx` 管,这里看的是路由树这一层。 */
import { act, type ReactElement } from 'react';
import { createRoot } from 'react-dom/client';
import { afterEach, beforeAll, expect, it, vi } from 'vitest';
import type { CatalogGridProps, MediaCardActions, MediaCardHelpers } from '../../src/react/catalog-grid/types';
+import type { JunkQueueProps } from '../../src/react/junk-queue/junk-queue';
import type { ShellActions } from '../../src/react/router/shell-actions';
// @ts-expect-error 遗留模块由浏览器直接加载,此测试调用实际实现。
import { revealSkeleton } from '../../../web/js/ui-components.js';
@@ -65,13 +66,22 @@ const catalogPage = (sort: string) => ({
items: [1, 2, 3].map((id) => ({ id, name: `作品 ${id} ${sort}`, has_thumb: true })), total: 3,
});
const playlistPage = { items: [] };
+/** 垃圾队列的一页:名字带着分类,认得出画的是哪一次取回来的。 */
+const junkPage = (kind: string) => ({
+ items: [11, 12, 13].map((id) => ({
+ id, name: `垃圾 ${id} ${kind || '全部'}.mp4`, junk_kind: kind || 'video', why: '时长过短', location: 'local', cost: 'free',
+ })),
+ total: 3, all_total: 3, dismissed_total: 0, counts: { video: 3 },
+});
-/** 目录与播放列表的取数:`/api/items` 可以手动兑现(首屏等的就是它)。 */
+/** 目录、垃圾队列与播放列表的取数:`/api/items` 可以手动兑现(首屏等的就是它)。 */
function catalogFetch({ deferred = false } = {}) {
const pending: Array<() => void> = [];
const fetched = vi.fn((input: string, init?: RequestInit) => {
const url = new URL(String(input), 'http://peach.test');
- const body = url.pathname === '/api/playlists' ? playlistPage : catalogPage(url.searchParams.get('sort') || '');
+ const body = url.pathname === '/api/playlists' ? playlistPage
+ : url.pathname === '/api/ads' ? junkPage(url.searchParams.get('kind') || '')
+ : catalogPage(url.searchParams.get('sort') || '');
if (!deferred || url.pathname !== '/api/items') return Promise.resolve(reply(body));
return new Promise<Reply>((resolve, reject) => {
pending.push(() => resolve(reply(body)));
@@ -102,6 +112,21 @@ const catalogOpen = (patch: Partial<CatalogGridProps> = {}): CatalogGridProps =>
mix: false, shorts: false, onCount: vi.fn(), emptyHtml: () => '', canLoadMore: () => true, ...patch,
});
+/** 垃圾队列那一页的打开:计数行是壳的 `#count`,壳往里铺着骨架那一版。 */
+function junkOpen(patch: Partial<JunkQueueProps> = {}): JunkQueueProps {
+ const countRow = document.createElement('div');
+ countRow.id = 'count';
+ countRow.innerHTML = '<div class="peach-react" data-junk-count-skeleton=""></div>';
+ document.body.append(countRow);
+ return {
+ kind: '', view: 'pending', helpers: { badgeHtml: () => '' },
+ actions: { navigate: vi.fn(), toggleSelection: vi.fn(), open: vi.fn(), reveal: vi.fn(async () => ''), operate: vi.fn(async () => {}) },
+ batchSize: 60, revision: 0, selectMode: false, selected: new Set(), countRow,
+ skeletonHtml: () => '<div class="grid"><div class="skeletoncard"></div></div>', settled: vi.fn(), ...patch,
+ };
+}
+const junkCards = (grid: Element) => grid.querySelectorAll('.peach-react [data-junk-card]');
+
const GRID_SKELETON = '<div class="grid"><div class="catalog-skeleton" data-skeleton="catalog">'
+ '<div class="skeletoncard"></div></div></div>';
@@ -242,20 +267,92 @@ it('就地推筛选与刷新代次:宿主与代次不变,只按新键重取
expect(open.settled).toHaveBeenLastCalledWith(1);
});
-it('目录网格:壳那一整份 props 原样交给页面,助手与动作身份不变', async () => {
+/* 进垃圾文件:壳先收掉 `#grid` 上的目录网格,再打开队列。队列打开前不取数,一次清空骨架、放进宿主,
+ 不交叉淡入;读数由页面自己取,只取一次。 */
+it('垃圾队列:换掉 `#grid` 上的网格,一次清空骨架,首屏由页面自己取一次', async () => {
+ const r = await load('/junk-files');
+ const { grid } = gridSurface();
+ await mount(r);
+ const fetch = catalogFetch();
+ await act(async () => { await r.openManagedRoute('/', catalogOpen(), { container: grid, isCurrent: () => true }) });
+ expect(grid.querySelector('[data-media-sections]'), '先画着目录网格').not.toBeNull();
+ const open = junkOpen();
+ await act(async () => { expect(await r.openManagedRoute('/junk-files', open, { container: grid, isCurrent: () => true })).toBe(true) });
+ expect(r.managedEntries().map((entry) => entry.path), '同一容器只留一页').toEqual(['/junk-files']);
+ expect([...grid.children].map((el) => el.className), '骨架一次清空,没有淡出层').toEqual(['peach-react']);
+ await until(() => junkCards(grid).length === 3, '队列画上');
+ expect(grid.querySelector('[data-media-sections]'), '目录网格已经不在').toBeNull();
+ expect(fetch.calls('/api/ads'), '读数只取一次').toHaveLength(1);
+ expect(open.countRow?.querySelector(':scope > .peach-react:not([data-junk-count-skeleton])'), '计数行那一格接管了骨架').not.toBeNull();
+ expect(open.settled).toHaveBeenCalledWith(0);
+});
+
+/* 壳从垃圾文件去别处时先收 `#grid`,再往 `#count` 铺骨架。收的那一刻队列在计数行里建的那一格必须已经撤掉:
+ 晚一拍撤,就是把壳刚铺的骨架冲掉,或者往一个已经被换掉的节点里卸 portal。 */
+it('收 `#grid` 上的垃圾队列:计数行那一格在收的同一刻撤掉,壳随后铺的骨架留得住', async () => {
+ const r = await load('/junk-files');
+ const { grid } = gridSurface();
+ await mount(r);
+ catalogFetch();
+ const open = junkOpen();
+ const count = open.countRow!;
+ await act(async () => { await r.openManagedRoute('/junk-files', open, { container: grid, isCurrent: () => true }) });
+ await until(() => junkCards(grid).length === 3, '队列画上');
+ const errors = vi.spyOn(console, 'error');
+ let atRelease: unknown[] = [];
+ act(() => {
+ r.releaseManagedRoute(grid);
+ atRelease = [count.childElementCount, grid.querySelector('.peach-react'), r.managedEntry(grid)];
+ count.innerHTML = '<div class="peach-react" data-junk-count-skeleton=""></div>';
+ });
+ expect(atRelease, '收的那一刻计数行那一格、宿主与登记都已撤掉').toEqual([0, null, null]);
+ await act(async () => { await new Promise((resolve) => { setTimeout(resolve, 0) }) });
+ expect(count.querySelectorAll('[data-junk-count-skeleton]'), '壳铺的骨架还在').toHaveLength(1);
+ expect(errors).not.toHaveBeenCalled();
+ errors.mockRestore();
+});
+
+/* 换分类、换视图、处置完重读与选择模式落在垃圾队列上:壳推进来,页面按新键重取,宿主与代次不变。 */
+it('就地推分类、刷新代次与选择态:垃圾队列不重挂,只按新键重取一次', async () => {
+ const r = await load('/junk-files');
+ const { grid } = gridSurface();
+ await mount(r);
+ const fetch = catalogFetch();
+ const open = junkOpen();
+ await act(async () => { await r.openManagedRoute('/junk-files', open, { container: grid, isCurrent: () => true }) });
+ await until(() => junkCards(grid).length === 3, '队列画上');
+ const host = r.managedEntry(grid)?.host;
+ const revision = r.managedEntry(grid)?.revision;
+ const countHost = open.countRow?.firstElementChild;
+ await act(async () => { r.updateManagedRoute(grid, { kind: 'image', revision: 1 }) });
+ await until(() => Boolean(grid.textContent?.includes('垃圾 11 image')), '按新分类取回来的那一份画上');
+ await act(async () => { r.updateManagedRoute(grid, { selectMode: true, selected: new Set([12]) }) });
+ expect(fetch.calls('/api/ads').map((url) => url.searchParams.get('kind')), '只按新键重取一次').toEqual([null, 'image']);
+ expect([r.managedEntry(grid)?.host, r.managedEntry(grid)?.revision]).toEqual([host, revision]);
+ expect(open.countRow?.firstElementChild, '计数行那一格不重建').toBe(countHost);
+ expect(grid.querySelector('[data-junk-grid]')?.hasAttribute('data-select-mode')).toBe(true);
+ expect(open.settled).toHaveBeenLastCalledWith(1);
+});
+
+it('目录网格与垃圾队列:壳那一整份 props 原样交给页面,助手与动作身份不变', async () => {
const r = await load();
const open = catalogOpen({ revision: 4 });
const props = (r.CATALOG_ROUTES['/'].page(open, shellActions(), vi.fn()) as ReactElement<CatalogGridProps>).props;
expect(props).toEqual(open);
expect(props.helpers).toBe(open.helpers);
expect(props.actions).toBe(open.actions);
+ const junk = junkOpen({ revision: 2 });
+ const junkProps = (r.CATALOG_ROUTES['/junk-files'].page(junk, shellActions(), vi.fn()) as ReactElement<JunkQueueProps>).props;
+ expect(junkProps).toEqual(junk);
+ expect(junkProps.helpers).toBe(junk.helpers);
+ expect(junkProps.actions).toBe(junk.actions);
});
-it('目录的路径不走 React Router:交壳写地址再打开;槽里只认页面键', async () => {
+it('目录与垃圾文件的路径不走 React Router:交壳写地址再打开;槽里只认页面键', async () => {
const r = await load('/stats');
const actions = shellActions();
const navigate = vi.fn();
- const paths = ['/', '/unseen', '/watch-later', '/flagged', '/trash'];
+ const paths = ['/', '/unseen', '/watch-later', '/flagged', '/trash', '/junk-files'];
for (const path of paths) r.managedGo(path, actions, navigate);
r.managedGo('/?tag=a&sort=new', actions, navigate);
expect(navigate).not.toHaveBeenCalled();
@@ -264,6 +361,6 @@ it('目录的路径不走 React Router:交壳写地址再打开;槽里只认
expect(r.ROUTED_PATHS).toContain(path);
expect(r.isManagedPath(path)).toBe(false);
}
- expect(r.isRoutedPath('/')).toBe(true);
+ expect([r.isRoutedPath('/'), r.isRoutedPath('/junk-files')]).toEqual([true, true]);
expect(r.isRoutedPath('/trash'), '回收站画的也是 `/` 那一页').toBe(false);
});
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 9a8ec5b1b..fba86d283 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -713,7 +713,7 @@ class WebUiSourceTests(unittest.TestCase):
start = css.index(chr(10) + ".top{")
self.assertIn("var(--ground)", css[start:css.index("}", start)], ".top 浮在页面底之上")
# 直接坐在页面上的盒子不能再填 --surface:它与 --page 在浅色一档是同一个 #FAFAFA,
- # 填上去等于没有盒子。--surface 只剩交互与内嵌那一档。垃圾卡归 `junk-queue` island,
+ # 填上去等于没有盒子。--surface 只剩交互与内嵌那一档。垃圾卡归 `react/junk-queue/` 那一页,
# 它和页面底色不同由 e2e 设计用例读计算值核对。
for name in (".insightpanel", ".emptystate"):
start = css.index(name + "{")
@@ -2252,7 +2252,7 @@ class WebUiSourceTests(unittest.TestCase):
筛选条完全由当前 state 决定,这次请求不会改变它,所以没有可占位的东西:
连它一起清空的话,刚点下的那一枚会在等数据的整段时间里失去高亮,看着像
没点上;`.count:empty` 还会把整行折叠,网格跟着往上跳一截。垃圾文件那一屏的
- 计数行是另一条控件,骨架是 `junk-queue` island 等数据时那一版的静态副本。
+ 计数行是另一条控件,骨架是垃圾队列那一页等数据时那一版的静态副本。
"""
# 加载态与最终态取同一份下排:取数前推的就是最终的排序与版式,只把读数换成微光。
self.assertPageContains(" if(state)paintCatalogFilter({count:null,...catalogHeadProps()});")
@@ -3630,15 +3630,15 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("'.reviewtabs','.ftablewrap',")
# 40em 以下要抬高触摸目标;控件现在是定高,min-height 压不动它。
self.assertPageContains(".reviewtabs button{height:44px}")
- # 垃圾文件那条分类归 `junk-queue` island,是首页筛选条那一副玻璃:导航链接而不是
+ # 垃圾文件那条分类归 `react/junk-queue/` 那一页,是首页筛选条那一副玻璃:导航链接而不是
# tablist、计数徽标为 0 时整枚去掉由 `frontend/test/react/junk-queue.test.tsx` 断言,
# 几何与滑动玻璃落位由 `frontend/e2e/design.test.ts` 在真浏览器里量。
def test_junk_review_and_trash_render_every_physical_resource_type(self):
"""图片、网址快捷方式等不能复用视频播放器,但必须可预览、回收和还原。
- 垃圾卡本身(各类缩略图与字形、三颗处置键、选中标记、不带稍后看)归 `junk-queue`
- island,由 `frontend/test/react/junk-queue.test.tsx` 断言;键的几何由
+ 垃圾卡本身(各类缩略图与字形、三颗处置键、选中标记、不带稍后看)归 `react/junk-queue/`
+ 那一页,由 `frontend/test/react/junk-queue.test.tsx` 断言;键的几何由
`frontend/e2e/design.test.ts` 量。这里只留壳这一侧的写入、回收站与批量条。
"""
self.assertPageContains("await api('/api/batch',{method:'POST',body:JSON.stringify({ids,operation})});")
@@ -5880,7 +5880,7 @@ class WebUiSourceTests(unittest.TestCase):
`i-clock` 没有使用者,是用户点名留的备用件,不要当死代码清掉。
"""
# 文件类型标的是文件,不是打开动作,也不是音量:垃圾卡与分类条的字形归
- # `junk-queue` island,由 `frontend/test/react/junk-queue.test.tsx` 逐类钉住。
+ # `react/junk-queue/` 那一页,由 `frontend/test/react/junk-queue.test.tsx` 逐类钉住。
# 「加载更多」往下接一页,方向由字形给出;两个空态各说自己那件事:筛不出结果,
# 和一次比对没有发现。关注页那两处画在 `follow-feed` 岛里。
feed = self.read_react("follow-feed/follow-feed-page.tsx")
@@ -7297,7 +7297,7 @@ class WebUiSourceTests(unittest.TestCase):
# 复核卡的拒绝键走 Geist 的 error 变体,那是同一块红的另一个入口。
self.assertPageContains(".geist-button.error{background:#da2f35;",
"销毁键静止态就是实底红")
- # 垃圾复核的「移入回收站」归 `junk-queue` island,静止实底红由 e2e design 在真浏览器里量。
+ # 垃圾复核的「移入回收站」归 `react/junk-queue/` 那一页,静止实底红由 e2e design 在真浏览器里量。
# React 那侧同一块红走 BoardUI 的 danger 变体:关注来源凭据行的「清除」是其中一颗。
self.assertIn('<Button variant="danger" size="small" disabled={readOnly}',
self.read_react("follow-manage/credentials.tsx"))
diff --git a/web/app.js b/web/app.js
index 775a0b373..872ec3d04 100644
--- a/web/app.js
+++ b/web/app.js
@@ -79,7 +79,8 @@ let catalogFilterProps=null,catalogFilterMounting=null,catalogTagRows=[],catalog
那组目录筛选:口径和数据都没变时 `buildBars` 不重画,换页回来就把这一份原样交回去。 */
let sidebarProps={content:null,filters:{},latest:null},sidebarSurface='',sidebarCatalog=null,sidebarContentSeq=0;
let loadRequestSeq=0;
-// `#grid` 上最近一次打开的是哪一页(画着或首屏在途):目录与回收站的 `catalog-grid`,或垃圾文件的 `junk-queue`。
+// `#grid` 上最近一次打开的是哪一页(画着或首屏在途),记 `CATALOG_ROUTES` 的页面键:
+// 目录与回收站的 `/`,或垃圾文件的 `/junk-files`。
let gridPage='';
/* `followRevision` 是关注页的刷新代次:已经画着时要求重读(批量标记之后、前进后退),
推一个新代次让它重取,不重挂。 */
@@ -248,7 +249,7 @@ const gridCards=()=>document.querySelectorAll(
function renderCatalogLoading(label='正在读取作品'){
const count=$('#count');
/* 垃圾文件那一屏的计数行是自己的:一块摘要面加一条分类切换,没有排序也没有换批。
- 这一版是 `junk-queue` island 等数据时那一版的静态副本,island 挂上就换掉它;骨架里的
+ 这一版是垃圾队列等数据时那一版的静态副本,队列画上就换掉它;骨架里的
分类链接是真的 `<a href>`,React 包没到时点下去照常换页。目录与回收站的读数在筛选条里,
这一行留空。 */
const junk=decodeURIComponent(location.pathname)==='/junk-files';
@@ -1205,7 +1206,7 @@ const tagList=(value=state.tag)=>String(value||'').split(',').filter(Boolean);
const tagPressed=(value,tag)=>tagList(value).includes(String(tag));
const withTagToggled=(value,tag)=>{const cur=tagList(value);const index=cur.indexOf(tag);
index>=0?cur.splice(index,1):cur.push(tag);return cur.join(',')};
-/* 馆藏卡片网格(`catalog-grid` island)用的助手与动作。各只有一份、身份不变:卡片按引用
+/* 馆藏卡片网格(`react/catalog-grid/`)用的助手与动作。各只有一份、身份不变:卡片按引用
比较,每次推新对象进去就是整屏重画。 */
const gridHelpers={
badgeHtml:(location,cost)=>srcBadge(location,cost),
@@ -3302,7 +3303,7 @@ $('#scrim').onclick=()=>openDrawer(false);
取数落定(成功、为空或失败)时兑现,调用方 `await` 它再做下一步(撤销回执、换一批的转圈)。
目录与回收站的卡片网格由路由树画进 `#grid`(ADR-0031):已经画着就把新筛选推过去,
它按新键重取、自己铺骨架;还没画就打开,首屏取完才换掉壳铺的骨架。垃圾文件那一屏是
- 逐项处置的队列,是另一页(`junk-queue`),同样画在 `#grid` 上,两者换页时互相先收。 */
+ 逐项处置的队列,是另一页(`/junk-files`),同样由路由树画进 `#grid`,两者换页时互相先收。 */
async function loadCatalog(){
const requestSeq=++loadRequestSeq;
const surface=claimSurface(surfacePath());
@@ -3315,7 +3316,7 @@ async function loadCatalog(){
barsContext={type:'home',filters:state};detailReturnBarsContext=null;disposeStage(false);
if(state.state==='ads')return loadJunk(surface);
// 卸掉垃圾队列要赶在铺骨架之前:它的计数行也在 `#count` 里,先铺就把它挂着的那一格冲掉了。
- if(gridPage==='junk-queue')clearCatalogGrid();
+ if(gridPage==='/junk-files')clearCatalogGrid();
renderCatalogLoading();
showHomeSurfaces();
if(isFeedNewPath(location.pathname)){
@@ -3339,26 +3340,24 @@ function releaseCatalogWaiters(){const waiters=catalogWaiters;catalogWaiters=[];
必须先收掉页面。 */
function clearCatalogGrid(){
const grid=$('#grid');
- releaseHoverPreviews(grid);releaseManagedRoute(grid);unmountIsland(grid);
+ releaseHoverPreviews(grid);releaseManagedRoute(grid);
catalogPainting=null;gridPage='';releaseCatalogWaiters();
grid.innerHTML='';
}
-function paintCatalogGrid(surface){return paintGridPage('catalog-grid',catalogGridProps,surface,{place:revealRoutedPage})}
-/* 垃圾队列不在挂载前取数,挂上就画它自己那份骨架,和壳铺的这份逐项相同,不必交叉淡入。 */
-function paintJunkQueue(surface){return paintGridPage('junk-queue',junkQueueProps,surface)}
-/* `#grid` 上画着的那一页已经落地:目录网格看路由树登记的那一条,垃圾队列看岛。 */
-function gridPainted(){return gridPage==='catalog-grid'?!!managedEntry($('#grid')):islandMounted($('#grid'))}
+function paintCatalogGrid(surface){return paintGridPage('/',catalogGridProps,surface,{place:revealRoutedPage})}
+/* 垃圾队列不在打开前取数,画上就铺它自己那份骨架,和壳铺的这份逐项相同,不必交叉淡入。 */
+function paintJunkQueue(surface){return paintGridPage('/junk-files',junkQueueProps,surface)}
+/* `#grid` 上画着的那一页已经落地(路由树登记了那一条)。 */
+function gridPainted(){return !!managedEntry($('#grid'))}
/* `#grid` 归页面:已经画着,或首屏还在取。这时壳不往里写骨架。 */
function gridTaken(){return gridPainted()||!!catalogPainting}
/* 把壳的开关推给 `#grid` 上画着的那一页,代次不变、不重挂;还没画上时是空操作。 */
-function pushGridPage(patch){
- if(gridPage==='catalog-grid')updateManagedRoute($('#grid'),patch);
- else updateIsland($('#grid'),patch);
-}
-/* `#grid` 上画哪一页记在 `gridPage` 里:换成另一页之前先收,旧的那一页不能收新的 props。 */
-function paintGridPage(name,propsFor,surface,options={}){
+function pushGridPage(patch){updateManagedRoute($('#grid'),patch)}
+/* `#grid` 上画哪一页(`CATALOG_ROUTES` 的页面键)记在 `gridPage` 里:换成另一页之前先收,旧的那一页
+ 不能收新的 props。 */
+function paintGridPage(page,propsFor,surface,options={}){
const grid=$('#grid');
- if(gridPage&&gridPage!==name)clearCatalogGrid();
+ if(gridPage&&gridPage!==page)clearCatalogGrid();
const revision=++catalogRevision;
const settled=new Promise(resolve=>catalogWaiters.push({revision,resolve}));
const props=propsFor();
@@ -3366,11 +3365,8 @@ function paintGridPage(name,propsFor,surface,options={}){
重开一次,上一次的取数随之作废。 */
if(gridPainted()&&!catalogPainting){pushGridPage(props);return settled}
releaseHoverPreviews(grid);
- gridPage=name;
- const isCurrent=()=>surfaceCurrent(surface);
- const painting=catalogPainting=name==='catalog-grid'
- ?openManagedRoute('/',props,{...options,container:grid,isCurrent})
- :mountIsland(name,grid,props,{...options,isCurrent});
+ gridPage=page;
+ const painting=catalogPainting=openManagedRoute(page,props,{...options,container:grid,isCurrent:()=>surfaceCurrent(surface)});
painting.catch(error=>console.error(error)).finally(()=>{
if(catalogPainting===painting)catalogPainting=null;
if(!gridTaken())releaseCatalogWaiters();
@@ -3422,12 +3418,13 @@ function catalogGridProps(){
canLoadMore:()=>$('#stats').hidden&&$('#index').hidden,
};
}
-/* 进入或重读垃圾文件队列。已经挂着且计数行那一格还在(在这一屏里换分类、换视图,处置完
- 重读)就把新的地址与代次推过去;否则先卸掉 `#grid` 上的旧根,铺骨架再挂。分类与视图
+/* 进入或重读垃圾文件队列。已经画着且计数行那一格还在(在这一屏里换分类、换视图,处置完
+ 重读)就把新的地址与代次推过去;否则先收掉 `#grid` 上的那一页,铺骨架再打开。收要赶在
+ 铺骨架之前:队列的计数行那一格在 `#count` 里,收的时候同步撤掉,骨架再写进空行。分类与视图
只从地址读,壳不另记一份。 */
function loadJunk(surface){
const count=$('#count');
- const live=gridPage==='junk-queue'&&gridPainted()&&!catalogPainting
+ const live=gridPage==='/junk-files'&&gridPainted()&&!catalogPainting
&&count.querySelector(':scope > .peach-react:not([data-junk-count-skeleton])');
if(!live){clearCatalogGrid();renderCatalogLoading('正在读取垃圾文件')}
showHomeSurfaces();
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index d6433f36c..735b46de8 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -20327,23 +20327,23 @@ function Eee(e, t, n) {
...o
};
}
-for (var Dee = /*#__PURE__*/ (0, B.createContext)(null), _g = /*#__PURE__*/ (0, B.createContext)(null), vg = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+for (var Dee = /*#__PURE__*/ (0, B.createContext)(null), _g = /*#__PURE__*/ (0, B.createContext)(null), Oee = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = $r(r, t, Dee);
let i = Jr((0, B.useMemo)(() => Wr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = vl(e), o = Eee({
...ti(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ B.createElement(Xr, { values: [[_g, a], [yg, {
+ return /*#__PURE__*/ B.createElement(Xr, { values: [[_g, a], [vg, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ B.createElement(Oee, {
+ }]] }, /*#__PURE__*/ B.createElement(kee, {
...e,
ref: t
}));
-}), yg = /*#__PURE__*/ (0, B.createContext)(null), Oee = /*#__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)(yg), { isFocused: f, isFocusVisible: p, focusProps: m } = uc(), h = a || o, g = (0, B.useContext)(_g), { hoverProps: _, isHovered: v } = gc({
+}), vg = /*#__PURE__*/ (0, B.createContext)(null), kee = /*#__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)(vg), { isFocused: f, isFocusVisible: p, focusProps: m } = uc(), h = a || o, g = (0, B.useContext)(_g), { hoverProps: _, isHovered: v } = gc({
...e,
isDisabled: h
}), y = Zr({
@@ -20379,7 +20379,7 @@ for (var Dee = /*#__PURE__*/ (0, B.createContext)(null), _g = /*#__PURE__*/ (0,
...W(r, m),
ref: l
})), y.children);
-}), bg = 10, xg = 5, kee = class {
+}), yg = 10, bg = 5, Aee = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -20389,7 +20389,7 @@ for (var Dee = /*#__PURE__*/ (0, B.createContext)(null), _g = /*#__PURE__*/ (0,
}
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) > xg && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > bg && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > bg && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > yg && (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);
@@ -20468,11 +20468,11 @@ for (var Dee = /*#__PURE__*/ (0, B.createContext)(null), _g = /*#__PURE__*/ (0,
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > xg && i) {
+ if (Math.abs(r - c.lastSwitchY) > bg && 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 > bg && a) {
+ if (l > yg && 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;
}
@@ -20487,7 +20487,7 @@ for (var Dee = /*#__PURE__*/ (0, B.createContext)(null), _g = /*#__PURE__*/ (0,
boundaryContext: null
};
}
-}, Aee = class {
+}, jee = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -20557,8 +20557,8 @@ for (var Dee = /*#__PURE__*/ (0, B.createContext)(null), _g = /*#__PURE__*/ (0,
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Sg = "row-header-column-" + Math.random().toString(36).slice(2), Cg = "row-header-column-" + Math.random().toString(36).slice(2); Sg === Cg;) Cg = "row-header-column-" + Math.random().toString(36).slice(2);
-function wg(e, t) {
+}, xg = "row-header-column-" + Math.random().toString(36).slice(2), Sg = "row-header-column-" + Math.random().toString(36).slice(2); xg === Sg;) Sg = "row-header-column-" + Math.random().toString(36).slice(2);
+function Cg(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -20642,13 +20642,13 @@ function wg(e, t) {
textValue: ""
}));
}
-var jee = class extends Aee {
+var Mee = class extends jee {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Sg,
+ key: xg,
value: null,
textValue: "",
level: 0,
@@ -20663,7 +20663,7 @@ var jee = class extends Aee {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Cg,
+ key: Sg,
value: null,
textValue: "",
level: 0,
@@ -20690,7 +20690,7 @@ var jee = class extends Aee {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = wg(s, a);
+ let l = Cg(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -20751,7 +20751,7 @@ var jee = class extends Aee {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Mee(e) {
+function Nee(e) {
let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || zd(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) {
@@ -20802,11 +20802,11 @@ function Mee(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Nee = {
+var Pee = {
ascending: "descending",
descending: "ascending"
};
-function Pee(e) {
+function Fee(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,
@@ -20817,7 +20817,7 @@ function Pee(e) {
i,
r,
a
- ]), c = Kd(e, (0, B.useCallback)((e) => new jee(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Mee({
+ ]), c = Kd(e, (0, B.useCallback)((e) => new Mee(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Nee({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -20833,7 +20833,7 @@ function Pee(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Nee[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Pee[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -20846,7 +20846,7 @@ function Pee(e) {
treeColumn: o
};
}
-function Fee(e, t) {
+function Iee(e, t) {
let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -20856,10 +20856,10 @@ function Fee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Tg = class {
+var wg = 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 Iee(e.layout) : new md(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Lee(e.layout) : new md(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -21025,7 +21025,7 @@ var Tg = class {
}
return null;
}
-}, Iee = class {
+}, Lee = class {
constructor(e) {
this.layout = e;
}
@@ -21038,16 +21038,16 @@ var Tg = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Eg = /* @__PURE__ */ new WeakMap();
+}, Tg = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Lee(e, t, n) {
+function Ree(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 = _d({
usage: "search",
sensitivity: "base"
- }), { direction: g } = to(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new Tg({
+ }), { direction: g } = to(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new wg({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -21073,7 +21073,7 @@ function Lee(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Vr(e.id);
- Eg.set(t, {
+ Tg.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -21103,27 +21103,27 @@ function Lee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var Dg = /* @__PURE__ */ new WeakMap();
-function Og(e) {
+var Eg = /* @__PURE__ */ new WeakMap();
+function Dg(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Ree(e, t) {
- let n = Dg.get(e);
+function zee(e, t) {
+ let n = Eg.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Og(t)}`;
+ return `${n}-${Dg(t)}`;
}
-function kg(e, t, n) {
- let r = Dg.get(e);
+function Og(e, t, n) {
+ let r = Eg.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Og(t)}-${Og(n)}`;
+ return `${r}-${Dg(t)}-${Dg(n)}`;
}
-function Ag(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => kg(e, t, n)).join(" ");
+function kg(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Og(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var jg = {};
-jg = {
+var Ag = {};
+Ag = {
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: "طي",
@@ -21138,8 +21138,8 @@ jg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Mg = {};
-Mg = {
+var jg = {};
+jg = {
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: "Свиване",
@@ -21154,8 +21154,8 @@ Mg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Ng = {};
-Ng = {
+var Mg = {};
+Mg = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -21170,8 +21170,8 @@ Ng = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Pg = {};
-Pg = {
+var Ng = {};
+Ng = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -21186,8 +21186,8 @@ Pg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Fg = {};
-Fg = {
+var Pg = {};
+Pg = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -21202,8 +21202,8 @@ Fg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Ig = {};
-Ig = {
+var Fg = {};
+Fg = {
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: "Σύμπτυξη",
@@ -21218,8 +21218,8 @@ Ig = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Lg = {};
-Lg = {
+var Ig = {};
+Ig = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -21234,8 +21234,8 @@ Lg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Rg = {};
-Rg = {
+var Lg = {};
+Lg = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -21250,8 +21250,8 @@ Rg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var zg = {};
-zg = {
+var Rg = {};
+Rg = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -21266,8 +21266,8 @@ zg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Bg = {};
-Bg = {
+var zg = {};
+zg = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -21282,8 +21282,8 @@ Bg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Vg = {};
-Vg = {
+var Bg = {};
+Bg = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -21298,8 +21298,8 @@ Vg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Hg = {};
-Hg = {
+var Vg = {};
+Vg = {
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: "כווץ",
@@ -21314,8 +21314,8 @@ Hg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Ug = {};
-Ug = {
+var Hg = {};
+Hg = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -21330,8 +21330,8 @@ Ug = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Wg = {};
-Wg = {
+var Ug = {};
+Ug = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -21346,8 +21346,8 @@ Wg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Gg = {};
-Gg = {
+var Wg = {};
+Wg = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -21362,8 +21362,8 @@ Gg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Kg = {};
-Kg = {
+var Gg = {};
+Gg = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -21378,8 +21378,8 @@ Kg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var qg = {};
-qg = {
+var Kg = {};
+Kg = {
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: "접기",
@@ -21394,8 +21394,8 @@ qg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Jg = {};
-Jg = {
+var qg = {};
+qg = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -21410,8 +21410,8 @@ Jg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Yg = {};
-Yg = {
+var Jg = {};
+Jg = {
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",
@@ -21426,8 +21426,8 @@ Yg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Xg = {};
-Xg = {
+var Yg = {};
+Yg = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -21442,8 +21442,8 @@ Xg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Zg = {};
-Zg = {
+var Xg = {};
+Xg = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -21458,8 +21458,8 @@ Zg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Qg = {};
-Qg = {
+var Zg = {};
+Zg = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -21474,8 +21474,8 @@ Qg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var $g = {};
-$g = {
+var Qg = {};
+Qg = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -21490,8 +21490,8 @@ $g = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var e_ = {};
-e_ = {
+var $g = {};
+$g = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -21506,8 +21506,8 @@ e_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var t_ = {};
-t_ = {
+var e_ = {};
+e_ = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -21522,8 +21522,8 @@ t_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var n_ = {};
-n_ = {
+var t_ = {};
+t_ = {
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: "Свернуть",
@@ -21538,8 +21538,8 @@ n_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var r_ = {};
-r_ = {
+var n_ = {};
+n_ = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -21554,8 +21554,8 @@ r_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var i_ = {};
-i_ = {
+var r_ = {};
+r_ = {
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",
@@ -21570,8 +21570,8 @@ i_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var a_ = {};
-a_ = {
+var i_ = {};
+i_ = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -21586,8 +21586,8 @@ a_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var o_ = {};
-o_ = {
+var a_ = {};
+a_ = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -21602,8 +21602,8 @@ o_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var s_ = {};
-s_ = {
+var o_ = {};
+o_ = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -21618,8 +21618,8 @@ s_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var c_ = {};
-c_ = {
+var s_ = {};
+s_ = {
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: "Згорнути",
@@ -21634,8 +21634,8 @@ c_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var l_ = {};
-l_ = {
+var c_ = {};
+c_ = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -21650,8 +21650,8 @@ l_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var u_ = {};
-u_ = {
+var l_ = {};
+l_ = {
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: "收合",
@@ -21666,46 +21666,46 @@ u_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var d_ = {};
-d_ = {
- "ar-AE": jg,
- "bg-BG": Mg,
- "cs-CZ": Ng,
- "da-DK": Pg,
- "de-DE": Fg,
- "el-GR": Ig,
- "en-US": Lg,
- "es-ES": Rg,
- "et-EE": zg,
- "fi-FI": Bg,
- "fr-FR": Vg,
- "he-IL": Hg,
- "hr-HR": Ug,
- "hu-HU": Wg,
- "it-IT": Gg,
- "ja-JP": Kg,
- "ko-KR": qg,
- "lt-LT": Jg,
- "lv-LV": Yg,
- "nb-NO": Xg,
- "nl-NL": Zg,
- "pl-PL": Qg,
- "pt-BR": $g,
- "pt-PT": e_,
- "ro-RO": t_,
- "ru-RU": n_,
- "sk-SK": r_,
- "sl-SI": i_,
- "sr-SP": a_,
- "sv-SE": o_,
- "tr-TR": s_,
- "uk-UA": c_,
- "zh-CN": l_,
- "zh-TW": u_
+var u_ = {};
+u_ = {
+ "ar-AE": Ag,
+ "bg-BG": jg,
+ "cs-CZ": Mg,
+ "da-DK": Ng,
+ "de-DE": Pg,
+ "el-GR": Fg,
+ "en-US": Ig,
+ "es-ES": Lg,
+ "et-EE": Rg,
+ "fi-FI": zg,
+ "fr-FR": Bg,
+ "he-IL": Vg,
+ "hr-HR": Hg,
+ "hu-HU": Ug,
+ "it-IT": Wg,
+ "ja-JP": Gg,
+ "ko-KR": Kg,
+ "lt-LT": qg,
+ "lv-LV": Jg,
+ "nb-NO": Yg,
+ "nl-NL": Xg,
+ "pl-PL": Zg,
+ "pt-BR": Qg,
+ "pt-PT": $g,
+ "ro-RO": e_,
+ "ru-RU": t_,
+ "sk-SK": n_,
+ "sl-SI": r_,
+ "sr-SP": i_,
+ "sv-SE": a_,
+ "tr-TR": o_,
+ "uk-UA": s_,
+ "zh-CN": c_,
+ "zh-TW": l_
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var f_ = class extends Tg {
+var d_ = class extends wg {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -21783,14 +21783,14 @@ var f_ = class extends Tg {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function p_(e) {
+function f_(e) {
return e && e.__esModule ? e.default : e;
}
-function zee(e, t, n) {
+function Bee(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = _d({
usage: "search",
sensitivity: "base"
- }), { direction: c } = to(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new f_({
+ }), { direction: c } = to(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new d_({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -21810,14 +21810,14 @@ function zee(e, t, n) {
a,
o
]), d = Vr(e.id);
- Dg.set(t, d);
- let { gridProps: f } = Lee({
+ Eg.set(t, d);
+ let { gridProps: f } = Ree({
...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 = go(p_(d_), "@react-aria/table"), g = (0, B.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = go(f_(u_), "@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;
}, [
@@ -21831,13 +21831,13 @@ function zee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function m_(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = to(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Eg.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {
+function p_(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = to(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Tg.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {
if (n.current) {
let e = ed(n.current);
if (p === "child") {
if (bi(n.current) && n.current !== vi(si(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? h_(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? m_(e) : e.firstChild();
if (r) {
Ro(r);
return;
@@ -21869,7 +21869,7 @@ function m_(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (Ro(n.current), Vc(n.current, { containingElement: Lc(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : h_(a), t && (Ro(t), Vc(t, { containingElement: Lc(n.current) })));
+ p === "cell" && l === "rtl" ? (Ro(n.current), Vc(n.current, { containingElement: Lc(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : m_(a), t && (Ro(t), Vc(t, { containingElement: Lc(n.current) })));
}
break;
}
@@ -21881,7 +21881,7 @@ function m_(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (Ro(n.current), Vc(n.current, { containingElement: Lc(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? h_(a) : a.firstChild(), t && (Ro(t), Vc(t, { containingElement: Lc(n.current) })));
+ p === "cell" && l === "ltr" ? (Ro(n.current), Vc(n.current, { containingElement: Lc(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? m_(a) : a.firstChild(), t && (Ro(t), Vc(t, { containingElement: Lc(n.current) })));
}
break;
}
@@ -21926,7 +21926,7 @@ function m_(e, t, n) {
isPressed: _
};
}
-function h_(e) {
+function m_(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -21935,11 +21935,11 @@ function h_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Bee(e) {
+function Vee(e) {
return e && e.__esModule ? e.default : e;
}
-function Vee(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = m_({
+function Hee(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = p_({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = tc({
@@ -21950,7 +21950,7 @@ function Vee(e, t, n) {
ref: n
}), { focusableProps: l } = rs({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !ta() && (u = d ? f : "none");
- let p = go(Bee(d_), "@react-aria/table"), m;
+ let p = go(Vee(u_), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && ta() && (m = `${m}, ${p.format(f)}`));
let h = Wc(m), g = t.collection.size === 0;
return (0, B.useEffect)(() => {
@@ -21963,7 +21963,7 @@ function Vee(e, t, n) {
columnHeaderProps: {
...W(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Ree(t, r.key),
+ id: zee(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -21972,8 +21972,8 @@ function Vee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Hee(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Eg.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Sd({
+function Uee(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Tg.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Sd({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -21994,10 +21994,10 @@ function Hee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Uee(e) {
+function Wee(e) {
return e && e.__esModule ? e.default : e;
}
-var g_ = {
+var h_ = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -22007,21 +22007,21 @@ var g_ = {
rtl: "ArrowRight"
}
};
-function Wee(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Hee(e, t, n), { direction: s } = to();
+function Gee(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Uee(e, t, n), { direction: s } = to();
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 = go(Uee(d_), "@react-aria/table"), u = Wa({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = go(Wee(u_), "@react-aria/table"), u = Wa({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Ag(t, r.key)
+ "aria-labelledby": kg(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = __(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 = __(t.collection, a);
+ let n = g_(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 = g_(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === g_.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === g_.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 === h_.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === h_.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,
@@ -22043,46 +22043,46 @@ function Wee(e, t, n) {
return {
rowProps: {
...W(a, d, m),
- "aria-labelledby": Ag(t, r.key)
+ "aria-labelledby": kg(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function __(e, t) {
+function g_(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/table/useTableHeaderRow.mjs
-function Gee(e, t, n) {
+function Kee(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/table/useTableCell.mjs
-function Kee(e, t, n) {
- let { gridCellProps: r, isPressed: i } = m_(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = kg(t, e.node.parentKey, a)), {
+function qee(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = p_(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Og(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function qee(e) {
+function Jee(e) {
return e && e.__esModule ? e.default : e;
}
-function Jee(e, t) {
+function Yee(e, t) {
let { key: n } = e, { checkboxProps: r } = nee(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Ag(t, n)}`
+ "aria-labelledby": `${r.id} ${kg(t, n)}`
} };
}
-function Yee(e) {
+function Xee(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": go(qee(d_), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": go(Jee(u_), "@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,
@@ -22091,17 +22091,17 @@ function Yee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Xee() {
+function Zee() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function v_() {
- return Xee();
+function __() {
+ return Zee();
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Zee = class extends Eo {
+var Qee = class extends Eo {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -22116,7 +22116,7 @@ var Zee = class extends Eo {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new T_(-2);
+ return new w_(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -22142,7 +22142,7 @@ var Zee = class extends Eo {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = wg(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 = Cg(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;
@@ -22223,10 +22223,10 @@ var Zee = class extends Eo {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new S_(-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 x_(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Qee = /*#__PURE__*/ (0, B.createContext)(null), $ee = /*#__PURE__*/ (0, B.createContext)(null), y_ = /*#__PURE__*/ (0, B.createContext)(null), b_ = /*#__PURE__*/ (0, B.createContext)(null), ete = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = $r(e, t, $ee);
+}, $ee = /*#__PURE__*/ (0, B.createContext)(null), ete = /*#__PURE__*/ (0, B.createContext)(null), v_ = /*#__PURE__*/ (0, B.createContext)(null), y_ = /*#__PURE__*/ (0, B.createContext)(null), tte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = $r(e, t, ete);
let n = zd(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
@@ -22237,17 +22237,17 @@ var Zee = class extends Eo {
i,
a,
o
- ]), c = /*#__PURE__*/ B.createElement(rte.Provider, { value: s }, /*#__PURE__*/ B.createElement(Ts, e));
+ ]), c = /*#__PURE__*/ B.createElement(ite.Provider, { value: s }, /*#__PURE__*/ B.createElement(Ts, e));
return /*#__PURE__*/ B.createElement(ps, {
content: c,
- createCollection: () => new Zee()
- }, (r) => /*#__PURE__*/ B.createElement(nte, {
+ createCollection: () => new Qee()
+ }, (r) => /*#__PURE__*/ B.createElement(rte, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), tte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}), nte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22256,7 +22256,7 @@ var Zee = class extends Eo {
...e,
ref: t
});
-}), x_ = {
+}), b_ = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -22266,26 +22266,26 @@ var Zee = class extends Eo {
rtl: "ArrowRight"
}
};
-function nte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+function rte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = $r(e, t, yo);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(Qee);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)($ee);
t = Jr((0, B.useMemo)(() => Wr(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = vo(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 = Pee({
+ let d = Fee({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Fee(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(js), { dragAndDropHooks: _ } = e, { gridProps: v } = zee({
+ }), f = Iee(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(js), { dragAndDropHooks: _ } = e, { gridProps: v } = Bee({
...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 } = to(), [k] = (0, B.useState)(() => new kee());
+ let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = to(), [k] = (0, B.useState)(() => new Aee());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -22320,7 +22320,7 @@ function nte({ 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 === x_.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === x_.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === b_.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === b_.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
@@ -22343,17 +22343,17 @@ function nte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}));
let F = zs(e, { global: !0 });
return /*#__PURE__*/ B.createElement(Xr, { values: [
- [y_, f],
- [b_, P],
+ [v_, f],
+ [y_, P],
[mu, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [hu, { render: pte }],
+ [hu, { render: mte }],
[yo, null],
[bo, null]
- ] }, /*#__PURE__*/ B.createElement(Pu, null, /*#__PURE__*/ B.createElement(tte, {
+ ] }, /*#__PURE__*/ B.createElement(Pu, null, /*#__PURE__*/ B.createElement(nte, {
...W(F, N, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -22369,11 +22369,11 @@ function nte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
persistedKeys: vu(y, _, C)
})))), E);
}
-var rte = /*#__PURE__*/ (0, B.createContext)(null), S_ = class extends xo {
+var ite = /*#__PURE__*/ (0, B.createContext)(null), x_ = class extends xo {
static {
this.type = "tableheader";
}
-}, ite = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}, ate = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22382,16 +22382,16 @@ var rte = /*#__PURE__*/ (0, B.createContext)(null), S_ = class extends xo {
...e,
ref: t
});
-}), C_ = /*#__PURE__*/ Ss(S_, (e, t) => {
- let n = (0, B.useContext)(y_).collection, r = jo({
+}), S_ = /*#__PURE__*/ Ss(x_, (e, t) => {
+ let n = (0, B.useContext)(v_).collection, r = jo({
items: n.headerRows,
children: (0, B.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ B.createElement(ote, { item: e });
+ case "headerrow": return /*#__PURE__*/ B.createElement(ste, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = v_(), { hoverProps: a, isHovered: o } = gc({
+ }), { rowGroupProps: i } = __(), { hoverProps: a, isHovered: o } = gc({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -22401,7 +22401,7 @@ var rte = /*#__PURE__*/ (0, B.createContext)(null), S_ = class extends xo {
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ B.createElement(ite, {
+ return /*#__PURE__*/ B.createElement(ate, {
...W(zs(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -22410,7 +22410,7 @@ var rte = /*#__PURE__*/ (0, B.createContext)(null), S_ = class extends xo {
}, (e) => /*#__PURE__*/ B.createElement(Ts, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), ate = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}, e.children)), ote = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement("div", {
...e,
@@ -22420,12 +22420,12 @@ var rte = /*#__PURE__*/ (0, B.createContext)(null), S_ = class extends xo {
ref: t
});
});
-function ote({ item: e }) {
- let t = (0, B.useRef)(null), n = (0, B.useContext)(y_), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(js), { rowProps: a } = Gee({
+function ste({ item: e }) {
+ let t = (0, B.useRef)(null), n = (0, B.useContext)(v_), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(js), { rowProps: a } = Kee({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Yee(n);
- return /*#__PURE__*/ B.createElement(ate, {
+ }, n, t), { checkboxProps: o } = Xee(n);
+ return /*#__PURE__*/ B.createElement(ote, {
...a,
ref: t
}, /*#__PURE__*/ B.createElement(Xr, { values: [[bl, { slots: { selection: o } }], [xl, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {
@@ -22433,11 +22433,11 @@ function ote({ item: e }) {
parent: e
})));
}
-var ste = class extends xo {
+var cte = class extends xo {
static {
this.type = "column";
}
-}, cte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}, lte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22446,13 +22446,13 @@ var ste = class extends xo {
...e,
ref: t
});
-}), w_ = /*#__PURE__*/ xs(ste, (e, t, n) => {
- let r = Jr(t), i = (0, B.useContext)(y_), { isVirtualized: a } = (0, B.useContext)(js), { columnHeaderProps: o, isPressed: s } = Vee({
+}), C_ = /*#__PURE__*/ xs(cte, (e, t, n) => {
+ let r = Jr(t), i = (0, B.useContext)(v_), { isVirtualized: a } = (0, B.useContext)(js), { columnHeaderProps: o, isPressed: s } = Hee({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = uc(), d = (0, B.useContext)(b_), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = uc(), d = (0, B.useContext)(y_), f = !1;
d && (f = d.resizingColumn === n.key);
let { hoverProps: p, isHovered: m } = gc({ isDisabled: !e.allowsSorting }), h = Zr({
...e,
@@ -22481,7 +22481,7 @@ var ste = class extends xo {
width: d.getColumnWidth(n.key)
});
let _ = zs(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ B.createElement(cte, {
+ return delete _.id, /*#__PURE__*/ B.createElement(lte, {
...W(_, o, u, p),
...h,
style: g,
@@ -22493,15 +22493,15 @@ var ste = class extends xo {
"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(Xr, { values: [[lte, {
+ }, /*#__PURE__*/ B.createElement(Xr, { values: [[ute, {
column: n,
triggerRef: r
}], [js, Os]] }, h.children));
-}), lte = /*#__PURE__*/ (0, B.createContext)(null), T_ = class extends So {
+}), ute = /*#__PURE__*/ (0, B.createContext)(null), w_ = class extends So {
static {
this.type = "tablebody";
}
-}, ute = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}, dte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22510,8 +22510,8 @@ var ste = class extends xo {
...e,
ref: t
});
-}), E_ = /*#__PURE__*/ Ss(T_, (e, t, n) => {
- let r = (0, B.useContext)(y_), { isVirtualized: i } = (0, B.useContext)(js), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(js), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(mu), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), T_ = /*#__PURE__*/ Ss(w_, (e, t, n) => {
+ let r = (0, B.useContext)(v_), { isVirtualized: i } = (0, B.useContext)(js), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(js), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(mu), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
}, p = Zr({
@@ -22523,22 +22523,22 @@ var ste = class extends xo {
}), 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(O_, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(D_, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ B.createElement(A_, {
+ }, /*#__PURE__*/ B.createElement(k_, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = v_(), _ = zs(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(ute, {
+ let { rowGroupProps: g } = __(), _ = zs(e, { global: !0 });
+ return /*#__PURE__*/ B.createElement(dte, {
...W(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ B.createElement(vte, null), /*#__PURE__*/ B.createElement(o, {
+ }, l && /*#__PURE__*/ B.createElement(yte, null), /*#__PURE__*/ B.createElement(o, {
collection: a,
parent: n,
renderDropIndicator: _u(s, c)
@@ -22549,7 +22549,7 @@ var ste = class extends xo {
this.type = "tablefooter";
}
});
-var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dte = class extends xo {
+var E_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), fte = class extends xo {
static {
this.type = "item";
}
@@ -22561,7 +22561,7 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
}
return null;
}
-}, O_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}, D_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22570,8 +22570,8 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
...e,
ref: t
});
-}), k_ = /*#__PURE__*/ Ss(dte, (e, t, n) => {
- let r = Jr(t), i = (0, B.useContext)(y_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(mu), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(js), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Wee({
+}), O_ = /*#__PURE__*/ Ss(fte, (e, t, n) => {
+ let r = Jr(t), i = (0, B.useContext)(v_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(mu), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(js), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Gee({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -22580,7 +22580,7 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Jee({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Yee({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -22617,10 +22617,10 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
level: n.level + 1
}
}), N = zs(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(O_, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(D_, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(A_, {
+ }, /*#__PURE__*/ B.createElement(k_, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -22629,7 +22629,7 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ B.createElement(O_, {
+ }))), /*#__PURE__*/ B.createElement(D_, {
...W(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -22664,7 +22664,7 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
}
} }],
[Su, { isSelected: p.isSelected }],
- [D_, { isFocusVisibleWithinRow: _ }]
+ [E_, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ B.createElement(l, {
collection: i.collection,
parent: n
@@ -22677,11 +22677,11 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
items: e.columns,
idScope: e.id
}, e.children);
-}), fte = class extends xo {
+}), pte = class extends xo {
static {
this.type = "cell";
}
-}, A_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}, k_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22690,16 +22690,16 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
...e,
ref: t
});
-}), j_ = /*#__PURE__*/ xs(fte, (e, t, n) => {
- let r = Jr(t), i = (0, B.useContext)(y_), { dragState: a } = (0, B.useContext)(mu), { isVirtualized: o } = (0, B.useContext)(js);
+}), A_ = /*#__PURE__*/ xs(pte, (e, t, n) => {
+ let r = Jr(t), i = (0, B.useContext)(v_), { dragState: a } = (0, B.useContext)(mu), { isVirtualized: o } = (0, B.useContext)(js);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Kee({
+ let { gridCellProps: s, isPressed: c } = qee({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = uc(), { hoverProps: f, isHovered: p } = gc({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(D_), 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 = Zr({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = uc(), { hoverProps: f, isHovered: p } = gc({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(E_), 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 = Zr({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -22719,7 +22719,7 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
isTreeColumn: n.column.key === i.treeColumn
}
}), S = zs(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ B.createElement(A_, {
+ return delete S.id, /*#__PURE__*/ B.createElement(k_, {
...W(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -22735,12 +22735,12 @@ var D_ = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), dt
"data-disabled": b || void 0
}, /*#__PURE__*/ B.createElement(js.Provider, { value: Os }, x.children));
});
-function pte(e, t) {
+function mte(e, t) {
t = Jr(t);
let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(mu), 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(_te, {
+ return /*#__PURE__*/ B.createElement(vte, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -22749,7 +22749,7 @@ function pte(e, t) {
ref: t
});
}
-var mte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+var hte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22758,7 +22758,7 @@ var mte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
...e,
ref: t
});
-}), hte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+}), gte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, B.useContext)(js);
return n ? /*#__PURE__*/ B.createElement(ii.div, {
...e,
@@ -22768,21 +22768,21 @@ var mte = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
ref: t
});
});
-function gte(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(y_), { visuallyHiddenProps: c } = Kc(), l = Zr({
+function _te(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(v_), { visuallyHiddenProps: c } = Kc(), l = Zr({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ B.createElement(mte, {
+ return /*#__PURE__*/ B.createElement(hte, {
...zs(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ B.createElement(hte, {
+ }, /*#__PURE__*/ B.createElement(gte, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -22793,14 +22793,14 @@ function gte(e, t) {
ref: i
}), l.children));
}
-var _te = /*#__PURE__*/ (0, B.forwardRef)(gte);
-function vte() {
- let e = (0, B.useContext)(y_), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(mu), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Kc();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(O_, {
+var vte = /*#__PURE__*/ (0, B.forwardRef)(_te);
+function yte() {
+ let e = (0, B.useContext)(v_), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(mu), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Kc();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(D_, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(A_, {
+ }, /*#__PURE__*/ B.createElement(k_, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -22812,7 +22812,7 @@ function vte() {
})));
}
xs(Co, function(e, t, n) {
- let r = (0, B.useContext)(y_), { isVirtualized: i } = (0, B.useContext)(js), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
+ let r = (0, B.useContext)(v_), { isVirtualized: i } = (0, B.useContext)(js), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
Xd((0, B.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
@@ -22831,10 +22831,10 @@ xs(Co, 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(O_, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(D_, {
style: { height: 0 },
inert: Fd(!0)
- }, /*#__PURE__*/ B.createElement(A_, { style: {
+ }, /*#__PURE__*/ B.createElement(k_, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ B.createElement("div", {
@@ -22845,14 +22845,14 @@ xs(Co, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ B.createElement(O_, {
+ }))), a && d.children && /*#__PURE__*/ B.createElement(D_, {
...W(zs(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ B.createElement(A_, {
+ }, /*#__PURE__*/ B.createElement(k_, {
role: "rowheader",
...p,
style: m
@@ -22860,13 +22860,13 @@ xs(Co, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var M_ = /* @__PURE__ */ new WeakMap();
-function N_(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${M_.get(e)}-${n}-${t}`) : "";
+var j_ = /* @__PURE__ */ new WeakMap();
+function M_(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${j_.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function yte(e, t, n) {
+function bte(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 } = Sd({
selectionManager: o,
key: r,
@@ -22874,7 +22874,7 @@ function yte(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = N_(t, r, "tab"), m = N_(t, r, "tabpanel"), { tabIndex: h } = d, g = zs(u?.props, { labelable: !0 });
+ }), p = M_(t, r, "tab"), m = M_(t, r, "tabpanel"), { tabIndex: h } = d, g = zs(u?.props, { labelable: !0 });
delete g.id;
let _ = fa(u?.props), { focusableProps: v } = rs({
...u?.props,
@@ -22896,12 +22896,12 @@ function yte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function bte(e, t, n) {
- let r = $h(n) ? void 0 : 0, i = N_(t, e.id ?? t?.selectedKey, "tabpanel");
+function xte(e, t, n) {
+ let r = $h(n) ? void 0 : 0, i = M_(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: W(Wa({
...e,
id: i,
- "aria-labelledby": N_(t, t?.selectedKey, "tab")
+ "aria-labelledby": M_(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -22911,7 +22911,7 @@ function bte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var xte = class {
+var Ste = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -22955,11 +22955,11 @@ var xte = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Ste(e, t, n) {
+function Cte(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = to(), { collectionProps: l } = pd({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, B.useMemo)(() => new xte(a, c, r, s), [
+ keyboardDelegate: (0, B.useMemo)(() => new Ste(a, c, r, s), [
a,
s,
r,
@@ -22970,7 +22970,7 @@ function Ste(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Vr();
- return M_.set(t, u), { tabListProps: {
+ return j_.set(t, u), { tabListProps: {
...W(l, Wa({
...e,
id: u
@@ -22982,7 +22982,7 @@ function Ste(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Cte(e) {
+function wte(e) {
let [t, n] = vo(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = qd({
...e,
selectionMode: "single",
@@ -23006,24 +23006,24 @@ function Cte(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function wte(e) {
- let t = Cte({
+function Tte(e) {
+ let t = wte({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? P_(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? N_(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 = P_(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 = N_(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 P_(e, t) {
+function N_(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);
@@ -23033,20 +23033,20 @@ function P_(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var F_ = /*#__PURE__*/ (0, B.createContext)(null), I_ = /*#__PURE__*/ (0, B.createContext)(null), L_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = $r(e, t, F_);
+var P_ = /*#__PURE__*/ (0, B.createContext)(null), F_ = /*#__PURE__*/ (0, B.createContext)(null), I_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = $r(e, t, P_);
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(ps, { content: n }, (n) => /*#__PURE__*/ B.createElement(Tte, {
+ }) : n, [n, r]), /*#__PURE__*/ B.createElement(ps, { content: n }, (n) => /*#__PURE__*/ B.createElement(Ete, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Tte({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = wte({
+function Ete({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Tte({
...e,
collection: n,
children: void 0
@@ -23071,16 +23071,16 @@ function Tte({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ B.createElement(Xr, { values: [[F_, e], [I_, i]] }, l.children));
+ }, /*#__PURE__*/ B.createElement(Xr, { values: [[P_, e], [F_, i]] }, l.children));
}
-var R_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- return (0, B.useContext)(I_) ? /*#__PURE__*/ B.createElement(Ete, {
+var L_ = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ return (0, B.useContext)(F_) ? /*#__PURE__*/ B.createElement(Dte, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ B.createElement(Ts, e);
});
-function Ete({ props: e, forwardedRef: t }) {
- let n = (0, B.useContext)(I_), { CollectionRoot: r } = (0, B.useContext)(js), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Qr(F_), o = Jr(t), { tabListProps: s } = Ste({
+function Dte({ props: e, forwardedRef: t }) {
+ let n = (0, B.useContext)(F_), { CollectionRoot: r } = (0, B.useContext)(js), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Qr(P_), o = Jr(t), { tabListProps: s } = Cte({
...e,
orientation: i,
keyboardActivation: a
@@ -23102,12 +23102,12 @@ function Ete({ props: e, forwardedRef: t }) {
persistedKeys: Ms(n.selectionManager.focusedKey)
})));
}
-var z_ = /*#__PURE__*/ xs(class extends xo {
+var R_ = /*#__PURE__*/ xs(class extends xo {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, B.useContext)(I_), i = Jr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yte({
+ let r = (0, B.useContext)(F_), i = Jr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = bte({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = uc(), { hoverProps: f, isHovered: p } = gc({
@@ -23139,19 +23139,19 @@ var z_ = /*#__PURE__*/ xs(class extends xo {
"data-pressed": c || void 0,
"data-hovered": p || void 0
}, /*#__PURE__*/ B.createElement(Su.Provider, { value: { isSelected: o } }, m.children));
-}), B_ = /*#__PURE__*/ os(function(e, t) {
- let n = (0, B.useContext)(I_), r = Jr(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);
+}), z_ = /*#__PURE__*/ os(function(e, t) {
+ let n = (0, B.useContext)(F_), r = Jr(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 = Zp(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(Dte, {
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(Ote, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Dte(e) {
- let t = (0, B.useContext)(I_), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = bte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = uc(), d = t.selectedKey === e.id, f = Xp(r) && !i, p = Zr({
+function Ote(e) {
+ let t = (0, B.useContext)(F_), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = uc(), d = t.selectedKey === e.id, f = Xp(r) && !i, p = Zr({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -23174,12 +23174,12 @@ function Dte(e) {
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ B.createElement(Xr, { values: [[F_, null], [I_, null]] }, /*#__PURE__*/ B.createElement(js.Provider, { value: Os }, p.children)));
+ }, /*#__PURE__*/ B.createElement(Xr, { values: [[P_, null], [F_, null]] }, /*#__PURE__*/ B.createElement(js.Provider, { value: Os }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Ote = /*#__PURE__*/ (0, B.createContext)({}), kte = /*#__PURE__*/ (0, B.createContext)(null), Ate = /*#__PURE__*/ os(function(e, t) {
- [e, t] = $r(e, t, kte);
+var kte = /*#__PURE__*/ (0, B.createContext)({}), Ate = /*#__PURE__*/ (0, B.createContext)(null), jte = /*#__PURE__*/ os(function(e, t) {
+ [e, t] = $r(e, t, Ate);
let { validationBehavior: n } = Qr(ol) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);
[e, i] = $r(e, i, bo);
let [a, o] = ei(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Ml({
@@ -23217,7 +23217,7 @@ var Ote = /*#__PURE__*/ (0, B.createContext)({}), kte = /*#__PURE__*/ (0, B.crea
...u,
ref: m
}],
- [Ote, {
+ [kte, {
...u,
ref: m
}],
@@ -23235,34 +23235,34 @@ var Ote = /*#__PURE__*/ (0, B.createContext)({}), kte = /*#__PURE__*/ (0, B.crea
});
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function V_(e, t) {
+function B_(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function H_(e, t) {
+function V_(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var U_ = (e, t, n) => n > t ? t : n < e ? e : n, W_ = {}, G_ = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), K_ = (e) => typeof e == "object" && !!e, q_ = (e) => /^0[^.\s]+$/u.test(e);
+var H_ = (e, t, n) => n > t ? t : n < e ? e : n, U_ = {}, W_ = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), G_ = (e) => typeof e == "object" && !!e, K_ = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function J_(e) {
+function q_(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var Y_ = /* @__NO_SIDE_EFFECTS__ */ (e) => e, X_ = (...e) => e.reduce((e, t) => (n) => t(e(n))), Z_ = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var J_ = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Y_ = (...e) => e.reduce((e, t) => (n) => t(e(n))), X_ = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, Q_ = class {
+}, Z_ = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return V_(this.subscriptions, e), () => H_(this.subscriptions, e);
+ return B_(this.subscriptions, e), () => V_(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -23280,42 +23280,42 @@ var Y_ = /* @__NO_SIDE_EFFECTS__ */ (e) => e, X_ = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, $_ = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ev = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, tv = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, nv = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, jte = 1e-7, Mte = 12;
-function Nte(e, t, n, r, i) {
+}, Q_ = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, $_ = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, ev = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, tv = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Mte = 1e-7, Nte = 12;
+function Pte(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = nv(o, r, i) - e, a > 0 ? n = o : t = o;
- while (Math.abs(a) > jte && ++s < Mte);
+ o = t + (n - t) / 2, a = tv(o, r, i) - e, a > 0 ? n = o : t = o;
+ while (Math.abs(a) > Mte && ++s < Nte);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function rv(e, t, n, r) {
- if (e === t && n === r) return Y_;
- let i = (t) => Nte(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : nv(i(e), t, r);
+function nv(e, t, n, r) {
+ if (e === t && n === r) return J_;
+ let i = (t) => Pte(t, 0, 1, e, n);
+ return (e) => e === 0 || e === 1 ? e : tv(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var iv = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, av = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), ov = /*@__PURE__*/ rv(.33, 1.53, .69, .99), sv = /*@__PURE__*/ av(ov), cv = /*@__PURE__*/ iv(sv), lv = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * sv(e) : .5 * (2 - 2 ** (-10 * (e - 1))), uv = (e) => 1 - Math.sin(Math.acos(e)), dv = /* @__PURE__ */ av(uv), fv = /* @__PURE__ */ iv(uv), Pte = /*@__PURE__*/ rv(.42, 0, 1, 1), Fte = /*@__PURE__*/ rv(0, 0, .58, 1), pv = /*@__PURE__*/ rv(.42, 0, .58, 1), Ite = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", mv = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", hv = {
- linear: Y_,
- easeIn: Pte,
- easeInOut: pv,
- easeOut: Fte,
- circIn: uv,
- circInOut: fv,
- circOut: dv,
- backIn: sv,
- backInOut: cv,
- backOut: ov,
- anticipate: lv
-}, Lte = (e) => typeof e == "string", gv = (e) => {
- if (/* @__PURE__ */ mv(e)) {
+var rv = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, iv = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), av = /*@__PURE__*/ nv(.33, 1.53, .69, .99), ov = /*@__PURE__*/ iv(av), sv = /*@__PURE__*/ rv(ov), cv = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * ov(e) : .5 * (2 - 2 ** (-10 * (e - 1))), lv = (e) => 1 - Math.sin(Math.acos(e)), uv = /* @__PURE__ */ iv(lv), dv = /* @__PURE__ */ rv(lv), Fte = /*@__PURE__*/ nv(.42, 0, 1, 1), Ite = /*@__PURE__*/ nv(0, 0, .58, 1), fv = /*@__PURE__*/ nv(.42, 0, .58, 1), Lte = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", pv = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", mv = {
+ linear: J_,
+ easeIn: Fte,
+ easeInOut: fv,
+ easeOut: Ite,
+ circIn: lv,
+ circInOut: dv,
+ circOut: uv,
+ backIn: ov,
+ backInOut: sv,
+ backOut: av,
+ anticipate: cv
+}, Rte = (e) => typeof e == "string", hv = (e) => {
+ if (/* @__PURE__ */ pv(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ rv(t, n, r, i);
+ return /* @__PURE__ */ nv(t, n, r, i);
}
- return Lte(e) ? (hv[e], `${e}`, hv[e]) : e;
-}, _v = [
+ return Rte(e) ? (mv[e], `${e}`, mv[e]) : e;
+}, gv = [
"setup",
"read",
"resolveKeyframes",
@@ -23327,7 +23327,7 @@ var iv = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 -
];
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function Rte(e) {
+function zte(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new WeakSet(), o = {
delta: 0,
timestamp: 0,
@@ -23358,25 +23358,25 @@ function Rte(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var zte = 40;
-function vv(e, t) {
+var Bte = 40;
+function _v(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = _v.reduce((e, t) => (e[t] = Rte(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = W_.useManualTiming, o = a ? i.timestamp : performance.now();
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, zte), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
+ }, a = () => n = !0, o = gv.reduce((e, t) => (e[t] = zte(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = U_.useManualTiming, o = a ? i.timestamp : performance.now();
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Bte), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
}, g = () => {
n = !0, r = !0, i.isProcessing || e(h);
};
return {
- schedule: _v.reduce((e, t) => {
+ schedule: gv.reduce((e, t) => {
let r = o[t];
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < _v.length; t++) o[_v[t]].cancel(e);
+ for (let t = 0; t < gv.length; t++) o[gv[t]].cancel(e);
},
state: i,
steps: o
@@ -23384,59 +23384,59 @@ function vv(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: yv, cancel: bv, state: xv, steps: Sv } = /* @__PURE__ */ vv(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Y_, !0), Cv;
-function Bte() {
- Cv = void 0;
+var { schedule: vv, cancel: yv, state: bv, steps: xv } = /* @__PURE__ */ _v(typeof requestAnimationFrame < "u" ? requestAnimationFrame : J_, !0), Sv;
+function Vte() {
+ Sv = void 0;
}
-var wv = {
- now: () => (Cv === void 0 && wv.set(xv.isProcessing || W_.useManualTiming ? xv.timestamp : performance.now()), Cv),
+var Cv = {
+ now: () => (Sv === void 0 && Cv.set(bv.isProcessing || U_.useManualTiming ? bv.timestamp : performance.now()), Sv),
set: (e) => {
- Cv = e, queueMicrotask(Bte);
+ Sv = e, queueMicrotask(Vte);
}
-}, Tv = (e) => (t) => typeof t == "string" && t.startsWith(e), Ev = /*@__PURE__*/ Tv("--"), Vte = /*@__PURE__*/ Tv("var(--"), Dv = (e) => Vte(e) ? Hte.test(e.split("/*")[0].trim()) : !1, Hte = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function Ov(e) {
+}, wv = (e) => (t) => typeof t == "string" && t.startsWith(e), Tv = /*@__PURE__*/ wv("--"), Hte = /*@__PURE__*/ wv("var(--"), Ev = (e) => Hte(e) ? Ute.test(e.split("/*")[0].trim()) : !1, Ute = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function Dv(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var kv = {
+var Ov = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
+}, kv = {
+ ...Ov,
+ transform: (e) => H_(0, 1, e)
}, Av = {
- ...kv,
- transform: (e) => U_(0, 1, e)
-}, jv = {
- ...kv,
+ ...Ov,
default: 1
-}, Mv = (e) => Math.round(e * 1e5) / 1e5, Nv = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, jv = (e) => Math.round(e * 1e5) / 1e5, Mv = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function Ute(e) {
+function Wte(e) {
return e == null;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var Wte = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Pv = (e, t) => (n) => !!(typeof n == "string" && Wte.test(n) && n.startsWith(e) || t && !Ute(n) && Object.prototype.hasOwnProperty.call(n, t)), Fv = (e, t, n) => (r) => {
+var Gte = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Nv = (e, t) => (n) => !!(typeof n == "string" && Gte.test(n) && n.startsWith(e) || t && !Wte(n) && Object.prototype.hasOwnProperty.call(n, t)), Pv = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(Nv);
+ let [i, a, o, s] = r.match(Mv);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Gte = (e) => U_(0, 255, e), Iv = {
- ...kv,
- transform: (e) => Math.round(Gte(e))
-}, Lv = {
- test: /*@__PURE__*/ Pv("rgb", "red"),
- parse: /*@__PURE__*/ Fv("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Iv.transform(e) + ", " + Iv.transform(t) + ", " + Iv.transform(n) + ", " + Mv(Av.transform(r)) + ")"
+}, Kte = (e) => H_(0, 255, e), Fv = {
+ ...Ov,
+ transform: (e) => Math.round(Kte(e))
+}, Iv = {
+ test: /*@__PURE__*/ Nv("rgb", "red"),
+ parse: /*@__PURE__*/ Pv("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Fv.transform(e) + ", " + Fv.transform(t) + ", " + Fv.transform(n) + ", " + jv(kv.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
-function Kte(e) {
+function qte(e) {
let t = "", n = "", r = "", i = "";
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
red: parseInt(t, 16),
@@ -23445,38 +23445,38 @@ function Kte(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var Rv = {
- test: /*@__PURE__*/ Pv("#"),
- parse: Kte,
- transform: Lv.transform
-}, zv = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var Lv = {
+ test: /*@__PURE__*/ Nv("#"),
+ parse: qte,
+ transform: Iv.transform
+}, Rv = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), Bv = /*@__PURE__*/ zv("deg"), Vv = /*@__PURE__*/ zv("%"), Hv = /*@__PURE__*/ zv("px"), qte = /*@__PURE__*/ zv("vh"), Jte = /*@__PURE__*/ zv("vw"), Uv = {
- ...Vv,
- parse: (e) => Vv.parse(e) / 100,
- transform: (e) => Vv.transform(e * 100)
+}), zv = /*@__PURE__*/ Rv("deg"), Bv = /*@__PURE__*/ Rv("%"), Vv = /*@__PURE__*/ Rv("px"), Jte = /*@__PURE__*/ Rv("vh"), Yte = /*@__PURE__*/ Rv("vw"), Hv = {
+ ...Bv,
+ parse: (e) => Bv.parse(e) / 100,
+ transform: (e) => Bv.transform(e * 100)
+}, Uv = {
+ test: /*@__PURE__*/ Nv("hsl", "hue"),
+ parse: /*@__PURE__*/ Pv("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Bv.transform(jv(t)) + ", " + Bv.transform(jv(n)) + ", " + jv(kv.transform(r)) + ")"
}, Wv = {
- test: /*@__PURE__*/ Pv("hsl", "hue"),
- parse: /*@__PURE__*/ Fv("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Vv.transform(Mv(t)) + ", " + Vv.transform(Mv(n)) + ", " + Mv(Av.transform(r)) + ")"
-}, Gv = {
- test: (e) => Lv.test(e) || Rv.test(e) || Wv.test(e),
- parse: (e) => Lv.test(e) ? Lv.parse(e) : Wv.test(e) ? Wv.parse(e) : Rv.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Lv.transform(e) : Wv.transform(e),
+ test: (e) => Iv.test(e) || Lv.test(e) || Uv.test(e),
+ parse: (e) => Iv.test(e) ? Iv.parse(e) : Uv.test(e) ? Uv.parse(e) : Lv.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Iv.transform(e) : Uv.transform(e),
getAnimatableNone: (e) => {
- let t = Gv.parse(e);
- return t.alpha = 0, Gv.transform(t);
+ let t = Wv.parse(e);
+ return t.alpha = 0, Wv.transform(t);
}
-}, Yte = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
+}, Xte = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
-function Xte(e) {
- return isNaN(e) && typeof e == "string" && (e.match(Nv)?.length || 0) + (e.match(Yte)?.length || 0) > 0;
+function Zte(e) {
+ return isNaN(e) && typeof e == "string" && (e.match(Mv)?.length || 0) + (e.match(Xte)?.length || 0) > 0;
}
-var Kv = "number", qv = "color", Zte = "var", Qte = "var(", Jv = "${}", $te = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
-function Yv(e) {
+var Gv = "number", Kv = "color", Qte = "var", $te = "var(", qv = "${}", ene = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
+function Jv(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -23484,51 +23484,51 @@ function Yv(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace($te, (e) => (Gv.test(e) ? (r.color.push(a), i.push(qv), n.push(Gv.parse(e))) : e.startsWith(Qte) ? (r.var.push(a), i.push(Zte), n.push(e)) : (r.number.push(a), i.push(Kv), n.push(parseFloat(e))), ++a, Jv)).split(Jv),
+ split: t.replace(ene, (e) => (Wv.test(e) ? (r.color.push(a), i.push(Kv), n.push(Wv.parse(e))) : e.startsWith($te) ? (r.var.push(a), i.push(Qte), n.push(e)) : (r.number.push(a), i.push(Gv), n.push(parseFloat(e))), ++a, qv)).split(qv),
indexes: r,
types: i
};
}
-function ene(e) {
- return Yv(e).values;
+function tne(e) {
+ return Jv(e).values;
}
-function Xv({ split: e, types: t }) {
+function Yv({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Kv ? Mv(r[a]) : e === qv ? Gv.transform(r[a]) : r[a];
+ i += e === Gv ? jv(r[a]) : e === Kv ? Wv.transform(r[a]) : r[a];
}
return i;
};
}
-function tne(e) {
- return Xv(Yv(e));
-}
-var nne = (e) => typeof e == "number" ? 0 : Gv.test(e) ? Gv.getAnimatableNone(e) : e, rne = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : nne(e);
-function ine(e) {
- let t = Yv(e);
- return Xv(t)(t.values.map((e, n) => rne(e, t.split[n])));
-}
-var Zv = {
- test: Xte,
- parse: ene,
- createTransformer: tne,
- getAnimatableNone: ine
+function nne(e) {
+ return Yv(Jv(e));
+}
+var rne = (e) => typeof e == "number" ? 0 : Wv.test(e) ? Wv.getAnimatableNone(e) : e, ine = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : rne(e);
+function ane(e) {
+ let t = Jv(e);
+ return Yv(t)(t.values.map((e, n) => ine(e, t.split[n])));
+}
+var Xv = {
+ test: Zte,
+ parse: tne,
+ createTransformer: nne,
+ getAnimatableNone: ane
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function Qv(e, t, n) {
+function Zv(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function ane({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function one({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = Qv(s, r, e + 1 / 3), a = Qv(s, r, e), o = Qv(s, r, e - 1 / 3);
+ i = Zv(s, r, e + 1 / 3), a = Zv(s, r, e), o = Zv(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -23539,30 +23539,30 @@ function ane({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function $v(e, t) {
+function Qv(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var ey = (e, t, n) => e + (t - e) * n, ty = (e, t, n) => {
+var $v = (e, t, n) => e + (t - e) * n, ey = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, one = [
- Rv,
+}, ty = [
Lv,
- Wv
-], sne = (e) => one.find((t) => t.test(e));
+ Iv,
+ Uv
+], sne = (e) => ty.find((t) => t.test(e));
function ny(e) {
let t = sne(e);
if (`${e}`, !t) return !1;
let n = t.parse(e);
- return t === Wv && (n = ane(n)), n;
+ return t === Uv && (n = one(n)), n;
}
var ry = (e, t) => {
let n = ny(e), r = ny(t);
- if (!n || !r) return $v(e, t);
+ if (!n || !r) return Qv(e, t);
let i = { ...n };
- return (e) => (i.red = ty(n.red, r.red, e), i.green = ty(n.green, r.green, e), i.blue = ty(n.blue, r.blue, e), i.alpha = ey(n.alpha, r.alpha, e), Lv.transform(i));
+ return (e) => (i.red = ey(n.red, r.red, e), i.green = ey(n.green, r.green, e), i.blue = ey(n.blue, r.blue, e), i.alpha = $v(n.alpha, r.alpha, e), Iv.transform(i));
}, iy = /* @__PURE__ */ new Set(["none", "hidden"]);
function cne(e, t) {
return iy.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -23570,10 +23570,10 @@ function cne(e, t) {
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
function lne(e, t) {
- return (n) => ey(e, t, n);
+ return (n) => $v(e, t, n);
}
function ay(e) {
- return typeof e == "number" ? lne : typeof e == "string" ? Dv(e) ? $v : Gv.test(e) ? ry : sy : Array.isArray(e) ? oy : typeof e == "object" ? Gv.test(e) ? ry : une : $v;
+ return typeof e == "number" ? lne : typeof e == "string" ? Ev(e) ? Qv : Wv.test(e) ? ry : fne : Array.isArray(e) ? oy : typeof e == "object" ? Wv.test(e) ? ry : une : Qv;
}
function oy(e, t) {
let n = [...e], r = n.length, i = e.map((e, n) => ay(e)(e, t[n]));
@@ -23605,50 +23605,50 @@ function dne(e, t) {
}
return n;
}
-var sy = (e, t) => {
- let n = Zv.createTransformer(t), r = Yv(e), i = Yv(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? iy.has(e) && !i.values.length || iy.has(t) && !r.values.length ? cne(e, t) : X_(oy(dne(r, i), i.values), n) : (`${e}${t}`, $v(e, t));
+var fne = (e, t) => {
+ let n = Xv.createTransformer(t), r = Jv(e), i = Jv(t);
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? iy.has(e) && !i.values.length || iy.has(t) && !r.values.length ? cne(e, t) : Y_(oy(dne(r, i), i.values), n) : (`${e}${t}`, Qv(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
-function cy(e, t, n) {
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? ey(e, t, n) : ay(e)(e, t);
+function sy(e, t, n) {
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? $v(e, t, n) : ay(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
-var fne = (e) => {
+var pne = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => yv.update(t, e),
- stop: () => bv(t),
- now: () => xv.isProcessing ? xv.timestamp : wv.now()
+ start: (e = !0) => vv.update(t, e),
+ stop: () => yv(t),
+ now: () => bv.isProcessing ? bv.timestamp : Cv.now()
};
-}, ly = (e, t, n = 10) => {
+}, cy = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, uy = 2e4;
-function dy(e) {
+}, ly = 2e4;
+function uy(e) {
let t = 0, n = e.next(t);
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
return t >= 2e4 ? Infinity : t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function pne(e, t = 100, n) {
+function mne(e, t = 100, n) {
let r = n({
...e,
keyframes: [0, t]
- }), i = Math.min(dy(r), uy);
+ }), i = Math.min(uy(r), ly);
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ ev(i)
+ duration: /* @__PURE__ */ $_(i)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var fy = {
+var dy = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -23669,31 +23669,31 @@ var fy = {
minDamping: .05,
maxDamping: 1
};
-function py(e, t) {
+function fy(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var mne = 12;
-function hne(e, t, n) {
+var hne = 12;
+function gne(e, t, n) {
let r = n;
- for (let n = 1; n < mne; n++) r -= e(r) / t(r);
+ for (let n = 1; n < hne; n++) r -= e(r) / t(r);
return r;
}
-var my = .001;
-function gne({ duration: e = fy.duration, bounce: t = fy.bounce, velocity: n = fy.velocity, mass: r = fy.mass }) {
+var py = .001;
+function _ne({ duration: e = dy.duration, bounce: t = dy.bounce, velocity: n = dy.velocity, mass: r = dy.mass }) {
let i, a;
- fy.maxDuration;
+ dy.maxDuration;
let o = 1 - t;
- o = U_(fy.minDamping, fy.maxDamping, o), e = U_(fy.minDuration, fy.maxDuration, /* @__PURE__ */ ev(e)), o < 1 ? (i = (t) => {
- let r = t * o, i = r * e, a = r - n, s = py(t, o), c = Math.exp(-i);
- return my - a / s * c;
+ o = H_(dy.minDamping, dy.maxDamping, o), e = H_(dy.minDuration, dy.maxDuration, /* @__PURE__ */ $_(e)), o < 1 ? (i = (t) => {
+ let r = t * o, i = r * e, a = r - n, s = fy(t, o), c = Math.exp(-i);
+ return py - a / s * c;
}, a = (t) => {
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = py(t ** 2, o);
- return (-i(t) + my > 0 ? -1 : 1) * ((a - s) * c) / l;
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = fy(t ** 2, o);
+ return (-i(t) + py > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
- let s = 5 / e, c = hne(i, a, s);
- if (e = /* @__PURE__ */ $_(e), isNaN(c)) return {
- stiffness: fy.stiffness,
- damping: fy.damping,
+ let s = 5 / e, c = gne(i, a, s);
+ if (e = /* @__PURE__ */ Q_(e), isNaN(c)) return {
+ stiffness: dy.stiffness,
+ damping: dy.damping,
duration: e
};
{
@@ -23705,47 +23705,47 @@ function gne({ duration: e = fy.duration, bounce: t = fy.bounce, velocity: n = f
};
}
}
-var _ne = ["duration", "bounce"], vne = [
+var vne = ["duration", "bounce"], yne = [
"stiffness",
"damping",
"mass"
];
-function hy(e, t) {
+function my(e, t) {
return t.some((t) => e[t] !== void 0);
}
-function yne(e) {
+function bne(e) {
let t = {
- velocity: fy.velocity,
- stiffness: fy.stiffness,
- damping: fy.damping,
- mass: fy.mass,
+ velocity: dy.velocity,
+ stiffness: dy.stiffness,
+ damping: dy.damping,
+ mass: dy.mass,
isResolvedFromDuration: !1,
...e
};
- if (!hy(e, vne) && hy(e, _ne)) {
+ if (!my(e, yne) && my(e, vne)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * U_(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * H_(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
- mass: fy.mass,
+ mass: dy.mass,
stiffness: i,
damping: a
};
} else {
- let n = gne({
+ let n = _ne({
...e,
velocity: 0
});
t = {
...t,
...n,
- mass: fy.mass
+ mass: dy.mass
}, t.isResolvedFromDuration = !0;
}
}
return t;
}
-function gy(e = fy.visualDuration, t = fy.bounce) {
+function hy(e = dy.visualDuration, t = dy.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -23753,13 +23753,13 @@ function gy(e = fy.visualDuration, t = fy.bounce) {
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
done: !1,
value: a
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = yne({
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = bne({
...n,
- velocity: -/* @__PURE__ */ ev(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ ev(Math.sqrt(c / u)), v = Math.abs(g) < 5;
- r ||= v ? fy.restSpeed.granular : fy.restSpeed.default, i ||= v ? fy.restDelta.granular : fy.restDelta.default;
+ velocity: -/* @__PURE__ */ $_(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ $_(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ r ||= v ? dy.restSpeed.granular : dy.restSpeed.default, i ||= v ? dy.restDelta.granular : dy.restDelta.default;
let y, b, x, S, C, w;
- if (h < 1) x = py(_, h), S = (m + h * _ * g) / x, y = (e) => {
+ if (h < 1) x = fy(_, h), S = (m + h * _ * g) / x, y = (e) => {
let t = Math.exp(-h * _ * e);
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
@@ -23781,42 +23781,42 @@ function gy(e = fy.visualDuration, t = fy.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ $_(b(e)),
+ velocity: (e) => /* @__PURE__ */ Q_(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ $_(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ Q_(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ $_(b(e));
+ let n = /* @__PURE__ */ Q_(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
},
toString: () => {
- let e = Math.min(dy(T), uy), t = ly((t) => T.next(e * t).value, e, 30);
+ let e = Math.min(uy(T), ly), t = cy((t) => T.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return T;
}
-gy.applyToOptions = (e) => {
- let t = pne(e, 100, gy);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ $_(t.duration), e.type = "keyframes", e;
+hy.applyToOptions = (e) => {
+ let t = mne(e, 100, hy);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ Q_(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var bne = 5;
-function _y(e, t, n) {
- let r = Math.max(t - bne, 0);
- return /* @__PURE__ */ tv(n - e(r), t - r);
+var xne = 5;
+function gy(e, t, n) {
+ let r = Math.max(t - xne, 0);
+ return /* @__PURE__ */ ev(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function vy({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function _y({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -23826,9 +23826,9 @@ function vy({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e), n = y(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
}, x, S, C = (e) => {
- p(f.value) && (x = e, S = gy({
+ p(f.value) && (x = e, S = hy({
keyframes: [f.value, m(f.value)],
- velocity: _y(y, e, f.value),
+ velocity: gy(y, e, f.value),
damping: i,
stiffness: a,
restDelta: l,
@@ -23845,59 +23845,59 @@ function vy({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function xne(e, t, n) {
- let r = [], i = n || W_.mix || cy, a = e.length - 1;
+function Sne(e, t, n) {
+ let r = [], i = n || U_.mix || sy, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = X_(Array.isArray(t) ? t[n] || Y_ : t, a)), r.push(a);
+ t && (a = Y_(Array.isArray(t) ? t[n] || J_ : t, a)), r.push(a);
}
return r;
}
-function yy(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function vy(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (t.length, a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = xne(t, r, i), c = s.length, l = (n) => {
+ let s = Sne(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ Z_(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ X_(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(U_(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(H_(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Sne(e, t) {
+function Cne(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ Z_(0, t, r);
- e.push(ey(n, 1, i));
+ let i = /* @__PURE__ */ X_(0, t, r);
+ e.push($v(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Cne(e) {
+function wne(e) {
let t = [0];
- return Sne(t, e.length - 1), t;
+ return Cne(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function wne(e, t) {
+function Tne(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function Tne(e, t) {
- return e.map(() => t || pv).splice(0, e.length - 1);
+function Ene(e, t) {
+ return e.map(() => t || fv).splice(0, e.length - 1);
}
-function by({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ Ite(r) ? r.map(gv) : gv(r), a = {
+function yy({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+ let i = /* @__PURE__ */ Lte(r) ? r.map(hv) : hv(r), a = {
done: !1,
value: t[0]
- }, o = yy(wne(n && n.length === t.length ? n : Cne(t), e), t, { ease: Array.isArray(i) ? i : Tne(t, i) });
+ }, o = vy(Tne(n && n.length === t.length ? n : wne(t), e), t, { ease: Array.isArray(i) ? i : Ene(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -23905,22 +23905,22 @@ function by({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var xy = (e) => e !== null;
-function Sy(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(xy), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var by = (e) => e !== null;
+function xy(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(by), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Ene = {
- decay: vy,
- inertia: vy,
- tween: by,
- keyframes: by,
- spring: gy
+var Sy = {
+ decay: _y,
+ inertia: _y,
+ tween: yy,
+ keyframes: yy,
+ spring: hy
};
function Cy(e) {
- typeof e.type == "string" && (e.type = Ene[e.type]);
+ typeof e.type == "string" && (e.type = Sy[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
@@ -23949,14 +23949,14 @@ var wy = class {
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== wv.now() && this.tick(wv.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== Cv.now() && this.tick(Cv.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
}
initAnimation() {
let { options: e } = this;
Cy(e);
- let { type: t = by, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || by;
- s !== by && typeof o[0] != "number" && (this.mixKeyframes = X_(Dne, cy(o[0], o[1])), o = [0, 100]);
+ let { type: t = yy, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || yy;
+ s !== yy && typeof o[0] != "number" && (this.mixKeyframes = Y_(Dne, sy(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -23965,7 +23965,7 @@ var wy = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = dy(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = uy(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -23983,54 +23983,54 @@ var wy = class {
let v = this.currentTime, y = n;
if (u) {
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = U_(0, 1, n) * o;
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = H_(0, 1, n) * o;
}
let b;
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
let { done: x } = b;
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
- return S && p !== vy && (b.value = Sy(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
+ return S && p !== _y && (b.value = xy(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
}
then(e, t) {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ ev(this.calculatedDuration);
+ return /* @__PURE__ */ $_(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ ev(e);
+ return this.duration + /* @__PURE__ */ $_(e);
}
get time() {
- return /* @__PURE__ */ ev(this.currentTime);
+ return /* @__PURE__ */ $_(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ $_(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ Q_(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
let e = this.currentTime;
if (e <= 0) return this.options.velocity || 0;
if (this.generator.velocity) return this.generator.velocity(e);
let t = this.generator.next(e).value;
- return _y((e) => this.generator.next(e).value, e, t);
+ return gy((e) => this.generator.next(e).value, e, t);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(wv.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ ev(this.currentTime));
+ t && this.driver && this.updateTime(Cv.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ $_(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = fne, startTime: t } = this.options;
+ let { driver: e = pne, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(wv.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(Cv.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -24134,7 +24134,7 @@ var Fy = [
"skew",
"skewX",
"skewY"
-], Iy = /* @__PURE__ */ new Set([...Fy, "pathRotation"]), Ly = (e) => e === kv || e === Hv, Mne = /* @__PURE__ */ new Set([
+], Iy = /* @__PURE__ */ new Set([...Fy, "pathRotation"]), Ly = (e) => e === Ov || e === Vv, Mne = /* @__PURE__ */ new Set([
"x",
"y",
"z"
@@ -24197,7 +24197,7 @@ var Gy = class {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (zy.add(this), By || (By = !0, yv.read(Wy), yv.resolveKeyframes(Uy))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (zy.add(this), By || (By = !0, vv.read(Wy), vv.resolveKeyframes(Uy))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -24237,7 +24237,7 @@ var Ine = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
function Jy(e, t) {
- let n = /* @__PURE__ */ J_(e);
+ let n = /* @__PURE__ */ q_(e);
return () => Ine[t] ?? n();
}
//#endregion
@@ -24283,7 +24283,7 @@ var Lne = /* @__PURE__ */ Jy(() => window.ScrollTimeline !== void 0, "scrollTime
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
function Qy(e, t) {
- if (e) return typeof e == "function" ? Yy() ? ly(e, t) : "ease-out" : /* @__PURE__ */ mv(e) ? Xy(e) : Array.isArray(e) ? e.map((e) => Qy(e, t) || Zy.easeOut) : Zy[e];
+ if (e) return typeof e == "function" ? Yy() ? cy(e, t) : "ease-out" : /* @__PURE__ */ pv(e) ? Xy(e) : Array.isArray(e) ? e.map((e) => Qy(e, t) || Zy.easeOut) : Zy[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
@@ -24322,7 +24322,7 @@ var eb = class extends wy {
let c = zne(e);
this.animation = Rne(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Sy(r, this.options, o, this.speed);
+ let e = xy(r, this.options, o, this.speed);
this.updateMotionValue && this.updateMotionValue(e), qy(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
@@ -24354,18 +24354,18 @@ var eb = class extends wy {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ ev(Number(e));
+ return /* @__PURE__ */ $_(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ ev(e);
+ return this.duration + /* @__PURE__ */ $_(e);
}
get time() {
- return /* @__PURE__ */ ev(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ $_(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ $_(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Q_(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -24383,24 +24383,24 @@ var eb = class extends wy {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Lne() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Y_) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Lne() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), J_) : r(this);
}
}, tb = {
- anticipate: lv,
- backInOut: cv,
- circInOut: fv
+ anticipate: cv,
+ backInOut: sv,
+ circInOut: dv
};
function Bne(e) {
return e in tb;
}
-function nb(e) {
+function Vne(e) {
typeof e.ease == "string" && Bne(e.ease) && (e.ease = tb[e.ease]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
-var rb = 10, ib = class extends eb {
+var nb = 10, rb = class extends eb {
constructor(e) {
- nb(e), Cy(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Vne(e), Cy(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
updateMotionValue(e) {
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
@@ -24412,45 +24412,45 @@ var rb = 10, ib = class extends eb {
let o = new Ty({
...a,
autoplay: !1
- }), s = Math.max(rb, wv.now() - this.startTime), c = U_(0, rb, s - rb), l = o.sample(s).value, { name: u } = this.options;
+ }), s = Math.max(nb, Cv.now() - this.startTime), c = H_(0, nb, s - nb), l = o.sample(s).value, { name: u } = this.options;
i && u && qy(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
-}, ab = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Zv.test(e) || e === "0") && !e.startsWith("url("));
+}, ib = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Xv.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function ob(e) {
+function ab(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function sb(e, t, n, r) {
+function ob(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = ab(i, t), s = ab(a, t);
- return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : ob(e) || (n === "spring" || $y(n)) && r;
+ let a = e[e.length - 1], o = ib(i, t), s = ib(a, t);
+ return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : ab(e) || (n === "spring" || $y(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function cb(e) {
+function sb(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var lb = /* @__PURE__ */ new Set([
+var cb = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), Vne = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function Hne(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Vne.test(e[t])) return !0;
+]), Hne = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Une(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Hne.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var Une = /* @__PURE__ */ new Set([
+var Wne = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -24461,20 +24461,20 @@ var Une = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), Wne = /*@__PURE__*/ J_(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function Gne(e) {
+]), Gne = /*@__PURE__*/ q_(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function Kne(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return Wne() && n && (lb.has(n) || Une.has(n) && Hne(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return Gne() && n && (cb.has(n) || Wne.has(n) && Une(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var Kne = 40, qne = class extends wy {
+var qne = 40, Jne = class extends wy {
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = wv.now();
+ }, this.createdAt = Cv.now();
let d = {
autoplay: e,
delay: t,
@@ -24492,17 +24492,17 @@ var Kne = 40, qne = class extends wy {
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = wv.now();
+ this.resolvedAt = Cv.now();
let u = !0;
- sb(e, i, a, o) || (u = !1, (W_.instantAnimations || !s) && l?.(Sy(e, n, t)), e[0] = e[e.length - 1], cb(n), n.repeat = 0);
+ ob(e, i, a, o) || (u = !1, (U_.instantAnimations || !s) && l?.(xy(e, n, t)), e[0] = e[e.length - 1], sb(n), n.repeat = 0);
let d = {
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Kne ? this.resolvedAt : this.createdAt : void 0,
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > qne ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
...n,
keyframes: e
- }, f = u && !c && Gne(d), p = d.motionValue?.owner?.current, m;
+ }, f = u && !c && Kne(d), p = d.motionValue?.owner?.current, m;
if (f) try {
- m = new ib({
+ m = new rb({
...d,
element: p
});
@@ -24512,7 +24512,7 @@ var Kne = 40, qne = class extends wy {
else m = new Ty(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(Y_), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(J_), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -24562,7 +24562,7 @@ var Kne = 40, qne = class extends wy {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, Jne = class {
+}, Yne = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -24602,10 +24602,10 @@ var Kne = 40, qne = class extends wy {
return this.getAll("startTime");
}
get duration() {
- return ub(this.animations, "duration");
+ return lb(this.animations, "duration");
}
get iterationDuration() {
- return ub(this.animations, "iterationDuration");
+ return lb(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -24623,7 +24623,7 @@ var Kne = 40, qne = class extends wy {
this.runAll("complete");
}
};
-function ub(e, t) {
+function lb(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -24633,32 +24633,32 @@ function ub(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var Yne = class extends Jne {
+var Xne = class extends Yne {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, db = /* @__PURE__ */ new WeakMap(), Xne = (e, t = "") => `${e}:${t}`;
-function Zne(e) {
- let t = db.get(e);
- return t || (t = /* @__PURE__ */ new Map(), db.set(e, t)), t;
+}, ub = /* @__PURE__ */ new WeakMap(), Zne = (e, t = "") => `${e}:${t}`;
+function Qne(e) {
+ let t = ub.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), ub.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function fb(e, t, n, r = 0, i = 1) {
+function db(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/index.mjs
-var pb = 30, Qne = (e) => !isNaN(parseFloat(e)), mb = { current: void 0 }, $ne = class {
+var fb = 30, $ne = (e) => !isNaN(parseFloat(e)), pb = { current: void 0 }, ere = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = wv.now();
+ let t = Cv.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = wv.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Qne(this.current));
+ this.current = e, this.updatedAt = Cv.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = $ne(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -24667,10 +24667,10 @@ var pb = 30, Qne = (e) => !isNaN(parseFloat(e)), mb = { current: void 0 }, $ne =
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new Q_());
+ this.events[e] || (this.events[e] = new Z_());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), yv.read(() => {
+ n(), vv.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -24700,16 +24700,16 @@ var pb = 30, Qne = (e) => !isNaN(parseFloat(e)), mb = { current: void 0 }, $ne =
this.dependents && this.dependents.delete(e);
}
get() {
- return mb.current && mb.current.push(this), this.current;
+ return pb.current && pb.current.push(this), this.current;
}
getPrevious() {
return this.prev;
}
getVelocity() {
- let e = wv.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > pb) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, pb);
- return /* @__PURE__ */ tv(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = Cv.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > fb) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, fb);
+ return /* @__PURE__ */ ev(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -24731,12 +24731,12 @@ var pb = 30, Qne = (e) => !isNaN(parseFloat(e)), mb = { current: void 0 }, $ne =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function hb(e, t) {
- return new $ne(e, t);
+function mb(e, t) {
+ return new ere(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function gb(e, t) {
+function hb(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -24748,26 +24748,26 @@ function gb(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function _b(e, t) {
+function gb(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : gb(n, e);
+ return n === e ? n : hb(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var ere = {
+var tre = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, tre = (e) => ({
+}, nre = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), nre = {
+}), rre = {
type: "keyframes",
duration: .8
-}, rre = {
+}, ire = {
type: "keyframes",
ease: [
.25,
@@ -24776,7 +24776,7 @@ var ere = {
1
],
duration: .3
-}, ire = (e, { keyframes: t }) => t.length > 2 ? nre : Iy.has(e) ? e.startsWith("scale") ? tre(t[1]) : ere : rre, are = /* @__PURE__ */ new Set([
+}, are = (e, { keyframes: t }) => t.length > 2 ? rre : Iy.has(e) ? e.startsWith("scale") ? nre(t[1]) : tre : ire, ore = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -24788,15 +24788,15 @@ var ere = {
"from",
"elapsed"
]);
-function ore(e) {
- for (let t in e) if (!are.has(t)) return !0;
+function sre(e) {
+ for (let t in e) if (!ore.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var vb = (e, t, n, r = {}, i, a) => (o) => {
- let s = _b(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ $_(c);
+var _b = (e, t, n, r = {}, i, a) => (o) => {
+ let s = gb(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ Q_(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -24813,64 +24813,64 @@ var vb = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- ore(s) || Object.assign(u, ire(e, u)), u.duration &&= /* @__PURE__ */ $_(u.duration), u.repeatDelay &&= /* @__PURE__ */ $_(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ sre(s) || Object.assign(u, are(e, u)), u.duration &&= /* @__PURE__ */ Q_(u.duration), u.repeatDelay &&= /* @__PURE__ */ Q_(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (cb(u), u.delay === 0 && (d = !0)), (W_.instantAnimations || W_.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, cb(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Sy(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (sb(u), u.delay === 0 && (d = !0)), (U_.instantAnimations || U_.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, sb(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = xy(u.keyframes, s);
if (e !== void 0) {
- yv.update(() => {
+ vv.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Ty(u) : new qne(u);
-}, sre = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function cre(e) {
- let t = sre.exec(e);
+ return s.isSync ? new Ty(u) : new Jne(u);
+}, cre = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function lre(e) {
+ let t = cre.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function yb(e, t, n = 1) {
+function vb(e, t, n = 1) {
`${e}`;
- let [r, i] = cre(e);
+ let [r, i] = lre(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return G_(e) ? parseFloat(e) : e;
+ return W_(e) ? parseFloat(e) : e;
}
- return Dv(i) ? yb(i, t, n + 1) : i;
+ return Ev(i) ? vb(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function bb(e) {
+function yb(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function xb(e, t, n, r) {
+function bb(e, t, n, r) {
if (typeof t == "function") {
- let [i, a] = bb(r);
+ let [i, a] = yb(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
- let [i, a] = bb(r);
+ let [i, a] = yb(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function Sb(e, t, n) {
+function xb(e, t, n) {
let r = e.getProps();
- return xb(r, t, n === void 0 ? r.custom : n, e);
+ return bb(r, t, n === void 0 ? r.custom : n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
-var Cb = /* @__PURE__ */ new Set([
+var Sb = /* @__PURE__ */ new Set([
"width",
"height",
"top",
@@ -24878,95 +24878,95 @@ var Cb = /* @__PURE__ */ new Set([
"right",
"bottom",
...Fy
-]), wb = (e) => Array.isArray(e);
+]), Cb = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function lre(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, hb(n));
+function ure(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, mb(n));
}
-function ure(e) {
- return wb(e) ? e[e.length - 1] || 0 : e;
+function dre(e) {
+ return Cb(e) ? e[e.length - 1] || 0 : e;
}
-function dre(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = Sb(e, t) || {};
+function fre(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = xb(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) lre(e, t, ure(i[t]));
+ for (let t in i) ure(e, t, dre(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var Tb = (e) => !!(e && e.getVelocity);
+var wb = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function fre(e) {
- return !!(Tb(e) && e.add);
+function pre(e) {
+ return !!(wb(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function Eb(e, t) {
+function Tb(e, t) {
let n = e.getValue("willChange");
- if (fre(n)) return n.add(t);
- if (!n && W_.WillChange) {
- let n = new W_.WillChange("auto");
+ if (pre(n)) return n.add(t);
+ if (!n && U_.WillChange) {
+ let n = new U_.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Db(e) {
+function Eb(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var Ob = "data-" + Db("framerAppearId");
+var Db = "data-" + Eb("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function kb(e) {
- return e.props[Ob];
+function Ob(e) {
+ return e.props[Db];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-function pre({ protectedKeys: e, needsAnimating: t }, n) {
+function mre({ protectedKeys: e, needsAnimating: t }, n) {
let r = e.hasOwnProperty(n) && t[n] !== !0;
return t[n] = !1, r;
}
-function Ab(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function kb(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? gb(a, c) : c;
+ a = a ? hb(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
p && p.animateVisualElement(e, s, a, n, d);
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && pre(f, t)) continue;
+ if (i === void 0 || f && mre(f, t)) continue;
let o = {
delay: n,
- ..._b(a || {}, t)
+ ...gb(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- yv.update(() => r.set(i));
+ vv.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
- let n = kb(e);
+ let n = Ob(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, yv);
+ let e = window.MotionHandoffAnimation(n, t, vv);
e !== null && (o.startTime = e, p = !0);
}
}
- Eb(e, t);
+ Tb(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(vb(t, r, i, m && Cb.has(t) ? { type: !1 } : o, e, p));
+ r.start(_b(t, r, i, m && Sb.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => yv.update(() => {
- o && dre(e, o);
+ let t = () => vv.update(() => {
+ o && fre(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -24974,12 +24974,12 @@ function Ab(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function jb(e, t, n = {}) {
- let r = Sb(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
+function Ab(e, t, n = {}) {
+ let r = xb(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
n.transitionOverride && (i = n.transitionOverride);
- let a = r ? () => Promise.all(Ab(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
+ let a = r ? () => Promise.all(kb(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
- return mre(e, t, r, a, o, s, n);
+ return hre(e, t, r, a, o, s, n);
} : () => Promise.resolve(), { when: s } = i;
if (s) {
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
@@ -24987,26 +24987,26 @@ function jb(e, t, n = {}) {
}
return Promise.all([a(), o(n.delay)]);
}
-function mre(e, t, n = 0, r = 0, i = 0, a = 1, o) {
+function hre(e, t, n = 0, r = 0, i = 0, a = 1, o) {
let s = [];
- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(jb(c, t, {
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(Ab(c, t, {
...o,
- delay: n + (typeof r == "function" ? 0 : r) + fb(e.variantChildren, c, r, i, a)
+ delay: n + (typeof r == "function" ? 0 : r) + db(e.variantChildren, c, r, i, a)
}).then(() => c.notify("AnimationComplete", t)));
return Promise.all(s);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function hre(e, t, n = {}) {
+function gre(e, t, n = {}) {
e.notify("AnimationStart", t);
let r;
if (Array.isArray(t)) {
- let i = t.map((t) => jb(e, t, n));
+ let i = t.map((t) => Ab(e, t, n));
r = Promise.all(i);
- } else if (typeof t == "string") r = jb(e, t, n);
+ } else if (typeof t == "string") r = Ab(e, t, n);
else {
- let i = typeof t == "function" ? Sb(e, t, n.custom) : t;
- r = Promise.all(Ab(e, i, n));
+ let i = typeof t == "function" ? xb(e, t, n.custom) : t;
+ r = Promise.all(kb(e, i, n));
}
return r.then(() => {
e.notify("AnimationComplete", t);
@@ -25014,176 +25014,176 @@ function hre(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var gre = {
+var _re = {
test: (e) => e === "auto",
parse: (e) => e
-}, Mb = (e) => (t) => t.test(e), Nb = [
- kv,
- Hv,
+}, jb = (e) => (t) => t.test(e), Mb = [
+ Ov,
Vv,
Bv,
+ zv,
+ Yte,
Jte,
- qte,
- gre
-], Pb = (e) => Nb.find(Mb(e));
+ _re
+], Nb = (e) => Mb.find(jb(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function _re(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || q_(e);
+function vre(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || K_(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
-var vre = /* @__PURE__ */ new Set([
+var yre = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function yre(e) {
+function bre(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(Nv) || [];
+ let [r] = n.match(Mv) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!vre.has(t);
+ let i = n.replace(r, ""), a = +!!yre.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var bre = /\b([a-z-]*)\(.*?\)/gu, Fb = {
- ...Zv,
+var xre = /\b([a-z-]*)\(.*?\)/gu, Pb = {
+ ...Xv,
getAnimatableNone: (e) => {
- let t = e.match(bre);
- return t ? t.map(yre).join(" ") : e;
+ let t = e.match(xre);
+ return t ? t.map(bre).join(" ") : e;
}
-}, Ib = {
- ...Zv,
+}, Fb = {
+ ...Xv,
getAnimatableNone: (e) => {
- let t = Zv.parse(e);
- return Zv.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = Xv.parse(e);
+ return Xv.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, Lb = {
- ...kv,
+}, Ib = {
+ ...Ov,
transform: Math.round
-}, Rb = {
- borderWidth: Hv,
- borderTopWidth: Hv,
- borderRightWidth: Hv,
- borderBottomWidth: Hv,
- borderLeftWidth: Hv,
- borderRadius: Hv,
- borderTopLeftRadius: Hv,
- borderTopRightRadius: Hv,
- borderBottomRightRadius: Hv,
- borderBottomLeftRadius: Hv,
- width: Hv,
- maxWidth: Hv,
- height: Hv,
- maxHeight: Hv,
- top: Hv,
- right: Hv,
- bottom: Hv,
- left: Hv,
- inset: Hv,
- insetBlock: Hv,
- insetBlockStart: Hv,
- insetBlockEnd: Hv,
- insetInline: Hv,
- insetInlineStart: Hv,
- insetInlineEnd: Hv,
- padding: Hv,
- paddingTop: Hv,
- paddingRight: Hv,
- paddingBottom: Hv,
- paddingLeft: Hv,
- paddingBlock: Hv,
- paddingBlockStart: Hv,
- paddingBlockEnd: Hv,
- paddingInline: Hv,
- paddingInlineStart: Hv,
- paddingInlineEnd: Hv,
- margin: Hv,
- marginTop: Hv,
- marginRight: Hv,
- marginBottom: Hv,
- marginLeft: Hv,
- marginBlock: Hv,
- marginBlockStart: Hv,
- marginBlockEnd: Hv,
- marginInline: Hv,
- marginInlineStart: Hv,
- marginInlineEnd: Hv,
- fontSize: Hv,
- backgroundPositionX: Hv,
- backgroundPositionY: Hv,
- rotate: Bv,
- pathRotation: Bv,
- rotateX: Bv,
- rotateY: Bv,
- rotateZ: Bv,
- scale: jv,
- scaleX: jv,
- scaleY: jv,
- scaleZ: jv,
- skew: Bv,
- skewX: Bv,
- skewY: Bv,
- distance: Hv,
- translateX: Hv,
- translateY: Hv,
- translateZ: Hv,
- x: Hv,
- y: Hv,
- z: Hv,
- perspective: Hv,
- transformPerspective: Hv,
- opacity: Av,
- originX: Uv,
- originY: Uv,
- originZ: Hv,
- zIndex: Lb,
- fillOpacity: Av,
- strokeOpacity: Av,
- numOctaves: Lb
-}, xre = {
- ...Rb,
- color: Gv,
- backgroundColor: Gv,
- outlineColor: Gv,
- fill: Gv,
- stroke: Gv,
- borderColor: Gv,
- borderTopColor: Gv,
- borderRightColor: Gv,
- borderBottomColor: Gv,
- borderLeftColor: Gv,
- filter: Fb,
- WebkitFilter: Fb,
- mask: Ib,
- WebkitMask: Ib
-}, zb = (e) => xre[e], Sre = /*@__PURE__*/ new Set([Fb, Ib]);
-function Bb(e, t) {
- let n = zb(e);
- return Sre.has(n) || (n = Zv), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+}, Lb = {
+ borderWidth: Vv,
+ borderTopWidth: Vv,
+ borderRightWidth: Vv,
+ borderBottomWidth: Vv,
+ borderLeftWidth: Vv,
+ borderRadius: Vv,
+ borderTopLeftRadius: Vv,
+ borderTopRightRadius: Vv,
+ borderBottomRightRadius: Vv,
+ borderBottomLeftRadius: Vv,
+ width: Vv,
+ maxWidth: Vv,
+ height: Vv,
+ maxHeight: Vv,
+ top: Vv,
+ right: Vv,
+ bottom: Vv,
+ left: Vv,
+ inset: Vv,
+ insetBlock: Vv,
+ insetBlockStart: Vv,
+ insetBlockEnd: Vv,
+ insetInline: Vv,
+ insetInlineStart: Vv,
+ insetInlineEnd: Vv,
+ padding: Vv,
+ paddingTop: Vv,
+ paddingRight: Vv,
+ paddingBottom: Vv,
+ paddingLeft: Vv,
+ paddingBlock: Vv,
+ paddingBlockStart: Vv,
+ paddingBlockEnd: Vv,
+ paddingInline: Vv,
+ paddingInlineStart: Vv,
+ paddingInlineEnd: Vv,
+ margin: Vv,
+ marginTop: Vv,
+ marginRight: Vv,
+ marginBottom: Vv,
+ marginLeft: Vv,
+ marginBlock: Vv,
+ marginBlockStart: Vv,
+ marginBlockEnd: Vv,
+ marginInline: Vv,
+ marginInlineStart: Vv,
+ marginInlineEnd: Vv,
+ fontSize: Vv,
+ backgroundPositionX: Vv,
+ backgroundPositionY: Vv,
+ rotate: zv,
+ pathRotation: zv,
+ rotateX: zv,
+ rotateY: zv,
+ rotateZ: zv,
+ scale: Av,
+ scaleX: Av,
+ scaleY: Av,
+ scaleZ: Av,
+ skew: zv,
+ skewX: zv,
+ skewY: zv,
+ distance: Vv,
+ translateX: Vv,
+ translateY: Vv,
+ translateZ: Vv,
+ x: Vv,
+ y: Vv,
+ z: Vv,
+ perspective: Vv,
+ transformPerspective: Vv,
+ opacity: kv,
+ originX: Hv,
+ originY: Hv,
+ originZ: Vv,
+ zIndex: Ib,
+ fillOpacity: kv,
+ strokeOpacity: kv,
+ numOctaves: Ib
+}, Sre = {
+ ...Lb,
+ color: Wv,
+ backgroundColor: Wv,
+ outlineColor: Wv,
+ fill: Wv,
+ stroke: Wv,
+ borderColor: Wv,
+ borderTopColor: Wv,
+ borderRightColor: Wv,
+ borderBottomColor: Wv,
+ borderLeftColor: Wv,
+ filter: Pb,
+ WebkitFilter: Pb,
+ mask: Fb,
+ WebkitMask: Fb
+}, Rb = (e) => Sre[e], Cre = /*@__PURE__*/ new Set([Pb, Fb]);
+function zb(e, t) {
+ let n = Rb(e);
+ return Cre.has(n) || (n = Xv), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Cre = /* @__PURE__ */ new Set([
+var wre = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function wre(e, t, n) {
+function Tre(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Cre.has(t) && Yv(t).values.length && (i = e[r]), r++;
+ typeof t == "string" && !wre.has(t) && Jv(t).values.length && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] = Bb(n, i);
+ if (i && n) for (let r of t) e[r] = zb(n, i);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Tre = class extends Gy {
+var Ere = class extends Gy {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -25193,14 +25193,14 @@ var Tre = class extends Gy {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), Dv(r))) {
- let i = yb(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), Ev(r))) {
+ let i = vb(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !Cb.has(n) || e.length !== 2) return;
- let [r, i] = e, a = Pb(r), o = Pb(i);
- if (Ov(r) !== Ov(i) && Ry[n]) {
+ if (this.resolveNoneKeyframes(), !Sb.has(n) || e.length !== 2) return;
+ let [r, i] = e, a = Nb(r), o = Nb(i);
+ if (Dv(r) !== Dv(i) && Ry[n]) {
this.needsMeasurement = !0;
return;
}
@@ -25214,8 +25214,8 @@ var Tre = class extends Gy {
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || _re(e[t])) && n.push(t);
- n.length && wre(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || vre(e[t])) && n.push(t);
+ n.length && Tre(e, n, t);
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -25234,19 +25234,19 @@ var Tre = class extends Gy {
e.getValue(t).set(n);
}), this.resolveNoneKeyframes();
}
-}, Vb = [
+}, Bb = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Ere = /* @__PURE__ */ new Set([
+], Dre = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Vb,
+ ...Bb,
"width",
"maxWidth",
"height",
@@ -25290,12 +25290,12 @@ var Tre = class extends Gy {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Dre(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Ere.has(t) && (e[n] = e[n] + "px");
+function Ore(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Dre.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Hb(e, t, n) {
+function Vb(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -25308,34 +25308,34 @@ function Hb(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var Ub = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
+var Hb = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Wb(e) {
- return K_(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function Ub(e) {
+ return G_(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: Gb, cancel: Ore } = /* @__PURE__ */ vv(queueMicrotask, !1), Kb = {
+var { schedule: Wb, cancel: kre } = /* @__PURE__ */ _v(queueMicrotask, !1), Gb = {
x: !1,
y: !1
};
-function qb() {
- return Kb.x || Kb.y;
+function Kb() {
+ return Gb.x || Gb.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function kre(e) {
- return e === "x" || e === "y" ? Kb[e] ? null : (Kb[e] = !0, () => {
- Kb[e] = !1;
- }) : Kb.x || Kb.y ? null : (Kb.x = Kb.y = !0, () => {
- Kb.x = Kb.y = !1;
+function Are(e) {
+ return e === "x" || e === "y" ? Gb[e] ? null : (Gb[e] = !0, () => {
+ Gb[e] = !1;
+ }) : Gb.x || Gb.y ? null : (Gb.x = Gb.y = !0, () => {
+ Gb.x = Gb.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function Jb(e, t) {
- let n = Hb(e), r = new AbortController();
+function qb(e, t) {
+ let n = Vb(e), r = new AbortController();
return [
n,
{
@@ -25348,11 +25348,11 @@ function Jb(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Are(e) {
- return !(e.pointerType === "touch" || qb());
+function jre(e) {
+ return !(e.pointerType === "touch" || Kb());
}
-function jre(e, t, n = {}) {
- let [r, i, a] = Jb(e, n);
+function Mre(e, t, n = {}) {
+ let [r, i, a] = qb(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -25372,7 +25372,7 @@ function jre(e, t, n = {}) {
}
};
e.addEventListener("pointerenter", (n) => {
- if (!Are(n)) return;
+ if (!jre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -25381,130 +25381,130 @@ function jre(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var Yb = (e, t) => t ? e === t || Yb(e, t.parentElement) : !1, Xb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Mre = /* @__PURE__ */ new Set([
+var Jb = (e, t) => t ? e === t || Jb(e, t.parentElement) : !1, Yb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Nre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Nre(e) {
- return Mre.has(e.tagName) || e.isContentEditable === !0;
+function Pre(e) {
+ return Nre.has(e.tagName) || e.isContentEditable === !0;
}
-var Pre = /* @__PURE__ */ new Set([
+var Fre = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Fre(e) {
- return Pre.has(e.tagName) || e.isContentEditable === !0;
+function Ire(e) {
+ return Fre.has(e.tagName) || e.isContentEditable === !0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var Zb = /* @__PURE__ */ new WeakSet();
+var Xb = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function Qb(e) {
+function Zb(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function $b(e, t) {
+function Qb(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Ire = (e, t) => {
+var Lre = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = Qb(() => {
- if (Zb.has(n)) return;
- $b(n, "down");
- let e = Qb(() => {
- $b(n, "up");
+ let r = Zb(() => {
+ if (Xb.has(n)) return;
+ Qb(n, "down");
+ let e = Zb(() => {
+ Qb(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => $b(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Qb(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function ex(e) {
- return Xb(e) && !qb();
+function $b(e) {
+ return Yb(e) && !Kb();
}
-var tx = /* @__PURE__ */ new WeakSet();
-function Lre(e, t, n = {}) {
- let [r, i, a] = Jb(e, n), o = (e) => {
+var ex = /* @__PURE__ */ new WeakSet();
+function Rre(e, t, n = {}) {
+ let [r, i, a] = qb(e, n), o = (e) => {
let r = e.currentTarget;
- if (!ex(e) || tx.has(e)) return;
- Zb.add(r), n.stopPropagation && tx.add(e);
+ if (!$b(e) || ex.has(e)) return;
+ Xb.add(r), n.stopPropagation && ex.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Zb.has(r) && Zb.delete(r), ex(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Xb.has(r) && Xb.delete(r), $b(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || Yb(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || Jb(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Wb(e) && (e.addEventListener("focus", (e) => Ire(e, i)), !Nre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Ub(e) && (e.addEventListener("focus", (e) => Lre(e, i)), !Pre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function nx(e, t) {
+function tx(e, t) {
let n = window.getComputedStyle(e);
return Ky(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function rx(e) {
- return K_(e) && "ownerSVGElement" in e;
+function nx(e) {
+ return G_(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var ix = /* @__PURE__ */ new WeakMap(), ax, ox = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : rx(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Rre = /*@__PURE__*/ ox("inline", "width", "offsetWidth"), zre = /*@__PURE__*/ ox("block", "height", "offsetHeight");
-function Bre({ target: e, borderBoxSize: t }) {
- ix.get(e)?.forEach((n) => {
+var rx = /* @__PURE__ */ new WeakMap(), ix, ax = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : nx(r) && "getBBox" in r ? r.getBBox()[t] : r[n], zre = /*@__PURE__*/ ax("inline", "width", "offsetWidth"), Bre = /*@__PURE__*/ ax("block", "height", "offsetHeight");
+function Vre({ target: e, borderBoxSize: t }) {
+ rx.get(e)?.forEach((n) => {
n(e, {
get width() {
- return Rre(e, t);
+ return zre(e, t);
},
get height() {
- return zre(e, t);
+ return Bre(e, t);
}
});
});
}
-function Vre(e) {
- e.forEach(Bre);
+function Hre(e) {
+ e.forEach(Vre);
}
-function Hre() {
- typeof ResizeObserver > "u" || (ax = new ResizeObserver(Vre));
+function Ure() {
+ typeof ResizeObserver > "u" || (ix = new ResizeObserver(Hre));
}
-function Ure(e, t) {
- ax || Hre();
- let n = Hb(e);
+function Wre(e, t) {
+ ix || Ure();
+ let n = Vb(e);
return n.forEach((e) => {
- let n = ix.get(e);
- n || (n = /* @__PURE__ */ new Set(), ix.set(e, n)), n.add(t), ax?.observe(e);
+ let n = rx.get(e);
+ n || (n = /* @__PURE__ */ new Set(), rx.set(e, n)), n.add(t), ix?.observe(e);
}), () => {
n.forEach((e) => {
- let n = ix.get(e);
- n?.delete(t), n?.size || ax?.unobserve(e);
+ let n = rx.get(e);
+ n?.delete(t), n?.size || ix?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var sx = /* @__PURE__ */ new Set(), cx;
-function Wre() {
- cx = () => {
+var ox = /* @__PURE__ */ new Set(), sx;
+function Gre() {
+ sx = () => {
let e = {
get width() {
return window.innerWidth;
@@ -25513,43 +25513,43 @@ function Wre() {
return window.innerHeight;
}
};
- sx.forEach((t) => t(e));
- }, window.addEventListener("resize", cx);
+ ox.forEach((t) => t(e));
+ }, window.addEventListener("resize", sx);
}
-function Gre(e) {
- return sx.add(e), cx || Wre(), () => {
- sx.delete(e), !sx.size && typeof cx == "function" && (window.removeEventListener("resize", cx), cx = void 0);
+function Kre(e) {
+ return ox.add(e), sx || Gre(), () => {
+ ox.delete(e), !ox.size && typeof sx == "function" && (window.removeEventListener("resize", sx), sx = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function lx(e, t) {
- return typeof e == "function" ? Gre(e) : Ure(e, t);
+function cx(e, t) {
+ return typeof e == "function" ? Kre(e) : Wre(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var ux = {
+var lx = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function Kre(e) {
- return rx(e) && e.tagName === "svg";
+function qre(e) {
+ return nx(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/transform.mjs
-function qre(...e) {
- let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = yy(i, a, o);
+function Jre(...e) {
+ let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = vy(i, a, o);
return t ? s(r) : s;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/follow-value.mjs
-function Jre(e, t, n = {}) {
+function Yre(e, t, n = {}) {
let r = e.get(), i = null, a = r, o, s = typeof r == "string" ? r.replace(/[\d.-]/g, "") : void 0, c = () => {
i &&= (i.stop(), null), e.animation = void 0;
}, l = () => {
- let t = fx(e.get()), r = fx(a);
+ let t = dx(e.get()), r = dx(a);
if (t === r) {
c();
return;
@@ -25570,10 +25570,10 @@ function Jre(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(dx(e, s)), yv.postRender(u);
- }, c), Tb(t)) {
+ a = e, o = (e) => t(ux(e, s)), vv.postRender(u);
+ }, c), wb(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
- r ? (r = !1, e.jump(dx(t, s), !1)) : e.set(dx(t, s));
+ r ? (r = !1, e.jump(ux(t, s), !1)) : e.set(ux(t, s));
}), a = e.on("destroy", i);
return () => {
i(), a();
@@ -25581,46 +25581,46 @@ function Jre(e, t, n = {}) {
}
return c;
}
-function dx(e, t) {
+function ux(e, t) {
return t ? e + t : e;
}
-function fx(e) {
+function dx(e) {
return typeof e == "number" ? e : parseFloat(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
-var Yre = [
- ...Nb,
- Gv,
- Zv
-], Xre = (e) => Yre.find(Mb(e)), px = () => ({
+var Xre = [
+ ...Mb,
+ Wv,
+ Xv
+], Zre = (e) => Xre.find(jb(e)), fx = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
+}), px = () => ({
+ x: fx(),
+ y: fx()
}), mx = () => ({
- x: px(),
- y: px()
-}), hx = () => ({
min: 0,
max: 0
-}), gx = () => ({
- x: hx(),
- y: hx()
-}), Zre = /* @__PURE__ */ new WeakMap();
+}), hx = () => ({
+ x: mx(),
+ y: mx()
+}), Qre = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function _x(e) {
+function gx(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function vx(e) {
+function _x(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var yx = [
+var vx = [
"animate",
"whileInView",
"whileFocus",
@@ -25628,29 +25628,29 @@ var yx = [
"whileTap",
"whileDrag",
"exit"
-], bx = ["initial", ...yx];
+], yx = ["initial", ...vx];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function xx(e) {
- return _x(e.animate) || bx.some((t) => vx(e[t]));
+function bx(e) {
+ return gx(e.animate) || yx.some((t) => _x(e[t]));
}
-function Sx(e) {
- return !!(xx(e) || e.variants);
+function xx(e) {
+ return !!(bx(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Qre(e, t, n) {
+function $re(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (Tb(i)) e.addValue(r, i);
- else if (Tb(a)) e.addValue(r, hb(i, { owner: e }));
+ if (wb(i)) e.addValue(r, i);
+ else if (wb(a)) e.addValue(r, mb(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, hb(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, mb(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -25659,18 +25659,18 @@ function Qre(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var Cx = { current: null }, wx = { current: !1 }, $re = typeof window < "u";
-function Tx() {
- if (wx.current = !0, $re) {
+var Sx = { current: null }, Cx = { current: !1 }, eie = typeof window < "u";
+function wx() {
+ if (Cx.current = !0, eie) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Cx.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Sx.current = e.matches;
e.addEventListener("change", t), t();
- } else Cx.current = !1;
+ } else Sx.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Ex = [
+var Tx = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -25678,14 +25678,14 @@ var Ex = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Dx = {};
-function Ox(e) {
- Dx = e;
+], Ex = {};
+function Dx(e) {
+ Ex = e;
}
-function eie() {
- return Dx;
+function tie() {
+ return Ex;
}
-var tie = class {
+var nie = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
@@ -25693,23 +25693,23 @@ var tie = class {
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Gy, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = wv.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, yv.render(this.render, !1, !0));
+ let e = Cv.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, vv.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = xx(t), this.isVariantNode = Sx(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = bx(t), this.isVariantNode = xx(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && Tb(t) && t.set(c[e]);
+ c[e] !== void 0 && wb(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- this.current = e, Zre.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (wx.current || Tx(), this.shouldReduceMotion = Cx.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.current = e, Qre.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Cx.current || wx(), this.shouldReduceMotion = Sx.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), bv(this.notifyUpdate), bv(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), yv(this.notifyUpdate), yv(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -25724,14 +25724,14 @@ var tie = class {
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && lb.has(e) && this.current instanceof HTMLElement) {
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && cb.has(e) && this.current instanceof HTMLElement) {
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new eb({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ $_(o)
+ duration: /* @__PURE__ */ Q_(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
@@ -25741,7 +25741,7 @@ var tie = class {
let n = Iy.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && yv.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && vv.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -25752,8 +25752,8 @@ var tie = class {
}
updateFeatures() {
let e = "animation";
- for (e in Dx) {
- let t = Dx[e];
+ for (e in Ex) {
+ let t = Ex[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -25766,7 +25766,7 @@ var tie = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : gx();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : hx();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -25776,13 +25776,13 @@ var tie = class {
}
update(e, t) {
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Ex.length; t++) {
- let n = Ex[t];
+ for (let t = 0; t < Tx.length; t++) {
+ let n = Tx[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Qre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = $re(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -25818,11 +25818,11 @@ var tie = class {
getValue(e, t) {
if (this.props.values && this.props.values[e]) return this.props.values[e];
let n = this.values.get(e);
- return n === void 0 && t !== void 0 && (n = hb(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = mb(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (G_(n) || q_(n)) ? n = parseFloat(n) : !Xre(n) && Zv.test(t) && (n = Bb(e, t)), this.setBaseTarget(e, Tb(n) ? n.get() : n)), Tb(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (W_(n) || K_(n)) ? n = parseFloat(n) : !Zre(n) && Xv.test(t) && (n = zb(e, t)), this.setBaseTarget(e, wb(n) ? n.get() : n)), wb(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -25830,25 +25830,25 @@ var tie = class {
getBaseTarget(e) {
let { initial: t } = this.props, n;
if (typeof t == "string" || typeof t == "object") {
- let r = xb(this.props, t, this.presenceContext?.custom);
+ let r = bb(this.props, t, this.presenceContext?.custom);
r && (n = r[e]);
}
if (t && n !== void 0) return n;
let r = this.getBaseTargetFromProps(this.props, e);
- return r !== void 0 && !Tb(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
+ return r !== void 0 && !wb(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
}
on(e, t) {
- return this.events[e] || (this.events[e] = new Q_()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new Z_()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- Gb.render(this.render);
+ Wb.render(this.render);
}
-}, kx = class extends tie {
+}, Ox = class extends nie {
constructor() {
- super(...arguments), this.KeyframeResolver = Tre;
+ super(...arguments), this.KeyframeResolver = Ere;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -25863,11 +25863,11 @@ var tie = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- Tb(e) && (this.childSubscription = e.on("change", (e) => {
+ wb(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, Ax = class {
+}, kx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -25875,7 +25875,7 @@ var tie = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function jx({ top: e, left: t, right: n, bottom: r }) {
+function Ax({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -25887,7 +25887,7 @@ function jx({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function nie({ x: e, y: t }) {
+function rie({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -25895,7 +25895,7 @@ function nie({ x: e, y: t }) {
left: e.min
};
}
-function rie(e, t) {
+function iie(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -25913,37 +25913,37 @@ function rie(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Mx(e) {
+function jx(e) {
return e === void 0 || e === 1;
}
-function Nx({ scale: e, scaleX: t, scaleY: n }) {
- return !Mx(e) || !Mx(t) || !Mx(n);
+function Mx({ scale: e, scaleX: t, scaleY: n }) {
+ return !jx(e) || !jx(t) || !jx(n);
+}
+function Nx(e) {
+ return Mx(e) || Px(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
function Px(e) {
- return Nx(e) || Fx(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+ return Fx(e.x) || Fx(e.y);
}
function Fx(e) {
- return Ix(e.x) || Ix(e.y);
-}
-function Ix(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function Lx(e, t, n) {
+function Ix(e, t, n) {
return n + t * (e - n);
}
-function Rx(e, t, n, r, i) {
- return i !== void 0 && (e = Lx(e, i, r)), Lx(e, n, r) + t;
+function Lx(e, t, n, r, i) {
+ return i !== void 0 && (e = Ix(e, i, r)), Ix(e, n, r) + t;
}
-function zx(e, t = 0, n = 1, r, i) {
- e.min = Rx(e.min, t, n, r, i), e.max = Rx(e.max, t, n, r, i);
+function Rx(e, t = 0, n = 1, r, i) {
+ e.min = Lx(e.min, t, n, r, i), e.max = Lx(e.max, t, n, r, i);
}
-function Bx(e, { x: t, y: n }) {
- zx(e.x, t.translate, t.scale, t.originPoint), zx(e.y, n.translate, n.scale, n.originPoint);
+function zx(e, { x: t, y: n }) {
+ Rx(e.x, t.translate, t.scale, t.originPoint), Rx(e.y, n.translate, n.scale, n.originPoint);
}
-var Vx = .999999999999, Hx = 1.0000000000001;
-function iie(e, t, n, r = !1) {
+var Bx = .999999999999, Vx = 1.0000000000001;
+function aie(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -25951,43 +25951,43 @@ function iie(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (Ux(e.x, -a.scroll.offset.x), Ux(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Bx(e, o)), r && Px(a.latestValues) && Kx(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (Hx(e.x, -a.scroll.offset.x), Hx(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, zx(e, o)), r && Nx(a.latestValues) && Gx(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < Hx && t.x > Vx && (t.x = 1), t.y < Hx && t.y > Vx && (t.y = 1);
+ t.x < Vx && t.x > Bx && (t.x = 1), t.y < Vx && t.y > Bx && (t.y = 1);
}
-function Ux(e, t) {
+function Hx(e, t) {
e.min += t, e.max += t;
}
-function Wx(e, t, n, r, i = .5) {
- zx(e, t, n, ey(e.min, e.max, i), r);
+function Ux(e, t, n, r, i = .5) {
+ Rx(e, t, n, $v(e.min, e.max, i), r);
}
-function Gx(e, t) {
+function Wx(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function Kx(e, t, n) {
+function Gx(e, t, n) {
let r = n ?? e;
- Wx(e.x, Gx(t.x, r.x), t.scaleX, t.scale, t.originX), Wx(e.y, Gx(t.y, r.y), t.scaleY, t.scale, t.originY);
+ Ux(e.x, Wx(t.x, r.x), t.scaleX, t.scale, t.originX), Ux(e.y, Wx(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function qx(e, t) {
- return jx(rie(e.getBoundingClientRect(), t));
+function Kx(e, t) {
+ return Ax(iie(e.getBoundingClientRect(), t));
}
-function aie(e, t, n) {
- let r = qx(e, n), { scroll: i } = t;
- return i && (Ux(r.x, i.offset.x), Ux(r.y, i.offset.y)), r;
+function oie(e, t, n) {
+ let r = Kx(e, n), { scroll: i } = t;
+ return i && (Hx(r.x, i.offset.x), Hx(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
-var oie = {
+var sie = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, sie = Fy.length;
-function cie(e, t, n) {
+}, cie = Fy.length;
+function lie(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < sie; a++) {
+ for (let a = 0; a < cie; a++) {
let o = Fy[a], s = e[o];
if (s === void 0) continue;
let c = !0;
@@ -25997,21 +25997,21 @@ function cie(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = Ub(s, Rb[o]);
+ let e = Hb(s, Lb[o]);
if (!c) {
i = !1;
- let t = oie[o] || o;
+ let t = sie[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${Ub(a, Rb.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${Hb(a, Lb.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Jx(e, t, n) {
+function qx(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
@@ -26019,78 +26019,78 @@ function Jx(e, t, n) {
o = !0;
continue;
}
- if (Ev(e)) {
+ if (Tv(e)) {
i[e] = n;
continue;
}
{
- let t = Ub(n, Rb[e]);
+ let t = Hb(n, Lb[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = cie(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = lie(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Yx(e, { style: t, vars: n }, r, i) {
+function Jx(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function Xx(e, t) {
+function Yx(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Zx = { correct: (e, t) => {
+var Xx = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (Hv.test(e)) e = parseFloat(e);
+ if (Vv.test(e)) e = parseFloat(e);
else return e;
}
- return `${Xx(e, t.target.x)}% ${Xx(e, t.target.y)}%`;
-} }, Qx = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = Zv.parse(e);
+ return `${Yx(e, t.target.x)}% ${Yx(e, t.target.y)}%`;
+} }, Zx = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ let r = e, i = Xv.parse(e);
if (i.length > 5) return r;
- let a = Zv.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = Xv.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = ey(s, c, .5);
+ let l = $v(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
-} }, $x = {
+} }, Qx = {
borderRadius: {
- ...Zx,
- applyTo: [...Vb]
+ ...Xx,
+ applyTo: [...Bb]
},
- borderTopLeftRadius: Zx,
- borderTopRightRadius: Zx,
- borderBottomLeftRadius: Zx,
- borderBottomRightRadius: Zx,
- boxShadow: Qx
+ borderTopLeftRadius: Xx,
+ borderTopRightRadius: Xx,
+ borderBottomLeftRadius: Xx,
+ borderBottomRightRadius: Xx,
+ boxShadow: Zx
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function eS(e, { layout: t, layoutId: n }) {
- return Iy.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!$x[e] || e === "opacity");
+function $x(e, { layout: t, layoutId: n }) {
+ return Iy.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Qx[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function tS(e, t, n) {
+function eS(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (Tb(r[t]) || i && Tb(i[t]) || eS(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (wb(r[t]) || i && wb(i[t]) || $x(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function nS(e) {
+function tS(e) {
return window.getComputedStyle(e);
}
-var rS = class extends kx {
+var nS = class extends Ox {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Yx;
+ super(...arguments), this.type = "html", this.renderInstance = Jx;
}
mount(e) {
e.style, super.mount(e);
@@ -26098,53 +26098,53 @@ var rS = class extends kx {
readValueFromInstance(e, t) {
if (Iy.has(t)) return this.projection?.isProjecting ? Ny(t) : Ane(e, t);
{
- let n = nS(e), r = (Ev(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = tS(e), r = (Tv(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return qx(e, t);
+ return Kx(e, t);
}
build(e, t, n) {
- Jx(e, t, n.transformTemplate);
+ qx(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return tS(e, t, n);
+ return eS(e, t, n);
}
-}, iS = {
+}, rS = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, aS = {
+}, iS = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function oS(e, t, n = 1, r = 0, i = !0) {
+function aS(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? iS : aS;
+ let a = i ? rS : iS;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var sS = [
+var oS = [
"offsetDistance",
"offsetPath",
"offsetRotate",
"offsetAnchor"
];
-function cS(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Jx(e, s, l), c) {
+function sS(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (qx(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
- for (let e of sS) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && oS(d, i, a, o, !1);
+ for (let e of oS) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && aS(d, i, a, o, !1);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
-var lS = /* @__PURE__ */ new Set([
+var cS = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -26168,18 +26168,18 @@ var lS = /* @__PURE__ */ new Set([
"startOffset",
"textLength",
"lengthAdjust"
-]), uS = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), lS = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function dS(e, t, n, r) {
- Yx(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(lS.has(n) ? n : Db(n), t.attrs[n]);
+function uS(e, t, n, r) {
+ Jx(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(cS.has(n) ? n : Eb(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function fS(e, t, n) {
- let r = tS(e, t, n);
- for (let n in e) if (Tb(e[n]) || Tb(t[n])) {
+function dS(e, t, n) {
+ let r = eS(e, t, n);
+ for (let n in e) if (wb(e[n]) || wb(t[n])) {
let t = Fy.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
@@ -26187,49 +26187,49 @@ function fS(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var pS = class extends kx {
+var fS = class extends Ox {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = gx;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = hx;
}
getBaseTargetFromProps(e, t) {
return e[t];
}
readValueFromInstance(e, t) {
if (Iy.has(t)) {
- let e = zb(t);
+ let e = Rb(t);
return e && e.default || 0;
}
- return t = lS.has(t) ? t : Db(t), e.getAttribute(t);
+ return t = cS.has(t) ? t : Eb(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return fS(e, t, n);
+ return dS(e, t, n);
}
build(e, t, n) {
- cS(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ sS(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- dS(e, t, n, r);
+ uS(e, t, n, r);
}
mount(e) {
- this.isSVGTag = uS(e.tagName), super.mount(e);
+ this.isSVGTag = lS(e.tagName), super.mount(e);
}
-}, mS = bx.length;
-function hS(e) {
+}, pS = yx.length;
+function mS(e) {
if (!e) return;
if (!e.isControllingVariants) {
- let t = e.parent && hS(e.parent) || {};
+ let t = e.parent && mS(e.parent) || {};
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
}
let t = {};
- for (let n = 0; n < mS; n++) {
- let r = bx[n], i = e.props[r];
- (vx(i) || i === !1) && (t[r] = i);
+ for (let n = 0; n < pS; n++) {
+ let r = yx[n], i = e.props[r];
+ (_x(i) || i === !1) && (t[r] = i);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function gS(e, t) {
+function hS(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -26238,13 +26238,13 @@ function gS(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var _S = [...yx].reverse(), vS = yx.length;
-function yS(e) {
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => hre(e, t, n)));
+var gS = [...vx].reverse(), _S = vx.length;
+function vS(e) {
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => gre(e, t, n)));
}
-function bS(e) {
- let t = yS(e), n = CS(), r = !0, i = !1, a = (t) => (n, r) => {
- let i = Sb(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
+function yS(e) {
+ let t = vS(e), n = SS(), r = !0, i = !1, a = (t) => (n, r) => {
+ let i = xb(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
if (i) {
let { transition: e, transitionEnd: t, ...r } = i;
n = {
@@ -26259,12 +26259,12 @@ function bS(e) {
t = n(e);
}
function s(o) {
- let { props: s } = e, c = hS(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
- for (let t = 0; t < vS; t++) {
- let p = _S[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = vx(h), _ = p === o ? m.isActive : null;
+ let { props: s } = e, c = mS(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
+ for (let t = 0; t < _S; t++) {
+ let p = gS[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = _x(h), _ = p === o ? m.isActive : null;
_ === !1 && (f = t);
let v = h === c[p] && h !== s[p] && g;
- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || _x(h) || typeof h == "boolean") continue;
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || gx(h) || typeof h == "boolean") continue;
if (p === "exit" && m.isActive && _ !== !0) {
m.prevResolvedValues && (d = {
...d,
@@ -26272,7 +26272,7 @@ function bS(e) {
});
continue;
}
- let y = xS(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
+ let y = bS(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
_ === !1 && (C = {});
let { prevResolvedValues: w = {} } = m, T = {
...w,
@@ -26286,7 +26286,7 @@ function bS(e) {
let t = C[e], n = w[e];
if (d.hasOwnProperty(e)) continue;
let r = !1;
- r = wb(t) && wb(n) ? !gS(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
+ r = Cb(t) && Cb(n) ? !hS(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
}
m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
...d,
@@ -26296,10 +26296,10 @@ function bS(e) {
b && (!D || x) && l.push(...S.map((t) => {
let n = { type: p };
if (typeof t == "string" && (r || i) && !D && e.manuallyAnimateOnMount && e.parent) {
- let { parent: r } = e, i = Sb(r, t);
+ let { parent: r } = e, i = xb(r, t);
if (r.enteringChildren && i) {
let { delayChildren: t } = i.transition || {};
- n.delay = fb(r.enteringChildren, e, t);
+ n.delay = db(r.enteringChildren, e, t);
}
}
return {
@@ -26311,7 +26311,7 @@ function bS(e) {
if (u.size) {
let t = {};
if (typeof s.initial != "boolean") {
- let n = Sb(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
+ let n = xb(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
n && n.transition && (t.transition = n.transition);
}
u.forEach((n) => {
@@ -26335,14 +26335,14 @@ function bS(e) {
setAnimateFunction: o,
getState: () => n,
reset: () => {
- n = CS(), i = !0;
+ n = SS(), i = !0;
}
};
}
-function xS(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !gS(t, e) : !1;
+function bS(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !hS(t, e) : !1;
}
-function SS(e = !1) {
+function xS(e = !1) {
return {
isActive: e,
protectedKeys: {},
@@ -26350,115 +26350,115 @@ function SS(e = !1) {
prevResolvedValues: {}
};
}
-function CS() {
+function SS() {
return {
- animate: SS(!0),
- whileInView: SS(),
- whileHover: SS(),
- whileTap: SS(),
- whileDrag: SS(),
- whileFocus: SS(),
- exit: SS()
+ animate: xS(!0),
+ whileInView: xS(),
+ whileHover: xS(),
+ whileTap: xS(),
+ whileDrag: xS(),
+ whileFocus: xS(),
+ exit: xS()
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function wS(e, t) {
+function CS(e, t) {
e.min = t.min, e.max = t.max;
}
-function TS(e, t) {
- wS(e.x, t.x), wS(e.y, t.y);
+function wS(e, t) {
+ CS(e.x, t.x), CS(e.y, t.y);
}
-function ES(e, t) {
+function TS(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var DS = .9999, OS = 1.0001, kS = -.01, AS = .01;
-function jS(e) {
+var ES = .9999, DS = 1.0001, OS = -.01, kS = .01;
+function AS(e) {
return e.max - e.min;
}
-function MS(e, t, n) {
+function jS(e, t, n) {
return Math.abs(e - t) <= n;
}
-function NS(e, t, n, r = .5) {
- e.origin = r, e.originPoint = ey(t.min, t.max, e.origin), e.scale = jS(n) / jS(t), e.translate = ey(n.min, n.max, e.origin) - e.originPoint, (e.scale >= DS && e.scale <= OS || isNaN(e.scale)) && (e.scale = 1), (e.translate >= kS && e.translate <= AS || isNaN(e.translate)) && (e.translate = 0);
+function MS(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = $v(t.min, t.max, e.origin), e.scale = AS(n) / AS(t), e.translate = $v(n.min, n.max, e.origin) - e.originPoint, (e.scale >= ES && e.scale <= DS || isNaN(e.scale)) && (e.scale = 1), (e.translate >= OS && e.translate <= kS || isNaN(e.translate)) && (e.translate = 0);
}
-function PS(e, t, n, r) {
- NS(e.x, t.x, n.x, r ? r.originX : void 0), NS(e.y, t.y, n.y, r ? r.originY : void 0);
+function NS(e, t, n, r) {
+ MS(e.x, t.x, n.x, r ? r.originX : void 0), MS(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function FS(e, t, n, r = 0) {
- e.min = (r ? ey(n.min, n.max, r) : n.min) + t.min, e.max = e.min + jS(t);
+function PS(e, t, n, r = 0) {
+ e.min = (r ? $v(n.min, n.max, r) : n.min) + t.min, e.max = e.min + AS(t);
}
-function IS(e, t, n, r) {
- FS(e.x, t.x, n.x, r?.x), FS(e.y, t.y, n.y, r?.y);
+function FS(e, t, n, r) {
+ PS(e.x, t.x, n.x, r?.x), PS(e.y, t.y, n.y, r?.y);
}
-function LS(e, t, n, r = 0) {
- let i = r ? ey(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + jS(t);
+function IS(e, t, n, r = 0) {
+ let i = r ? $v(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + AS(t);
}
-function RS(e, t, n, r) {
- LS(e.x, t.x, n.x, r?.x), LS(e.y, t.y, n.y, r?.y);
+function LS(e, t, n, r) {
+ IS(e.x, t.x, n.x, r?.x), IS(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function zS(e, t, n, r, i) {
- return e -= t, e = Lx(e, 1 / n, r), i !== void 0 && (e = Lx(e, 1 / i, r)), e;
+function RS(e, t, n, r, i) {
+ return e -= t, e = Ix(e, 1 / n, r), i !== void 0 && (e = Ix(e, 1 / i, r)), e;
}
-function BS(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (Vv.test(t) && (t = parseFloat(t), t = ey(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = ey(a.min, a.max, r);
- e === a && (s -= t), e.min = zS(e.min, t, n, s, i), e.max = zS(e.max, t, n, s, i);
+function zS(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (Bv.test(t) && (t = parseFloat(t), t = $v(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = $v(a.min, a.max, r);
+ e === a && (s -= t), e.min = RS(e.min, t, n, s, i), e.max = RS(e.max, t, n, s, i);
}
-function VS(e, t, [n, r, i], a, o) {
- BS(e, t[n], t[r], t[i], t.scale, a, o);
+function BS(e, t, [n, r, i], a, o) {
+ zS(e, t[n], t[r], t[i], t.scale, a, o);
}
-var HS = [
+var VS = [
"x",
"scaleX",
"originX"
-], US = [
+], HS = [
"y",
"scaleY",
"originY"
];
-function WS(e, t, n, r) {
- VS(e.x, t, HS, n ? n.x : void 0, r ? r.x : void 0), VS(e.y, t, US, n ? n.y : void 0, r ? r.y : void 0);
+function US(e, t, n, r) {
+ BS(e.x, t, VS, n ? n.x : void 0, r ? r.x : void 0), BS(e.y, t, HS, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function GS(e) {
+function WS(e) {
return e.translate === 0 && e.scale === 1;
}
-function KS(e) {
- return GS(e.x) && GS(e.y);
+function GS(e) {
+ return WS(e.x) && WS(e.y);
}
-function qS(e, t) {
+function KS(e, t) {
return e.min === t.min && e.max === t.max;
}
-function lie(e, t) {
- return qS(e.x, t.x) && qS(e.y, t.y);
+function uie(e, t) {
+ return KS(e.x, t.x) && KS(e.y, t.y);
}
-function JS(e, t) {
+function qS(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function YS(e, t) {
- return JS(e.x, t.x) && JS(e.y, t.y);
+function JS(e, t) {
+ return qS(e.x, t.x) && qS(e.y, t.y);
}
-function XS(e) {
- return jS(e.x) / jS(e.y);
+function YS(e) {
+ return AS(e.x) / AS(e.y);
}
-function ZS(e, t) {
+function XS(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function QS(e) {
+function ZS(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function uie(e, t, n) {
+function die(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
@@ -26469,81 +26469,81 @@ function uie(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var die = Vb.length, $S = (e) => typeof e == "string" ? parseFloat(e) : e, eC = (e) => typeof e == "number" || Hv.test(e);
-function fie(e, t, n, r, i, a) {
- i ? (e.opacity = ey(0, n.opacity ?? 1, pie(r)), e.opacityExit = ey(t.opacity ?? 1, 0, mie(r))) : a && (e.opacity = ey(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < die; i++) {
- let a = Vb[i], o = tC(t, a), s = tC(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || eC(o) === eC(s) ? (e[a] = Math.max(ey($S(o), $S(s), r), 0), (Vv.test(s) || Vv.test(o)) && (e[a] += "%")) : e[a] = s);
+var fie = Bb.length, QS = (e) => typeof e == "string" ? parseFloat(e) : e, $S = (e) => typeof e == "number" || Vv.test(e);
+function pie(e, t, n, r, i, a) {
+ i ? (e.opacity = $v(0, n.opacity ?? 1, mie(r)), e.opacityExit = $v(t.opacity ?? 1, 0, hie(r))) : a && (e.opacity = $v(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < fie; i++) {
+ let a = Bb[i], o = eC(t, a), s = eC(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || $S(o) === $S(s) ? (e[a] = Math.max($v(QS(o), QS(s), r), 0), (Bv.test(s) || Bv.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = ey(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = $v(t.rotate || 0, n.rotate || 0, r));
}
-function tC(e, t) {
+function eC(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var pie = /*@__PURE__*/ nC(0, .5, dv), mie = /*@__PURE__*/ nC(.5, .95, Y_);
-function nC(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Z_(e, t, r));
+var mie = /*@__PURE__*/ tC(0, .5, uv), hie = /*@__PURE__*/ tC(.5, .95, J_);
+function tC(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ X_(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function hie(e, t, n) {
- let r = Tb(e) ? e : hb(e);
- return r.start(vb("", r, t, n)), r.animation;
+function gie(e, t, n) {
+ let r = wb(e) ? e : mb(e);
+ return r.start(_b("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function rC(e, t, n, r = { passive: !0 }) {
+function nC(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var gie = (e, t) => e.depth - t.depth, _ie = class {
+var _ie = (e, t) => e.depth - t.depth, vie = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- V_(this.children, e), this.isDirty = !0;
+ B_(this.children, e), this.isDirty = !0;
}
remove(e) {
- H_(this.children, e), this.isDirty = !0;
+ V_(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(gie), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(_ie), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function vie(e, t) {
- let n = wv.now(), r = ({ timestamp: i }) => {
+function yie(e, t) {
+ let n = Cv.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (bv(r), e(a - t));
+ a >= t && (yv(r), e(a - t));
};
- return yv.setup(r, !0), () => bv(r);
+ return vv.setup(r, !0), () => yv(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function iC(e) {
- return Tb(e) ? e.get() : e;
+function rC(e) {
+ return wb(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var yie = class {
+var bie = class {
constructor() {
this.members = [];
}
add(e) {
- V_(this.members, e);
+ B_(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && (H_(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (V_(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (H_(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (V_(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -26574,51 +26574,51 @@ var yie = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, aC = {
+}, iC = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, oC = {
+}, aC = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, sC = [
+}, oC = [
"",
"X",
"Y",
"Z"
-], bie = 1e3, xie = 0;
-function cC(e, t, n, r) {
+], xie = 1e3, Sie = 0;
+function sC(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-function lC(e) {
+function cC(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = kb(t);
+ let n = Ob(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", yv, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", vv, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && lC(r);
+ r && !r.hasCheckedOptimisedAppear && cC(r);
}
-function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function lC({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = xie++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Sie++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, ux.value && (oC.nodes = oC.calculatedTargetDeltas = oC.calculatedProjections = 0), this.nodes.forEach(wie), this.nodes.forEach(Aie), this.nodes.forEach(jie), this.nodes.forEach(Tie), ux.addProjectionMetrics && ux.addProjectionMetrics(oC);
+ this.projectionUpdateScheduled = !1, lx.value && (aC.nodes = aC.calculatedTargetDeltas = aC.calculatedProjections = 0), this.nodes.forEach(Tie), this.nodes.forEach(jie), this.nodes.forEach(Mie), this.nodes.forEach(Eie), lx.addProjectionMetrics && lx.addProjectionMetrics(aC);
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new _ie());
+ this.root === this && (this.nodes = new vie());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Q_()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Z_()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -26629,15 +26629,15 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = rx(t) && !Kre(t), this.instance = t;
+ this.isSVG = nx(t) && !qre(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- yv.read(() => {
+ vv.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = vie(i, 250), aC.hasAnimatedSinceResize && (aC.hasAnimatedSinceResize = !1, this.nodes.forEach(pC)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = yie(i, 250), iC.hasAnimatedSinceResize && (iC.hasAnimatedSinceResize = !1, this.nodes.forEach(fC)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -26645,23 +26645,23 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || Iie, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !YS(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || Lie, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !JS(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ..._b(a, "layout"),
+ ...gb(a, "layout"),
onPlay: o,
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || pC(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || fC(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), bv(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), yv(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -26676,7 +26676,7 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Mie), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Nie), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -26687,7 +26687,7 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && lC(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && cC(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
@@ -26701,39 +26701,39 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Die), this.nodes.forEach(dC);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Oie), this.nodes.forEach(uC);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(fC);
+ this.nodes.forEach(dC);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Oie), this.nodes.forEach(kie), this.nodes.forEach(Sie), this.nodes.forEach(Cie)) : this.nodes.forEach(fC), this.clearAllSnapshots();
- let e = wv.now();
- xv.delta = U_(0, 1e3 / 60, e - xv.timestamp), xv.timestamp = e, xv.isProcessing = !0, Sv.update.process(xv), Sv.preRender.process(xv), Sv.render.process(xv), xv.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(kie), this.nodes.forEach(Aie), this.nodes.forEach(Cie), this.nodes.forEach(wie)) : this.nodes.forEach(dC), this.clearAllSnapshots();
+ let e = Cv.now();
+ bv.delta = H_(0, 1e3 / 60, e - bv.timestamp), bv.timestamp = e, bv.isProcessing = !0, xv.update.process(bv), xv.preRender.process(bv), xv.render.process(bv), bv.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, Gb.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, Wb.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Eie), this.sharedNodes.forEach(Nie);
+ this.nodes.forEach(Die), this.sharedNodes.forEach(Pie);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, yv.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, vv.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- yv.postRender(() => {
+ vv.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !jS(this.snapshot.measuredBox.x) && !jS(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !AS(this.snapshot.measuredBox.x) && !AS(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= gx(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= hx(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -26752,12 +26752,12 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
resetTransform() {
if (!i) return;
- let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !KS(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || Px(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !GS(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || Nx(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Lie(n), {
+ return e && (n = this.removeTransform(n)), Rie(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -26767,42 +26767,42 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return gx();
+ if (!e) return hx();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Rie))) {
+ if (!(this.scroll?.wasRoot || this.path.some(zie))) {
let { scroll: e } = this.root;
- e && (Ux(t.x, e.offset.x), Ux(t.y, e.offset.y));
+ e && (Hx(t.x, e.offset.x), Hx(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = gx();
- if (TS(t, e), this.scroll?.wasRoot) return t;
+ let t = hx();
+ if (wS(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && TS(t, e), Ux(t.x, i.offset.x), Ux(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && wS(t, e), Hx(t.x, i.offset.x), Hx(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || gx();
- TS(r, e);
+ let r = n || hx();
+ wS(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (Ux(r.x, -n.scroll.offset.x), Ux(r.y, -n.scroll.offset.y)), Px(n.latestValues) && Kx(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (Hx(r.x, -n.scroll.offset.x), Hx(r.y, -n.scroll.offset.y)), Nx(n.latestValues) && Gx(r, n.latestValues, n.layout?.layoutBox);
}
- return Px(this.latestValues) && Kx(r, this.latestValues, this.layout?.layoutBox), r;
+ return Nx(this.latestValues) && Gx(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = gx();
- TS(t, e);
+ let t = hx();
+ wS(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!Px(n.latestValues)) continue;
+ if (!Nx(n.latestValues)) continue;
let r;
- n.instance && (Nx(n.latestValues) && n.updateSnapshot(), r = gx(), TS(r, n.measurePageBox())), WS(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Mx(n.latestValues) && n.updateSnapshot(), r = hx(), wS(r, n.measurePageBox())), US(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return Px(this.latestValues) && WS(t, this.latestValues), t;
+ return Nx(this.latestValues) && US(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -26818,7 +26818,7 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== xv.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== bv.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -26827,36 +26827,36 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = xv.timestamp;
+ this.resolvedRelativeTargetAt = bv.timestamp;
let a = this.getClosestProjectingParent();
- a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = gx(), this.targetWithTransforms = gx()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), IS(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : TS(this.target, this.layout.layoutBox), Bx(this.target, this.targetDelta)) : TS(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), ux.value && oC.calculatedTargetDeltas++);
+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = hx(), this.targetWithTransforms = hx()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), FS(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : wS(this.target, this.layout.layoutBox), zx(this.target, this.targetDelta)) : wS(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), lx.value && aC.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || Nx(this.parent.latestValues) || Fx(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Mx(this.parent.latestValues) || Px(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = gx(), this.relativeTargetOrigin = gx(), RS(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), TS(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = hx(), this.relativeTargetOrigin = hx(), LS(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), wS(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === xv.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === bv.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- TS(this.layoutCorrected, this.layout.layoutBox);
+ wS(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- iie(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = gx());
+ aie(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = hx());
let { target: s } = e;
if (!s) {
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
return;
}
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ES(this.prevProjectionDelta.x, this.projectionDelta.x), ES(this.prevProjectionDelta.y, this.projectionDelta.y)), PS(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !ZS(this.projectionDelta.x, this.prevProjectionDelta.x) || !ZS(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), ux.value && oC.calculatedProjections++;
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (TS(this.prevProjectionDelta.x, this.projectionDelta.x), TS(this.prevProjectionDelta.y, this.projectionDelta.y)), NS(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !XS(this.projectionDelta.x, this.prevProjectionDelta.x) || !XS(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), lx.value && aC.calculatedProjections++;
}
hide() {
this.isVisible = !1;
@@ -26872,22 +26872,22 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = mx(), this.projectionDelta = mx(), this.projectionDeltaWithTransform = mx();
+ this.prevProjectionDelta = px(), this.projectionDelta = px(), this.projectionDeltaWithTransform = px();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = mx();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = px();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = gx(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(Fie));
+ let s = hx(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(Iie));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = ey(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = ey(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (mC(o.x, e.x, n), mC(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (RS(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Pie(this.relativeTarget, this.relativeTargetOrigin, s, n), f && lie(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= gx(), TS(f, this.relativeTarget)), c && (this.animationValues = a, fie(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = $v(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = $v(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (pC(o.x, e.x, n), pC(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (LS(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Fie(this.relativeTarget, this.relativeTargetOrigin, s, n), f && uie(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= hx(), wS(f, this.relativeTarget)), c && (this.animationValues = a, pie(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (bv(this.pendingAnimation), void 0), this.pendingAnimation = yv.update(() => {
- aC.hasAnimatedSinceResize = !0, this.motionValue ||= hb(0), this.motionValue.jump(0, !1), this.currentAnimation = hie(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (yv(this.pendingAnimation), void 0), this.pendingAnimation = vv.update(() => {
+ iC.hasAnimatedSinceResize = !0, this.motionValue ||= mb(0), this.motionValue.jump(0, !1), this.currentAnimation = gie(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -26906,23 +26906,23 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(bie), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(xie), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
if (!(!t || !n || !r)) {
- if (this !== e && this.layout && r && yC(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
- n = this.target || gx();
- let t = jS(this.layout.layoutBox.x);
+ if (this !== e && this.layout && r && vC(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
+ n = this.target || hx();
+ let t = AS(this.layout.layoutBox.x);
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
- let r = jS(this.layout.layoutBox.y);
+ let r = AS(this.layout.layoutBox.y);
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
}
- TS(t, n), Kx(t, i), PS(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
+ wS(t, n), Gx(t, i), NS(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new yie()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new bie()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -26959,8 +26959,8 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && cC("z", e, r, this.animationValues);
- for (let t = 0; t < sC.length; t++) cC(`rotate${sC[t]}`, e, r, this.animationValues), cC(`skew${sC[t]}`, e, r, this.animationValues);
+ n.z && sC("z", e, r, this.animationValues);
+ for (let t = 0; t < oC.length; t++) sC(`rotate${oC[t]}`, e, r, this.animationValues), sC(`skew${oC[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -26973,71 +26973,71 @@ function uC({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = iC(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = rC(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = iC(t?.pointerEvents) || ""), this.hasProjected && !Px(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = rC(t?.pointerEvents) || ""), this.hasProjected && !Nx(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = uie(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = die(this.projectionDeltaWithTransform, this.treeScale, i);
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in $x) {
+ for (let t in Qx) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = $x[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = Qx[t], c = a === "none" ? i[t] : n(i[t], r);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = r === this ? iC(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? rC(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(dC), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(uC), this.root.sharedNodes.clear();
}
};
}
-function Sie(e) {
+function Cie(e) {
e.updateLayout();
}
-function Cie(e) {
+function wie(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
- if (i === "size") QS((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = jS(r);
+ if (i === "size") ZS((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = AS(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- wS(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else yC(i, t.layoutBox, n) && QS((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = jS(n[r]);
+ CS(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else vC(i, t.layoutBox, n) && ZS((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = AS(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = mx();
- PS(o, n, t.layoutBox);
- let s = mx();
- a ? PS(s, e.applyTransform(r, !0), t.measuredBox) : PS(s, n, t.layoutBox);
- let c = !KS(o), l = !1;
+ let o = px();
+ NS(o, n, t.layoutBox);
+ let s = px();
+ a ? NS(s, e.applyTransform(r, !0), t.measuredBox) : NS(s, n, t.layoutBox);
+ let c = !GS(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = gx();
- RS(s, t.layoutBox, i.layoutBox, o);
- let c = gx();
- RS(c, n, a.layoutBox, o), YS(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = hx();
+ LS(s, t.layoutBox, i.layoutBox, o);
+ let c = hx();
+ LS(c, n, a.layoutBox, o), JS(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -27055,59 +27055,59 @@ function Cie(e) {
}
e.options.transition = void 0;
}
-function wie(e) {
- ux.value && oC.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
-}
function Tie(e) {
- e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+ lx.value && aC.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
function Eie(e) {
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+}
+function Die(e) {
e.clearSnapshot();
}
-function dC(e) {
+function uC(e) {
e.clearMeasurements();
}
-function Die(e) {
+function Oie(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function fC(e) {
+function dC(e) {
e.isLayoutDirty = !1;
}
-function Oie(e) {
+function kie(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
}
-function kie(e) {
+function Aie(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function pC(e) {
+function fC(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Aie(e) {
+function jie(e) {
e.resolveTargetDelta();
}
-function jie(e) {
+function Mie(e) {
e.calcProjection();
}
-function Mie(e) {
+function Nie(e) {
e.resetSkewAndRotation();
}
-function Nie(e) {
+function Pie(e) {
e.removeLeadSnapshot();
}
-function mC(e, t, n) {
- e.translate = ey(t.translate, 0, n), e.scale = ey(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function pC(e, t, n) {
+ e.translate = $v(t.translate, 0, n), e.scale = $v(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function hC(e, t, n, r) {
- e.min = ey(t.min, n.min, r), e.max = ey(t.max, n.max, r);
+function mC(e, t, n, r) {
+ e.min = $v(t.min, n.min, r), e.max = $v(t.max, n.max, r);
}
-function Pie(e, t, n, r) {
- hC(e.x, t.x, n.x, r), hC(e.y, t.y, n.y, r);
+function Fie(e, t, n, r) {
+ mC(e.x, t.x, n.x, r), mC(e.y, t.y, n.y, r);
}
-function Fie(e) {
+function Iie(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var Iie = {
+var Lie = {
duration: .45,
ease: [
.4,
@@ -27115,39 +27115,39 @@ var Iie = {
.1,
1
]
-}, gC = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), _C = gC("applewebkit/") && !gC("chrome/") ? Math.round : Y_;
-function vC(e) {
- e.min = _C(e.min), e.max = _C(e.max);
+}, hC = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), gC = hC("applewebkit/") && !hC("chrome/") ? Math.round : J_;
+function _C(e) {
+ e.min = gC(e.min), e.max = gC(e.max);
}
-function Lie(e) {
- vC(e.x), vC(e.y);
+function Rie(e) {
+ _C(e.x), _C(e.y);
}
-function yC(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !MS(XS(t), XS(n), .2);
+function vC(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !jS(YS(t), YS(n), .2);
}
-function Rie(e) {
+function zie(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var zie = uC({
- attachResizeListener: (e, t) => rC(e, "resize", t),
+var Bie = lC({
+ attachResizeListener: (e, t) => nC(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), bC = { current: void 0 }, xC = uC({
+}), yC = { current: void 0 }, bC = lC({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!bC.current) {
- let e = new zie({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), bC.current = e;
+ if (!yC.current) {
+ let e = new Bie({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), yC.current = e;
}
- return bC.current;
+ return yC.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
@@ -27156,18 +27156,18 @@ var zie = uC({
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function Bie(e, t, n, r) {
+function Vie(e, t, n, r) {
if (e == null) return [];
- let i = Hb(e, r), a = i.length, o = [];
+ let i = Vb(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ..._b(s, e) };
- i.duration &&= /* @__PURE__ */ $_(i.duration), i.delay &&= /* @__PURE__ */ $_(i.delay);
- let a = Zne(r), c = Xne(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...gb(s, e) };
+ i.duration &&= /* @__PURE__ */ Q_(i.duration), i.delay &&= /* @__PURE__ */ Q_(i.delay);
+ let a = Qne(r), c = Zne(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -27183,7 +27183,7 @@ function Bie(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = nx(r, i)), Ey(t), Dre(t, i), !a && t.length < 2 && t.unshift(nx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = tx(r, i)), Ey(t), Ore(t, i), !a && t.length < 2 && t.unshift(tx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
@@ -27192,31 +27192,31 @@ function Bie(e, t, n, r) {
}
return s;
}
-var Vie = /*@__PURE__*/ ((e) => {
+var Hie = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new Yne(Bie(t, n, r, e));
+ return new Xne(Vie(t, n, r, e));
}
return t;
-})(), SC = (e, t) => Math.abs(e - t);
-function Hie(e, t) {
- let n = SC(e.x, t.x), r = SC(e.y, t.y);
+})(), xC = (e, t) => Math.abs(e - t);
+function Uie(e, t) {
+ let n = xC(e.x, t.x), r = xC(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var Uie = {
+var Wie = {
selection: {
- type: gy,
+ type: hy,
duration: .16,
bounce: 0
},
hover: {
- type: gy,
+ type: hy,
duration: .08,
bounce: 0
}
};
-function CC(e) {
+function SC(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!t) return;
@@ -27237,7 +27237,7 @@ function CC(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 = Vie(n, { transform: [r, E] }, Uie[e]);
+ l = Hie(n, { transform: [r, E] }, Wie[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -27274,25 +27274,25 @@ function CC(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function wC(e) {
- let t = CC("selection");
- return /* @__PURE__ */ (0, U.jsx)(R_, {
+function CC(e) {
+ let t = SC("selection");
+ return /* @__PURE__ */ (0, U.jsx)(L_, {
...e,
ref: t
});
}
-function TC(e) {
- let t = CC("selection");
+function wC(e) {
+ let t = SC("selection");
return /* @__PURE__ */ (0, U.jsx)(lg, {
...e,
ref: t
});
}
-var EC = "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", DC = "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", Wie = "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", OC = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", kC = "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)", Gie = { "text-aa": 1.435 }, AC = /* @__PURE__ */ new Map();
-function jC(e) {
- let t = AC.get(e);
+var TC = "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", EC = "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", Gie = "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", DC = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", OC = "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)", Kie = { "text-aa": 1.435 }, kC = /* @__PURE__ */ new Map();
+function AC(e) {
+ let t = kC.get(e);
if (t) return t;
- let n = Gie[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, U.jsx)("svg", {
+ let n = Kie[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, U.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -27306,19 +27306,19 @@ function jC(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, AC.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, kC.set(e, r), r;
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Kie = (e) => e === "videos", MC = () => /* @__PURE__ */ (0, U.jsx)("span", {
+var qie = (e) => e === "videos", jC = () => /* @__PURE__ */ (0, U.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function qie(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Kie(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), _ = xr(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = xr(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function Jie(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = qie(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), _ = xr(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = xr(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, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(NC, {
+ }, [c]), /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(MC, {
items: o,
hidden: !l,
actions: s
@@ -27342,13 +27342,13 @@ function qie(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [n ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Jie, {
+ top: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [n ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Yie, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, U.jsx)(MC, {}) : null] }) : null, /* @__PURE__ */ (0, U.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, U.jsx)(jC, {}) : null] }) : null, /* @__PURE__ */ (0, U.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
@@ -27368,7 +27368,7 @@ function qie(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, U.jsx)(MC, {})]
+ }, e.k)), /* @__PURE__ */ (0, U.jsx)(jC, {})]
}), /* @__PURE__ */ (0, U.jsx)("div", {
ref: h,
"data-entity-tags": "",
@@ -27384,10 +27384,10 @@ function qie(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, U.jsx)(Yie, { ...e })
+ bottom: /* @__PURE__ */ (0, U.jsx)(Xie, { ...e })
})] });
}
-function Jie({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Yie({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -27429,7 +27429,7 @@ function Jie({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function NC({ items: e, hidden: t, actions: n }) {
+function MC({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -27449,7 +27449,7 @@ function NC({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Yie(e) {
+function Xie(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, U.jsxs)("button", {
@@ -27461,22 +27461,22 @@ function Yie(e) {
dangerouslySetInnerHTML: { __html: L("chevron-left") }
}), /* @__PURE__ */ (0, U.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, U.jsx)(Xie, {
+ /* @__PURE__ */ (0, U.jsx)(Zie, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, U.jsx)(Zie, {
+ t === "videos" && i ? /* @__PURE__ */ (0, U.jsx)(Qie, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, U.jsx)(Qie, {
+ t === "photos" && a ? /* @__PURE__ */ (0, U.jsx)($ie, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function Xie({ text: e, busy: t }) {
+function Zie({ text: e, busy: t }) {
return /* @__PURE__ */ (0, U.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, U.jsx)("span", {
@@ -27486,7 +27486,7 @@ function Xie({ text: e, busy: t }) {
}) : e
});
}
-function PC({ name: e, label: t, value: n, options: r, onChange: i }) {
+function NC({ name: e, label: t, value: n, options: r, onChange: i }) {
return /* @__PURE__ */ (0, U.jsx)(lg, {
name: e,
"aria-label": t,
@@ -27494,14 +27494,14 @@ function PC({ name: e, label: t, value: n, options: r, onChange: i }) {
value: n,
onChange: i,
"data-entity-layout": "",
- className: OC,
+ className: DC,
children: r.map(([e, t, n]) => {
- let r = jC(n);
+ let r = AC(n);
return /* @__PURE__ */ (0, U.jsx)(ug, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: kC,
+ className: OC,
children: /* @__PURE__ */ (0, U.jsx)("span", {
title: t,
className: "contents",
@@ -27511,7 +27511,7 @@ function PC({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function FC({ onPress: e, busy: t = !1 }) {
+function PC({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -27525,27 +27525,27 @@ function FC({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? w("正在换一批") : L("shuffle") }
});
}
-function Zie({ head: e, actions: t }) {
+function Qie({ head: e, actions: t }) {
return /* @__PURE__ */ (0, U.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, U.jsx)(FC, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, U.jsx)(PC, {
+ /* @__PURE__ */ (0, U.jsx)(PC, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, U.jsx)(NC, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, U.jsx)(IC, {
+ /* @__PURE__ */ (0, U.jsx)(FC, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function IC({ sorts: e, onSort: t }) {
+function FC({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, U.jsx)(U.Fragment, { children: e.map((e) => {
- let n = jC(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = AC(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -27557,20 +27557,20 @@ function IC({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function Qie({ head: e, actions: t, helpers: n }) {
+function $ie({ 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, U.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, U.jsx)(FC, {
+ e.shuffle ? /* @__PURE__ */ (0, U.jsx)(PC, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, U.jsx)(PC, {
+ /* @__PURE__ */ (0, U.jsx)(NC, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -27586,31 +27586,31 @@ function Qie({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var LC = "";
-function $ie(e) {
- let t = !e.tiers, n = oae(e.comboHost);
+var IC = "";
+function eae(e) {
+ let t = !e.tiers, n = sae(e.comboHost);
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(NC, {
+ n ? (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(MC, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, U.jsx)(nae, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, U.jsx)(eae, { ...e })
+ /* @__PURE__ */ (0, U.jsx)(rae, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, U.jsx)(tae, { ...e })
]
});
}
-function eae(e) {
+function tae(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 = xr(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 = zC(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = RC(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, B.useLayoutEffect)(() => {
h(o.current, "tagbar");
}, [u]), /* @__PURE__ */ (0, U.jsx)(hr, {
@@ -27656,16 +27656,16 @@ function eae(e) {
}), /* @__PURE__ */ (0, U.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, U.jsx)(RC, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, U.jsx)(tae, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, U.jsx)(LC, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, U.jsx)(nae, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, U.jsx)(iae, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, U.jsx)(aae, { ...e })
});
}
-function tae({ tag: e, onPress: t }) {
+function nae({ tag: e, onPress: t }) {
return /* @__PURE__ */ (0, U.jsxs)(_r, {
"data-catalog-tag": e.k,
"data-entity-press": "",
@@ -27677,12 +27677,12 @@ function tae({ tag: e, onPress: t }) {
})]
});
}
-function nae(e) {
+function rae(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 = zC(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = zC(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 = RC(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = RC(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);
}, [
@@ -27695,7 +27695,7 @@ function nae(e) {
children: [u ? /* @__PURE__ */ (0, U.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, U.jsx)(RC, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, U.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, U.jsx)(LC, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -27712,18 +27712,18 @@ function nae(e) {
}) : null, d ? /* @__PURE__ */ (0, U.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, U.jsx)(RC, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, U.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, U.jsx)(LC, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, U.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, U.jsx)(rae, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, U.jsx)(iae, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function rae({ studio: e }) {
+function iae({ studio: e }) {
let [t, n] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, U.jsx)("span", {
"data-tier-mark": "",
@@ -27737,7 +27737,7 @@ function rae({ studio: e }) {
}) : e.fallback
});
}
-function RC({ kind: e }) {
+function LC({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -27753,32 +27753,32 @@ function RC({ kind: e }) {
children: [/* @__PURE__ */ (0, U.jsx)("span", {}), /* @__PURE__ */ (0, U.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function iae({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function aae({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, B.useState)(!1);
- return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(aae, { count: e }), /* @__PURE__ */ (0, U.jsxs)("span", {
+ return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(oae, { count: e }), /* @__PURE__ */ (0, U.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, U.jsx)(FC, {
+ /* @__PURE__ */ (0, U.jsx)(PC, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, U.jsx)(PC, {
+ n ? /* @__PURE__ */ (0, U.jsx)(NC, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, U.jsx)(IC, {
+ /* @__PURE__ */ (0, U.jsx)(FC, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function aae({ count: e }) {
+function oae({ 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) {
@@ -27786,7 +27786,7 @@ function aae({ count: e }) {
return;
}
let i = t.current;
- i && (LC && i.dataset.popCount === void 0 && (i.dataset.popCount = LC), LC = r, g(i, r));
+ i && (IC && i.dataset.popCount === void 0 && (i.dataset.popCount = IC), IC = r, g(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, U.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -27802,7 +27802,7 @@ function aae({ count: e }) {
})
}, "skeleton");
}
-function oae(e) {
+function sae(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!e) return;
@@ -27812,7 +27812,7 @@ function oae(e) {
};
}, [e]), t;
}
-function zC(e, t, n, r, i) {
+function RC(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -27858,13 +27858,13 @@ function zC(e, t, n, r, i) {
}
//#endregion
//#region src/api.ts
-var BC = class extends Error {
+var zC = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(ce(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, VC = (e) => {
+}, BC = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -27877,7 +27877,7 @@ var BC = class extends Error {
}
return "";
}, K = (e) => ce(e);
-async function HC(e, t) {
+async function VC(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -27886,7 +27886,7 @@ async function HC(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new BC(VC(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new zC(BC(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function q(e, t, n = "POST", r) {
@@ -27903,20 +27903,20 @@ async function q(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new BC(VC(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new zC(BC(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function UC({ value: e }) {
+function HC({ value: e }) {
return /* @__PURE__ */ (0, U.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 sae = "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 WC({ tabs: e, value: t, label: n, onChange: r }) {
+var cae = "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 UC({ 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;
@@ -27944,14 +27944,14 @@ function WC({ 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 ? jC(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? AC(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: sae,
+ className: cae,
onClick: () => {
i || r(e.value);
},
@@ -27967,21 +27967,21 @@ function WC({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/search/search.ts
-var GC = /* @__PURE__ */ new Set([
+var WC = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), KC = /* @__PURE__ */ new Set(["asset"]), qC = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function cae({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), GC = /* @__PURE__ */ new Set(["asset"]), KC = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function lae({ 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 || qC(t).includes(qC(e)));
+ }, u = t.filter((t) => !e || KC(t).includes(KC(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -28019,7 +28019,7 @@ function cae({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !KC.has(e.kind)).map(m), g = p.filter((e) => KC.has(e.kind)).map(m);
+ }), h = p.filter((e) => !GC.has(e.kind)).map(m), g = p.filter((e) => GC.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -28028,17 +28028,17 @@ function cae({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function lae(e, t, n = Math.random) {
+function uae(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) => qC(t) === qC(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => KC(t) === KC(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var uae = () => ({
+var dae = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -28053,7 +28053,7 @@ var uae = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), JC = (e) => cae({
+}), qC = (e) => lae({
query: e.query,
history: e.history,
picks: e.picks,
@@ -28061,18 +28061,18 @@ var uae = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), dae = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), YC = ({ name: e }) => /* @__PURE__ */ (0, U.jsx)("svg", {
+}), fae = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), JC = ({ name: e }) => /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
});
-function fae(e) {
+function pae(e) {
let t = (0, B.useRef)(e);
t.current = e;
let n = (0, B.useRef)(null);
- n.current ??= uae();
+ n.current ??= dae();
let r = n.current, i = (0, B.useRef)(null), [, a] = (0, B.useReducer)((e) => e + 1, 0), o = (0, B.useRef)(null);
- o.current ??= pae(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= mae(() => 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();
@@ -28085,7 +28085,7 @@ function fae(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 = JC(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, U.jsx)(hae, {
+ let c = qC(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, U.jsx)(gae, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -28105,7 +28105,7 @@ function fae(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, U.jsx)(mae, {
+ c.tabs ? /* @__PURE__ */ (0, U.jsx)(hae, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -28126,7 +28126,7 @@ function fae(e) {
]
});
}
-function pae(e, t, n, r) {
+function mae(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 () => {
@@ -28136,11 +28136,11 @@ function pae(e, t, n, r) {
return;
}
try {
- let e = await HC(`/api/search-history?limit=${n}`);
+ let e = await VC(`/api/search-history?limit=${n}`);
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => qC(e) !== qC(t))]), q("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => KC(e) !== KC(t))]), q("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -28156,7 +28156,7 @@ function pae(e, t, n, r) {
}, d = async (e, n = "") => {
let r = ++t.suggestRequest;
try {
- let i = await HC(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}&limit=20` : "&limit=5"));
+ let i = await VC(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}&limit=20` : "&limit=5"));
if (r !== t.suggestRequest) return;
t.suggestFor = i.q || "", t.groups = i.groups || [], n || (t.tabs = t.groups.map(({ kind: e, label: t, total: n }) => ({
kind: e,
@@ -28173,9 +28173,9 @@ function pae(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 ? [] : lae(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : uae(t.pool, o()), t.active = -1;
let a = n();
- a && (dae(JC(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (fae(qC(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -28187,7 +28187,7 @@ function pae(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() ? JC(t).options : [], v = (e) => {
+ }, _ = () => f() ? qC(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) => {
@@ -28200,7 +28200,7 @@ function pae(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && GC.has(t.kind)) {
+ if (t.type === "suggest" && WC.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -28252,12 +28252,12 @@ function pae(e, t, n, r) {
await q("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => qC(t) !== qC(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => KC(t) !== KC(e))), t.active = -1, r();
},
pickKind: g
};
}
-function mae({ tabs: e, kind: t, onPick: n, wire: r }) {
+function hae({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
r(i.current);
@@ -28269,7 +28269,7 @@ function mae({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, U.jsx)(UC, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, U.jsx)(HC, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, U.jsxs)("div", {
ref: i,
@@ -28279,8 +28279,8 @@ function mae({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var XC = (e) => e.preventDefault();
-function hae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var YC = (e) => e.preventDefault();
+function gae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -28292,28 +28292,28 @@ function hae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, U.jsx)(YC, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, U.jsx)(JC, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, U.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: XC,
+ onMouseDown: YC,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, U.jsx)(YC, { name: "x" })
+ children: /* @__PURE__ */ (0, U.jsx)(JC, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = GC.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = WC.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, U.jsx)(ZC, {
+ children: [/* @__PURE__ */ (0, U.jsx)(XC, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, U.jsxs)("span", {
@@ -28339,7 +28339,7 @@ function hae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, U.jsx)(QC, {
+ /* @__PURE__ */ (0, U.jsx)(ZC, {
item: s,
kind: c
}),
@@ -28359,11 +28359,11 @@ function hae({ 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: XC,
+ onMouseDown: YC,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, U.jsx)(ZC, {
+ children: /* @__PURE__ */ (0, U.jsx)(XC, {
card: e,
helpers: n
})
@@ -28377,7 +28377,7 @@ function hae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, U.jsx)(QC, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, U.jsx)(ZC, {
item: s,
kind: c
}) : null,
@@ -28390,13 +28390,13 @@ function hae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function ZC({ card: e, helpers: t }) {
+function XC({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, U.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function QC({ item: e, kind: t }) {
+function ZC({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -28411,8 +28411,8 @@ function QC({ item: e, kind: t }) {
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var $C = (e) => ["feed-new", e ?? "home"], gae = 8, _ae = 1500;
-function vae(e, t, n) {
+var QC = (e) => ["feed-new", e ?? "home"], _ae = 8, vae = 1500;
+function yae(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -28423,43 +28423,43 @@ function vae(e, t, n) {
setTimeout(e, n);
})]);
}
-async function yae(e, t, n) {
+async function bae(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
let i = await N(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await vae(s, gae, _ae), {
+ return n && o.length && await yae(s, _ae, vae), {
items: o,
html: s
};
}
-var ew = (e, t, n = !1) => ({
- queryKey: $C(e),
- queryFn: () => yae(e, t, n),
+var $C = (e, t, n = !1) => ({
+ queryKey: QC(e),
+ queryFn: () => bae(e, t, n),
staleTime: Infinity
-}), tw = (e, t) => N("/api/feeds/discovery", {
+}), ew = (e, t) => N("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function bae(e) {
- z.removeQueries({ queryKey: $C(null) }), await z.fetchQuery(ew(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function xae(e) {
+ z.removeQueries({ queryKey: QC(null) }), await z.fetchQuery($C(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
-var nw = B.createContext(void 0), rw = (e) => {
- let t = B.useContext(nw);
+var tw = B.createContext(void 0), nw = (e) => {
+ let t = B.useContext(tw);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, iw = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {
+}, rw = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, U.jsx)(nw.Provider, {
+}), [e]), /* @__PURE__ */ (0, U.jsx)(tw.Provider, {
value: e,
children: t
-})), xae = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
- let i = rw(r), a = B.useRef(t);
+})), Sae = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
+ let i = nw(r), a = B.useRef(t);
B.useEffect(() => {
a.current = t;
});
@@ -28477,10 +28477,10 @@ var nw = B.createContext(void 0), rw = (e) => {
return B.useEffect(() => {
o && Pe(i, { queries: o }, a.current);
}, [i, o]), e;
-}, aw = B.createContext(!1), ow = () => B.useContext(aw), Sae = aw.Provider;
+}, iw = B.createContext(!1), aw = () => B.useContext(iw), Cae = iw.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function sw() {
+function ow() {
let e = !1;
return {
clearReset: () => {
@@ -28492,31 +28492,31 @@ function sw() {
isReset: () => e
};
}
-var cw = B.createContext(sw()), lw = () => B.useContext(cw), Cae = ({ children: e }) => {
- let [t] = B.useState(() => sw());
- return /* @__PURE__ */ (0, U.jsx)(cw.Provider, {
+var sw = B.createContext(ow()), cw = () => B.useContext(sw), wae = ({ children: e }) => {
+ let [t] = B.useState(() => ow());
+ return /* @__PURE__ */ (0, U.jsx)(sw.Provider, {
value: t,
children: typeof e == "function" ? e(t) : e
});
-}, uw = (e, t, n) => {
+}, lw = (e, t, n) => {
let r = n?.state.error && typeof e.throwOnError == "function" ? Re(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, dw = (e) => {
+}, uw = (e) => {
B.useEffect(() => {
e.clearReset();
}, [e]);
-}, fw = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Re(n, [e.error, r])), pw = (e, t) => t.state.data === void 0, mw = (e) => {
+}, dw = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Re(n, [e.error, r])), fw = (e, t) => t.state.data === void 0, pw = (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));
}
-}, hw = (e, t) => e?.suspense && t.isPending, gw = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, mw = (e, t) => e?.suspense && t.isPending, hw = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQueries.js
-function _w({ queries: e, ...t }, n) {
- let r = rw(n), i = ow(), a = lw(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {
+function gw({ queries: e, ...t }, n) {
+ let r = nw(n), i = aw(), a = cw(), 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;
}), [
@@ -28526,10 +28526,10 @@ function _w({ queries: e, ...t }, n) {
o
]);
s.forEach((e) => {
- mw(e);
+ pw(e);
let t = r.getQueryCache().get(e.queryHash);
- uw(e, a, t);
- }), dw(a);
+ lw(e, a, t);
+ }), uw(a);
let [c] = B.useState(() => new Me(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;
B.useSyncExternalStore(B.useCallback((e) => f ? c.subscribe(Ie.batchCalls(e)) : Fe, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), B.useEffect(() => {
c.setQueries(s, t);
@@ -28538,14 +28538,14 @@ function _w({ queries: e, ...t }, n) {
t,
c
]);
- let p = l.some((e, t) => hw(s[t], e)) ? l.flatMap((e, t) => {
+ let p = l.some((e, t) => mw(s[t], e)) ? l.flatMap((e, t) => {
let n = s[t];
- return n && hw(n, e) ? gw(n, new Ne(r, n), a) : [];
+ return n && mw(n, e) ? hw(n, new Ne(r, n), a) : [];
}) : [];
if (p.length > 0) throw Promise.all(p);
let m = l.find((e, t) => {
let n = s[t];
- return n && fw({
+ return n && dw({
result: e,
errorResetBoundary: a,
throwOnError: n.throwOnError,
@@ -28558,17 +28558,17 @@ function _w({ queries: e, ...t }, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function vw(e, t, n) {
- let r = ow(), i = lw(), a = rw(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, mw(o), uw(o, i, s), dw(i);
+function _w(e, t, n) {
+ let r = aw(), i = cw(), a = nw(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, pw(o), lw(o, i, s), uw(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(Ie.batchCalls(e)) : Fe;
return l.updateResult(), t;
}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), B.useEffect(() => {
l.setOptions(o);
- }, [o, l]), hw(o, u)) throw gw(o, l, i);
- if (fw({
+ }, [o, l]), mw(o, u)) throw hw(o, l, i);
+ if (dw({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -28579,40 +28579,40 @@ function vw(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function yw(e, t) {
- return vw(e, Ne, t);
+function vw(e, t) {
+ return _w(e, Ne, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
-function wae(e, t) {
- return vw({
+function Tae(e, t) {
+ return _w({
...e,
enabled: !0,
suspense: !0,
- throwOnError: pw,
+ throwOnError: fw,
placeholderData: void 0
}, Ne, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js
-function Tae(e, t) {
- return vw({
+function Eae(e, t) {
+ return _w({
...e,
enabled: !0,
suspense: !0,
- throwOnError: pw,
+ throwOnError: fw,
placeholderData: void 0
}, Ae, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js
-function Eae(e, t) {
- return _w({
+function Dae(e, t) {
+ return gw({
...e,
queries: e.queries.map((e) => ({
...e,
suspense: !0,
- throwOnError: pw,
+ throwOnError: fw,
enabled: !0,
placeholderData: void 0
}))
@@ -28620,57 +28620,57 @@ function Eae(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js
-function Dae(e, t) {
- let n = rw(t);
+function Oae(e, t) {
+ let n = nw(t);
n.getQueryState(e.queryKey) || n.query(e).catch(Fe);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js
-function Oae(e, t) {
- let n = rw(t);
+function kae(e, t) {
+ let n = nw(t);
n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(Fe);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js
-function kae(e) {
+function Aae(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js
-function Aae(e) {
+function jae(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js
-function jae(e, t) {
- let n = rw(t), r = n.getQueryCache();
+function Mae(e, t) {
+ let n = nw(t), r = n.getQueryCache();
return B.useSyncExternalStore(B.useCallback((e) => r.subscribe(Ie.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js
-function Mae(e, t) {
- let n = rw(t);
- return xw({ filters: {
+function Nae(e, t) {
+ let n = nw(t);
+ return bw({ filters: {
...e,
status: "pending"
} }, n).length;
}
-function bw(e, t) {
+function yw(e, t) {
return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);
}
-function xw(e = {}, t) {
- let n = rw(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);
- return i.current === null && (i.current = bw(n, e)), B.useEffect(() => {
+function bw(e = {}, t) {
+ let n = nw(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);
+ return i.current === null && (i.current = yw(n, e)), B.useEffect(() => {
r.current = e;
}), B.useSyncExternalStore(B.useCallback((e) => n.subscribe(() => {
- let t = Le(i.current, bw(n, r.current));
+ let t = Le(i.current, yw(n, r.current));
i.current !== t && (i.current = t, Ie.schedule(e));
}), [n]), () => i.current, () => i.current);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function Sw(e, t) {
- let n = rw(t), [r] = B.useState(() => new je(n, e));
+function xw(e, t) {
+ let n = nw(t), [r] = B.useState(() => new je(n, e));
B.useEffect(() => {
r.setOptions(e);
}, [r, e]);
@@ -28686,47 +28686,47 @@ function Sw(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js
-function Nae(e) {
+function Pae(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function Cw(e, t) {
- return vw(e, Ae, t);
+function Sw(e, t) {
+ return _w(e, Ae, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/index.js
-var ww = /* @__PURE__ */ ht({
- HydrationBoundary: () => xae,
- IsRestoringProvider: () => Sae,
- QueryClientContext: () => nw,
- QueryClientProvider: () => iw,
- QueryErrorResetBoundary: () => Cae,
- infiniteQueryOptions: () => Aae,
- mutationOptions: () => Nae,
- queryOptions: () => kae,
- useInfiniteQuery: () => Cw,
- useIsFetching: () => jae,
- useIsMutating: () => Mae,
- useIsRestoring: () => ow,
- useMutation: () => Sw,
- useMutationState: () => xw,
- usePrefetchInfiniteQuery: () => Oae,
- usePrefetchQuery: () => Dae,
- useQueries: () => _w,
- useQuery: () => yw,
- useQueryClient: () => rw,
- useQueryErrorResetBoundary: () => lw,
- useSuspenseInfiniteQuery: () => Tae,
- useSuspenseQueries: () => Eae,
- useSuspenseQuery: () => wae
+var Cw = /* @__PURE__ */ ht({
+ HydrationBoundary: () => Sae,
+ IsRestoringProvider: () => Cae,
+ QueryClientContext: () => tw,
+ QueryClientProvider: () => rw,
+ QueryErrorResetBoundary: () => wae,
+ infiniteQueryOptions: () => jae,
+ mutationOptions: () => Pae,
+ queryOptions: () => Aae,
+ useInfiniteQuery: () => Sw,
+ useIsFetching: () => Mae,
+ useIsMutating: () => Nae,
+ useIsRestoring: () => aw,
+ useMutation: () => xw,
+ useMutationState: () => bw,
+ usePrefetchInfiniteQuery: () => kae,
+ usePrefetchQuery: () => Oae,
+ useQueries: () => gw,
+ useQuery: () => vw,
+ useQueryClient: () => nw,
+ useQueryErrorResetBoundary: () => cw,
+ useSuspenseInfiniteQuery: () => Eae,
+ useSuspenseQueries: () => Dae,
+ useSuspenseQuery: () => Tae
});
-import * as Pae from "/dist/peach-ui.js";
-_t(ww, Pae);
+import * as Fae from "/dist/peach-ui.js";
+_t(Cw, Fae);
/* istanbul ignore file */
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function Tw({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function ww({ 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);
@@ -28760,592 +28760,49 @@ function Tw({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function Fae({ host: e, revision: t, helpers: n, actions: r }) {
- let i = yw(ew(null, n.feedRowHtml)), a = (0, B.useRef)(t);
+function Iae({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = vw($C(null, n.feedRowHtml)), a = (0, B.useRef)(t);
return (0, B.useEffect)(() => {
- a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: $C(null) }));
- }, [t]), (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(Tw, {
+ a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: QC(null) }));
+ }, [t]), (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(ww, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: tw,
+ act: ew,
settled: r.settled
}), e);
}
//#endregion
-//#region src/react/components/empty-state.tsx
-var Iae = {
- 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 Ew({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
- let a = i === "page";
- return /* @__PURE__ */ (0, U.jsxs)("div", {
- "data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${Iae[i]}`,
- children: [
- a ? /* @__PURE__ */ (0, U.jsx)("span", {
- "aria-hidden": !0,
- className: "mb-2 flex size-empty-glyph items-center justify-center rounded-floating border border-text-primary/15 p-2.5 text-text-secondary",
- children: /* @__PURE__ */ (0, U.jsx)(e, {
- "aria-hidden": !0,
- className: "size-8"
- })
- }) : /* @__PURE__ */ (0, U.jsx)(e, {
- "aria-hidden": !0,
- className: "size-6 text-text-tertiary"
- }),
- /* @__PURE__ */ (0, U.jsx)("h3", {
- className: `${a ? "text-body-semibold" : "text-headline-medium"} text-text-primary`,
- children: t
- }),
- /* @__PURE__ */ (0, U.jsx)("p", {
- className: `${a ? "max-w-empty-copy leading-empty-copy" : "max-w-prose"} text-body-2-regular text-text-secondary`,
- children: r
- }),
- n ? /* @__PURE__ */ (0, U.jsx)("div", {
- className: "mt-2 flex flex-wrap justify-center gap-2",
- children: n
- }) : null
- ]
- });
-}
-//#endregion
-//#region src/react/components/grid-reveal.tsx
-function Dw(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 && s(a.current);
- }, []), (0, B.useLayoutEffect)(() => {
- if (e || n !== "skeleton") return;
- let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");
- r(t ? "fade" : "none");
- }, [e]), (0, B.useEffect)(() => {
- if (n !== "fade") return;
- let e = setTimeout(() => r("none"), 1e3);
- return () => clearTimeout(e);
- }, [n]), {
- layer: n === "none" ? null : /* @__PURE__ */ (0, U.jsx)("div", {
- ref: a,
- "data-grid-fade": n === "fade" ? "" : void 0,
- "aria-hidden": !e || void 0,
- hidden: !e && n === "skeleton",
- onAnimationEnd: (e) => {
- e.target === e.currentTarget && r("none");
- },
- dangerouslySetInnerHTML: { __html: i }
- }),
- fading: n === "fade"
- };
-}
-function Ow({ message: e, onRetry: t }) {
- return /* @__PURE__ */ (0, U.jsx)("div", {
- "data-media-error": "",
- onClick: (e) => {
- e.target.closest("[data-note-action]") && t();
- },
- dangerouslySetInnerHTML: { __html: m(e, {
- variant: "error",
- actionLabel: "重试"
- }) }
- });
-}
-var kw = {
- video: ["视频", "play"],
- image: ["图片", "pics"],
- archive: ["压缩包", "file-archive"],
- audio: ["音频", "file-audio"],
- url: ["网址快捷方式", "globe"],
- other: ["其它文件", "hard-drive"]
-}, Lae = (e) => kw[e.junk_kind || "other"] || kw.other;
-function Rae(e) {
- return e === "dismissed" ? {
- operation: "reconsider-junk",
- label: "重新判断",
- glyph: "rotate-ccw"
- } : {
- operation: "dismiss-junk",
- label: "不是垃圾",
- glyph: "check"
- };
-}
-var Aw = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), zae = (e, t) => [
- "junk-queue",
- e.view,
- e.kind,
- t
-];
-function Bae({ kind: e, view: t }) {
- let n = new URLSearchParams({
- limit: "200",
- status: t
- });
- return e && n.set("kind", e), n.toString();
-}
-async function Vae(e, t) {
- let n = await HC(`/api/ads?${Bae(e)}`, t);
- return {
- ...n,
- items: n.items || []
- };
-}
-//#endregion
-//#region src/react/junk-queue/junk-card.tsx
-function jw({ name: e }) {
- return /* @__PURE__ */ (0, U.jsx)("svg", {
- viewBox: "0 0 24 24",
- "aria-hidden": "true",
- children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
- });
-}
-var Mw = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Hae({ 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] = Lae(e), m = String(e.name || ""), h = Rae(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]") || Mw(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
- }, y = (t) => {
- if (t.stopPropagation(), Mw(r, t)) {
- t.preventDefault(), a.toggleSelection(e.id, t.shiftKey);
- return;
- }
- o.current && a.open(e, o.current);
- }, b = (t) => {
- t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
- }, x = (t) => (n) => {
- n.preventDefault(), n.stopPropagation(), s !== t && (c(t), u(""), a.operate(e, t).catch(() => {}).finally(() => c("")));
- }, S = (e) => s === e ? {
- "aria-busy": !0,
- "aria-disabled": !0
- } : {}, C = _ ? /* @__PURE__ */ (0, U.jsx)("button", {
- type: "button",
- "data-junk-title": "",
- "data-junk-open": "",
- "data-middle-truncate": "",
- title: m,
- onClick: y,
- dangerouslySetInnerHTML: { __html: P(m || "未命名资源") }
- }) : /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-title": "",
- "data-middle-truncate": "",
- title: m,
- dangerouslySetInnerHTML: { __html: P(m || "未命名资源") }
- });
- return /* @__PURE__ */ (0, U.jsxs)("article", {
- ref: o,
- "data-media-card": "",
- "data-variant": "junk",
- "data-junk-card": "",
- "data-id": e.id,
- "data-junk-kind": d,
- "data-selected": n ? "" : void 0,
- onClick: v,
- children: [
- /* @__PURE__ */ (0, U.jsxs)("div", {
- "data-media-pic": "",
- style: { "--card-ratio": "1.7777777777777777" },
- children: [
- /* @__PURE__ */ (0, U.jsxs)("span", {
- "data-media-glyph": "",
- children: [/* @__PURE__ */ (0, U.jsx)(jw, { name: p }), /* @__PURE__ */ (0, U.jsx)("b", { children: f })]
- }),
- g ? /* @__PURE__ */ (0, U.jsx)("span", {
- "data-media-art": "thumb",
- dangerouslySetInnerHTML: { __html: `<img class="poster" src="${g}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }
- }) : null,
- /* @__PURE__ */ (0, U.jsx)("div", {
- "data-media-badge": "",
- dangerouslySetInnerHTML: { __html: i.badgeHtml(e.location || "", e.cost || "") }
- }),
- /* @__PURE__ */ (0, U.jsx)("span", {
- "data-media-check": "",
- children: /* @__PURE__ */ (0, U.jsx)(jw, { name: "check" })
- })
- ]
- }),
- /* @__PURE__ */ (0, U.jsxs)("div", {
- "data-junk-meta": "",
- children: [C, /* @__PURE__ */ (0, U.jsxs)("div", {
- "data-junk-facts": "",
- children: [
- /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-who": "",
- children: f
- }),
- e.why ? /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-why": "",
- children: e.why
- }) : null,
- /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-size": "",
- children: Number(e.size) > 0 ? I(Number(e.size)) : "大小未知"
- })
- ]
- })]
- }),
- /* @__PURE__ */ (0, U.jsxs)("footer", {
- "data-junk-actions": "",
- children: [
- /* @__PURE__ */ (0, U.jsxs)("button", {
- type: "button",
- "data-junk-action": "reveal",
- title: "在资源管理器中显示",
- "aria-label": "在资源管理器中显示",
- ...S("reveal"),
- onClick: b,
- children: [s === "reveal" ? /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-spinner": "",
- dangerouslySetInnerHTML: { __html: w("正在定位") }
- }) : /* @__PURE__ */ (0, U.jsx)(jw, { name: "folder-open" }), /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-label": "",
- children: "打开位置"
- })]
- }),
- /* @__PURE__ */ (0, U.jsxs)("button", {
- type: "button",
- "data-junk-action": h.operation,
- title: h.label,
- "aria-label": h.label,
- ...S(h.operation),
- onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, U.jsx)(jw, { name: h.glyph }), /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-label": "",
- children: h.label
- })]
- }),
- /* @__PURE__ */ (0, U.jsxs)("button", {
- type: "button",
- "data-junk-action": "dispose",
- title: "移入回收站",
- "aria-label": "移入回收站",
- ...S("dispose"),
- onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, U.jsx)(jw, { name: "trash" }), /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-label": "",
- children: "移入回收站"
- })]
- }),
- /* @__PURE__ */ (0, U.jsx)("span", {
- "data-junk-state": "",
- "aria-live": "polite",
- children: l
- })
- ]
- })
- ]
- });
-}
-var Uae = (0, B.memo)(Hae);
-({
- 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/junk-queue.ts
-var Nw = [
- [
- "",
- "全部",
- "layout-grid"
- ],
- [
- "video",
- "视频",
- "play"
- ],
- [
- "image",
- "图片",
- "pics"
- ],
- [
- "archive",
- "压缩包",
- "file-archive"
- ],
- [
- "audio",
- "音频",
- "file-audio"
- ],
- [
- "url",
- "网址",
- "globe"
- ],
- [
- "other",
- "其它",
- "hard-drive"
- ]
-];
-function Pw(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 Wae(e) {
- return e === "dismissed" ? {
- view: "pending",
- label: "返回待判断",
- glyph: "rotate-ccw",
- href: Pw("", "pending")
- } : {
- view: "dismissed",
- label: "已排除",
- glyph: "eye-off",
- href: Pw("", "dismissed")
- };
-}
-var Gae = (e) => e === "dismissed" ? "已排除" : "待判断";
-//#endregion
-//#region src/react/components/collection-summary.tsx
-function Fw({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
- return /* @__PURE__ */ (0, U.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
- max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4
- dark:bg-background-primary-default`,
- children: [/* @__PURE__ */ (0, U.jsxs)("div", {
- className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)("span", {
- className: "text-body-regular text-text-secondary",
- children: e
- }), /* @__PURE__ */ (0, U.jsx)("strong", {
- className: "text-display-4-medium tabular-nums text-text-primary",
- children: r ? /* @__PURE__ */ (0, U.jsx)("span", {
- "data-skeleton": "count",
- "aria-hidden": !0,
- className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"
- }) : t
- })]
- }), n ? /* @__PURE__ */ (0, U.jsx)("p", {
- className: "text-body-regular text-text-secondary",
- children: n
- }) : null]
- });
-}
-//#endregion
-//#region src/react/components/overlay-scrollbar.ts
-function Iw() {
- let e = (0, B.useRef)(null);
- return (0, B.useEffect)(() => {
- t(e.current);
- }), e;
-}
-//#endregion
-//#region src/react/junk-queue/junk-count.tsx
-function Lw({ name: e }) {
- return /* @__PURE__ */ (0, U.jsx)("svg", {
- viewBox: "0 0 24 24",
- "aria-hidden": "true",
- children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
- });
-}
-function Rw({ scope: e, count: t }) {
- return t ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [" ", /* @__PURE__ */ (0, U.jsx)("span", {
- "data-count-badge": `junk:${e}`,
- children: t.toLocaleString()
- })] }) : null;
-}
-function Kae({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = Iw(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = xr(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? Nw.map(([e]) => Aw(t, e)).join(",") : ""}`), l = Wae(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") || Pw()));
- }, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
- return /* @__PURE__ */ (0, U.jsxs)("div", {
- "data-junk-count": "",
- children: [/* @__PURE__ */ (0, U.jsx)("div", {
- "data-junk-summary": "",
- "aria-live": "polite",
- children: /* @__PURE__ */ (0, U.jsx)(Fw, {
- label: Gae(s),
- figure: d,
- pending: !t && !n,
- flush: !0
- })
- }), /* @__PURE__ */ (0, U.jsxs)("div", {
- "data-junk-filters-frame": "",
- "data-filter-glass": "",
- "data-glass-pane": "",
- children: [/* @__PURE__ */ (0, U.jsx)("span", {
- ref: a,
- "data-view-glide": "",
- "aria-hidden": "true"
- }), /* @__PURE__ */ (0, U.jsxs)("nav", {
- ref: i,
- "data-junk-filters": "",
- "aria-label": "垃圾文件分类",
- onClick: u,
- onPointerLeave: c.leave,
- children: [
- Nw.map(([e, n, r]) => /* @__PURE__ */ (0, U.jsxs)("a", {
- href: Pw(e, s),
- "data-junk-kind-link": e,
- "aria-current": e === o ? "page" : void 0,
- onPointerEnter: c.hover,
- children: [
- /* @__PURE__ */ (0, U.jsx)(Lw, { name: r }),
- n,
- /* @__PURE__ */ (0, U.jsx)(Rw, {
- scope: e,
- count: t ? Aw(t, e) : 0
- })
- ]
- }, e || "all")),
- /* @__PURE__ */ (0, U.jsx)("i", {
- "data-junk-divider": "",
- "aria-hidden": "true"
- }),
- /* @__PURE__ */ (0, U.jsxs)("a", {
- href: l.href,
- "data-junk-view-link": l.view,
- "aria-current": s === "dismissed" ? "page" : void 0,
- onPointerEnter: s === "dismissed" ? void 0 : c.hover,
- children: [
- /* @__PURE__ */ (0, U.jsx)(Lw, { name: l.glyph }),
- l.label,
- /* @__PURE__ */ (0, U.jsx)(Rw, {
- scope: "dismissed",
- count: Number(t?.dismissed_total || 0)
- })
- ]
- })
- ]
- })]
- })]
- });
-}
-//#endregion
-//#region src/react/junk-queue/junk-queue-page.tsx
-var qae = jC("check"), Jae = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Yae(e) {
- let t = {
- kind: e.kind,
- view: e.view
- }, n = yw({
- queryKey: zae(t, e.revision),
- queryFn: ({ signal: e }) => Vae(t, e),
- placeholderData: (e, n) => n && Jae(n.queryKey, t) ? e : void 0
- });
- (0, B.useEffect)(() => {
- n.isFetching || e.settled?.(e.revision);
- }, [n.isFetching, e.revision]);
- let r = Xae(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 && h(r, "junk");
- }, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(Kae, {
- route: t,
- page: n.data,
- failed: n.isError && !n.data,
- onNavigate: a
- }), r) : null;
- return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [o, /* @__PURE__ */ (0, U.jsx)(Zae, {
- props: e,
- data: n.data,
- pending: i,
- error: n.data ? null : n.error,
- retry: () => void n.refetch()
- }, `${t.view}:${t.kind}`)] });
-}
-function Xae(e) {
- let [t, n] = (0, B.useState)(null);
- return (0, B.useLayoutEffect)(() => {
- if (!e) return;
- let t = e.ownerDocument.createElement("div");
- return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
- t.remove(), n(null);
- };
- }, [e]), t;
-}
-function Zae({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = Dw(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, U.jsxs)("div", {
- "data-junk-body": "",
- "data-grid-reveal": a.fading ? "" : void 0,
- children: [a.layer, (() => {
- if (n) return null;
- if (!t) return /* @__PURE__ */ (0, U.jsx)(Ow, {
- message: ce(r),
- onRetry: i
- });
- if (!l.length) {
- let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: qae,
- title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
- });
- }
- return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("div", {
- "data-media-grid": "",
- "data-junk-grid": "",
- "data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, U.jsx)(Uae, {
- item: t,
- view: e.view,
- selected: e.selected.has(t.id),
- selectMode: e.selectMode,
- helpers: e.helpers,
- actions: e.actions
- }, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, U.jsx)(Qae, { onMore: f }, s) : null] });
- })()]
- });
-}
-function Qae({ onMore: e }) {
- let t = (0, B.useRef)(null);
- return (0, B.useEffect)(() => {
- let n = t.current;
- if (!n || typeof IntersectionObserver > "u") return;
- let r = new IntersectionObserver((t) => {
- t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: "320px" });
- return r.observe(n), () => r.disconnect();
- }, [e]), /* @__PURE__ */ (0, U.jsx)("div", {
- ref: t,
- "data-load-more": "",
- onClick: e,
- dangerouslySetInnerHTML: { __html: f("继续载入中…") }
- });
-}
-//#endregion
//#region src/react/library-processing/library-processing.ts
-var zw = "/api/library-processing", Bw = ["library-processing"], Vw = (e) => HC(zw, e);
-async function Hw(e) {
+var Tw = "/api/library-processing", Ew = ["library-processing"], Dw = (e) => VC(Tw, e);
+async function Ow(e) {
await z.fetchQuery({
- queryKey: Bw,
- queryFn: () => Vw(e)
+ queryKey: Ew,
+ queryFn: () => Dw(e)
});
}
-var $ae = 2e3, eoe = 1e4, Uw = "连接中断,正在重新读取处理进度";
-function toe(e, t) {
- return e?.status === "running" ? $ae : t ? eoe : !1;
+var Lae = 2e3, Rae = 1e4, kw = "连接中断,正在重新读取处理进度";
+function zae(e, t) {
+ return e?.status === "running" ? Lae : t ? Rae : !1;
}
-var noe = {
+var Bae = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, Ww = {
+}, Aw = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function roe(e) {
- let t = Object.entries(e).filter(([e, t]) => Ww[e] && t > 0).map(([e, t]) => `${Ww[e]} ${t} 部`);
+function Vae(e) {
+ let t = Object.entries(e).filter(([e, t]) => Aw[e] && t > 0).map(([e, t]) => `${Aw[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Gw(e) {
- let t = noe[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function jw(e) {
+ let t = Bae[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 ioe(e) {
+function Hae(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -29359,21 +28816,21 @@ function ioe(e) {
log: e.issues_log || ""
} : null;
}
-var Kw = "peach.library-processing.announced", aoe = 120;
-function ooe(e, t, n) {
+var Mw = "peach.library-processing.announced", Uae = 120;
+function Wae(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < aoe;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Uae;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(Kw) === e.job_id) return;
- e.job_id && localStorage.setItem(Kw, e.job_id);
+ if (e.job_id && localStorage.getItem(Mw) === e.job_id) return;
+ e.job_id && localStorage.setItem(Mw, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var soe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+var 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,
@@ -29381,7 +28838,7 @@ var soe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), coe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Kae = ({ 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,
@@ -29389,7 +28846,7 @@ var soe = ({ 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" })), qw = ({ 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" })), Nw = ({ 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,
@@ -29397,7 +28854,7 @@ var soe = ({ 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" })), Jw = ({ 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" })), Pw = ({ 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,
@@ -29405,7 +28862,7 @@ var soe = ({ 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" })), Yw = ({ 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" })), Fw = ({ 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,
@@ -29413,7 +28870,7 @@ var soe = ({ 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" })), loe = ({ 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" })), qae = ({ 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,
@@ -29421,7 +28878,7 @@ var soe = ({ 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" })), Xw = ({ 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" })), Iw = ({ 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,
@@ -29429,7 +28886,7 @@ var soe = ({ 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" })), Zw = ({ 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" })), Lw = ({ 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,
@@ -29437,7 +28894,7 @@ var soe = ({ 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" })), uoe = ({ 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" })), Jae = ({ 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,
@@ -29445,7 +28902,7 @@ var soe = ({ 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" })), Qw = ({ 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" })), Rw = ({ 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,
@@ -29453,7 +28910,7 @@ var soe = ({ 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" })), $w = ({ 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" })), zw = ({ 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,
@@ -29461,7 +28918,7 @@ var soe = ({ 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" })), eT = ({ 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" })), Bw = ({ 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,
@@ -29469,7 +28926,7 @@ var soe = ({ 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" })), tT = ({ 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" })), Vw = ({ 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,
@@ -29477,7 +28934,7 @@ var soe = ({ 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" })), doe = ({ 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" })), 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,
@@ -29485,7 +28942,7 @@ var soe = ({ 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" })), nT = ({ 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" })), Hw = ({ 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,
@@ -29493,7 +28950,7 @@ var soe = ({ 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" })), rT = ({ 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" })), Uw = ({ 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,
@@ -29501,7 +28958,7 @@ var soe = ({ 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" })), foe = ({ 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" })), 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,
@@ -29509,7 +28966,7 @@ var soe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Zae = ({ 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,
@@ -29517,7 +28974,7 @@ var soe = ({ 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" })), iT = ({ 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" })), Ww = ({ 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,
@@ -29525,7 +28982,7 @@ var soe = ({ 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" })), aT = ({ 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" })), Gw = ({ 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,
@@ -29533,7 +28990,7 @@ var soe = ({ 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" })), moe = ({ 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" })), Qae = ({ 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,
@@ -29541,7 +28998,7 @@ var soe = ({ 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" })), hoe = ({ 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" })), $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,
@@ -29549,7 +29006,7 @@ var soe = ({ 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" })), goe = ({ 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" })), eoe = ({ 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,
@@ -29557,7 +29014,7 @@ var soe = ({ 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" })), _oe = ({ 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" })), toe = ({ 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,
@@ -29565,7 +29022,7 @@ var soe = ({ 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" })), voe = ({ 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" })), noe = ({ 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,
@@ -29573,7 +29030,7 @@ var soe = ({ 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" })), yoe = ({ 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" })), roe = ({ 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,
@@ -29581,7 +29038,7 @@ var soe = ({ 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" })), oT = ({ 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" })), Kw = ({ 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,
@@ -29589,7 +29046,7 @@ var soe = ({ 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" })), sT = ({ 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" })), qw = ({ 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,
@@ -29597,7 +29054,7 @@ var soe = ({ 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" })), cT = ({ 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" })), Jw = ({ 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,
@@ -29605,7 +29062,7 @@ var soe = ({ 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" })), lT = ({ 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" })), Yw = ({ 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,
@@ -29613,7 +29070,7 @@ var soe = ({ 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" })), boe = ({ 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" })), ioe = ({ 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,
@@ -29621,7 +29078,7 @@ var soe = ({ 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" })), xoe = ({ 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" })), aoe = ({ 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,
@@ -29629,7 +29086,7 @@ var soe = ({ 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" })), Soe = ({ 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" })), ooe = ({ 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,
@@ -29637,7 +29094,7 @@ var soe = ({ 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" })), Coe = ({ 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" })), soe = ({ 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,
@@ -29645,7 +29102,7 @@ var soe = ({ 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" })), uT = ({ 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" })), Xw = ({ 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,
@@ -29653,7 +29110,7 @@ var soe = ({ 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" })), Zw = ({ 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,
@@ -29661,7 +29118,7 @@ var soe = ({ 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" })), woe = ({ 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" })), coe = ({ 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,
@@ -29669,7 +29126,7 @@ var soe = ({ 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" })), Toe = ({ 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" })), loe = ({ 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,
@@ -29680,8 +29137,8 @@ var soe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
}, 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" }));
//#endregion
//#region src/react/components/menu-dialog.tsx
-function fT(e) {
- let t = CC("hover");
+function Qw(e) {
+ let t = SC("hover");
return /* @__PURE__ */ (0, U.jsx)(ph, {
...e,
ref: t
@@ -29689,7 +29146,7 @@ function fT(e) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var pT = dr({
+var $w = dr({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -29748,40 +29205,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, U.jsxs)("button", {
ref: c,
type: s,
- className: ur(pT.base, pT.size[t], pT.variant[e], n && pT.iconOnlySize[t], o),
+ className: ur($w.base, $w.size[t], $w.variant[e], n && $w.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, U.jsx)(r, {
- className: pT.icon[t],
+ className: $w.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, U.jsx)("span", {
- className: pT.label[t],
+ className: $w.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, U.jsx)(i, {
- className: pT.icon[t],
+ className: $w.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function mT({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function eT({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, U.jsxs)("a", {
ref: s,
- className: ur(pT.base, pT.size[t], pT.variant[e], n && pT.iconOnlySize[t], o),
+ className: ur($w.base, $w.size[t], $w.variant[e], n && $w.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, U.jsx)(r, {
- className: pT.icon[t],
+ className: $w.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, U.jsx)("span", {
- className: pT.label[t],
+ className: $w.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, U.jsx)(i, {
- className: pT.icon[t],
+ className: $w.icon[t],
"aria-hidden": !0
}) : null
]
@@ -29789,7 +29246,7 @@ function mT({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var hT = dr({
+var tT = dr({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -29813,15 +29270,15 @@ var hT = dr({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function gT({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = ur(hT.base, hT.size[t], hT.variant[e], a), l = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
+function nT({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = ur(tT.base, tT.size[t], tT.variant[e], a), l = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
n ? /* @__PURE__ */ (0, U.jsx)(n, {
- className: hT.icon[t],
+ className: tT.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, U.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, U.jsx)(r, {
- className: hT.icon[t],
+ className: tT.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -29848,7 +29305,7 @@ function gT({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var _T = [
+var rT = [
"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",
@@ -29856,91 +29313,98 @@ var _T = [
"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(" "), Eoe = "w-[266px]", Doe = "flex w-full flex-col gap-1 outline-none", vT = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), yT = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", Ooe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", koe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Aoe = "min-w-0", joe = {
+].join(" "), uoe = "w-[266px]", doe = "flex w-full flex-col gap-1 outline-none", iT = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), aT = "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 foe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", poe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", moe = "min-w-0", hoe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Moe = {
+}, goe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Noe = {
+}, _oe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Poe = {
+}, voe = {
none: "",
default: "p-5"
-}, Foe = "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", Ioe = "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 bT(e = {}) {
+}, 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 oT(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 [
- Aoe,
- joe[t],
- Moe[s],
- Poe[n],
- a ? Noe[a] : "",
- r ? Foe : "",
- i ? Ioe : "",
+ moe,
+ hoe[t],
+ goe[s],
+ voe[n],
+ a ? _oe[a] : "",
+ r ? yoe : "",
+ i ? boe : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/fieldset.tsx
-var Loe = bT({
+var xoe = oT({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), Roe = {
+}), Soe = {
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"
-}, zoe = {
+}, Coe = {
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"
-}, Boe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Voe = {
+}, woe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Toe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, xT = bT({
+}, Eoe = oT({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), ST = "border-t border-border-button-default p-4 first:border-t-0";
-function CT({ tone: e = "neutral", status: t, children: n }) {
+}), sT = "border-t border-border-button-default p-4 first:border-t-0";
+function cT({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
- className: `${Boe} ${Voe[e]}`,
+ className: `${woe} ${Toe[e]}`,
children: [t ? /* @__PURE__ */ (0, U.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 wT({ id: e, children: t }) {
+function lT({ id: e, children: t }) {
return /* @__PURE__ */ (0, U.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function TT({ id: e, gap: t = "none", children: n }) {
+function uT({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, U.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function ET({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function dT({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, U.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${Loe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${xoe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, U.jsx)("div", {
- className: Roe[e],
+ className: Soe[e],
children: a
}), i ? /* @__PURE__ */ (0, U.jsx)("footer", {
- className: zoe[e],
+ className: Coe[e],
children: i
}) : null]
});
@@ -29990,8 +29454,16 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
}
//#endregion
+//#region src/react/components/overlay-scrollbar.ts
+function fT() {
+ let e = (0, B.useRef)(null);
+ return (0, B.useEffect)(() => {
+ t(e.current);
+ }), e;
+}
+//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var DT = dr({
+var pT = dr({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -30012,21 +29484,21 @@ var DT = dr({
small: "size-4 shrink-0"
}
});
-function OT({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function mT({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, U.jsx)("button", {
ref: i,
type: r,
- className: ur(DT.base, DT.size[t], n),
+ className: ur(pT.base, pT.size[t], n),
...a,
children: /* @__PURE__ */ (0, U.jsx)(e, {
- className: DT.icon[t],
+ className: pT.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/settings/use-action.ts
-function kT(e = "") {
+function hT(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) {
@@ -30058,7 +29530,7 @@ function X(e) {
}
//#endregion
//#region src/react/components/path-line.tsx
-function Hoe({ className: e }) {
+function Doe({ className: e }) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -30071,8 +29543,8 @@ function Hoe({ className: e }) {
children: /* @__PURE__ */ (0, U.jsx)("use", { href: "#i-folder-open" })
});
}
-var Uoe = "打开文件管理器失败,请重试";
-function AT({ path: e, prefix: t, className: n, onRevealed: r }) {
+var Ooe = "打开文件管理器失败,请重试";
+function gT({ 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;
@@ -30083,7 +29555,7 @@ function AT({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof BC ? e.message : Uoe);
+ c.current && s(e instanceof zC ? e.message : Ooe);
} finally {
c.current && a(!1);
}
@@ -30096,8 +29568,8 @@ function AT({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, U.jsxs)("p", {
className: ur("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, U.jsx)(OT, {
- icon: Hoe,
+ }), /* @__PURE__ */ (0, U.jsx)(mT, {
+ icon: Doe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -30112,7 +29584,7 @@ function AT({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function jT({ label: e, inline: t = !1 }) {
+function _T({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, U.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -30134,21 +29606,21 @@ function jT({ label: e, inline: t = !1 }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var MT = 100, Woe = .4;
-function NT({ 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 * MT;
+var vT = 100, koe = .4;
+function yT({ 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 * vT;
return /* @__PURE__ */ (0, U.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${MT} 1`,
+ viewBox: `0 0 ${vT} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, U.jsx)("rect", {
- width: MT,
+ width: vT,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -30159,7 +29631,7 @@ function NT({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, U.jsx)("rect", {
x: a(e),
- width: Woe,
+ width: koe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -30168,39 +29640,39 @@ function NT({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function PT({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function bT({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : bT({
+ className: r ? "flex flex-col gap-1.5" : oT({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(NT, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(yT, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, U.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, U.jsx)(jT, { label: e })
+ })] }) : /* @__PURE__ */ (0, U.jsx)(_T, { label: e })
});
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function FT({ className: e, children: t }) {
+function xT({ className: e, children: t }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
className: ur("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function IT({ className: e, children: t }) {
+function ST({ className: e, children: t }) {
return /* @__PURE__ */ (0, U.jsx)("p", {
className: ur("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function LT({ label: e, description: t, children: n }) {
+function CT({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: ur("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, U.jsxs)("div", {
@@ -30217,14 +29689,14 @@ function LT({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function RT({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function wT({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [n ? /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, U.jsx)(IT, { children: e })
+ children: /* @__PURE__ */ (0, U.jsx)(ST, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, U.jsx)(IT, { children: e }), /* @__PURE__ */ (0, U.jsx)(FT, { children: i })] });
+ }) : /* @__PURE__ */ (0, U.jsx)(ST, { children: e }), /* @__PURE__ */ (0, U.jsx)(xT, { children: i })] });
return r ? /* @__PURE__ */ (0, U.jsx)("form", {
id: t,
"aria-label": e,
@@ -30239,13 +29711,13 @@ function RT({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function zT({ children: e }) {
+function TT({ children: e }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function BT({ divided: e = !1, children: t }) {
+function ET({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -30254,7 +29726,7 @@ function BT({ divided: e = !1, children: t }) {
children: t
});
}
-function VT({ status: e, children: t }) {
+function DT({ status: e, children: t }) {
return /* @__PURE__ */ (0, U.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, U.jsx)("div", {
@@ -30263,34 +29735,34 @@ function VT({ status: e, children: t }) {
}) : null, t]
});
}
-function HT({ role: e, children: t }) {
+function OT({ role: e, children: t }) {
return /* @__PURE__ */ (0, U.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function UT({ children: e }) {
+function kT({ children: e }) {
return /* @__PURE__ */ (0, U.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function WT({ children: e }) {
+function AT({ children: e }) {
return /* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function GT({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, U.jsx)(gT, {
+function jT({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, U.jsx)(nT, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: nT,
+ trailingIcon: Hw,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, U.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -30298,13 +29770,13 @@ function GT({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function KT({ children: e }) {
+function MT({ children: e }) {
return /* @__PURE__ */ (0, U.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function qT({ term: e, children: t }) {
+function NT({ term: e, children: t }) {
return /* @__PURE__ */ (0, U.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, U.jsx)("dt", {
@@ -30316,7 +29788,7 @@ function qT({ term: e, children: t }) {
})]
});
}
-function JT({ summary: e, defaultOpen: t = !1, children: n }) {
+function PT({ 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, U.jsxs)("details", {
ref: (e) => {
@@ -30329,7 +29801,7 @@ function JT({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (S(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, U.jsx)(Yw, {
+ children: [/* @__PURE__ */ (0, U.jsx)(Fw, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -30344,7 +29816,7 @@ function JT({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function Goe({ name: e }) {
+function Aoe({ name: e }) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -30353,29 +29825,29 @@ function Goe({ name: e }) {
children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
});
}
-function YT({ mark: e }) {
+function FT({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, U.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, U.jsx)(Goe, { name: e });
+ }) : /* @__PURE__ */ (0, U.jsx)(Aoe, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function XT({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = yw({
- queryKey: Bw,
- queryFn: ({ signal: e }) => Vw(e),
- refetchInterval: (e) => toe(e.state.data, r)
+function IT({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = vw({
+ queryKey: Ew,
+ queryFn: ({ signal: e }) => Dw(e),
+ refetchInterval: (e) => zae(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") && ooe(c, e, r);
+ r && o(c), (r || t === "notice") && Wae(c, e, r);
}, [
c,
t,
@@ -30388,29 +29860,29 @@ function XT({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var Koe = [
+var joe = [
{
label: "扫描并补全资料",
- icon: eT,
+ icon: Bw,
command: {}
},
{
label: "只扫描",
- icon: iT,
+ icon: Ww,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: poe,
+ icon: Zae,
command: { stage: "collect" }
}
-], qoe = ur(vT, yT, "text-body-2-medium"), Joe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Yoe = (e) => {
+], Moe = ur(iT, aT, "text-body-2-medium"), Noe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Poe = (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(",")}。`;
-}, Xoe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Yoe(e);
-function Zoe({ busy: e, onRun: t }) {
+}, Foe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Poe(e);
+function Ioe({ busy: e, onRun: t }) {
let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -30419,14 +29891,14 @@ function Zoe({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, U.jsx)(J, {
- leadingIcon: eT,
+ leadingIcon: Bw,
onClick: () => a({}),
...X(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, U.jsx)(J, {
ref: n,
iconOnly: !0,
- leadingIcon: qw,
+ leadingIcon: Nw,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -30441,13 +29913,13 @@ function Zoe({ busy: e, onRun: t }) {
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: _T,
- children: /* @__PURE__ */ (0, U.jsx)(fT, {
+ className: rT,
+ children: /* @__PURE__ */ (0, U.jsx)(Qw, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: Koe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, U.jsxs)("button", {
+ children: joe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
- className: qoe,
+ className: Moe,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, U.jsx)(t, {
"aria-hidden": !0,
@@ -30457,8 +29929,8 @@ function Zoe({ busy: e, onRun: t }) {
})
})] });
}
-function Qoe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = ioe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = roe(e.notes || {}), c = Iw();
+function Loe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Hae(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Vae(e.notes || {}), c = fT();
return /* @__PURE__ */ (0, U.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -30466,7 +29938,7 @@ function Qoe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "warning",
title: "处理较慢",
- children: Joe
+ children: Noe
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
@@ -30478,7 +29950,7 @@ function Qoe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, U.jsxs)(JT, {
+ children: /* @__PURE__ */ (0, U.jsxs)(PT, {
summary: a.label,
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "relative",
@@ -30509,7 +29981,7 @@ function Qoe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, U.jsx)(AT, {
+ children: /* @__PURE__ */ (0, U.jsx)(gT, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -30523,13 +29995,13 @@ function Qoe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "success",
title: "处理完成",
- children: Xoe(n)
+ children: Foe(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, U.jsx)(AT, {
+ children: /* @__PURE__ */ (0, U.jsx)(gT, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -30541,38 +30013,38 @@ function Qoe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function ZT(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = XT(e), o = Sw({
- mutationFn: (e) => q(zw, e),
+function LT(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = IT(e), o = xw({
+ mutationFn: (e) => q(Tw, e),
onSuccess: (e) => {
- a(), z.setQueryData(Bw, e), z.invalidateQueries({ queryKey: Bw });
+ a(), z.setQueryData(Ew, e), z.invalidateQueries({ queryKey: Ew });
}
});
(0, B.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? Uw : K(r.error) : "", l = o.isPending || s.status === "running", u = Gw(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? kw : K(r.error) : "", l = o.isPending || s.status === "running", u = jw(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, U.jsx)(ET, {
+ children: [/* @__PURE__ */ (0, U.jsx)(dT, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- /* @__PURE__ */ (0, U.jsx)(gT, {
+ /* @__PURE__ */ (0, U.jsx)(nT, {
href: "/scraping",
size: "small",
- trailingIcon: Jw,
+ trailingIcon: Pw,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, U.jsx)(gT, {
+ s.candidates ? /* @__PURE__ */ (0, U.jsx)(nT, {
href: "/review",
size: "small",
- trailingIcon: Jw,
+ trailingIcon: Pw,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, U.jsx)(Zoe, {
+ /* @__PURE__ */ (0, U.jsx)(Ioe, {
busy: l,
onRun: d
})
@@ -30580,12 +30052,12 @@ function ZT(e) {
children: /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(TT, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, U.jsx)(uT, { children: "扫描与采集" }),
/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Ooe
+ children: foe
}),
- s.status === "running" ? /* @__PURE__ */ (0, U.jsx)(PT, {
+ s.status === "running" ? /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
label: u,
value: s.checked,
@@ -30593,7 +30065,7 @@ function ZT(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, U.jsx)(Qoe, {
+ }), /* @__PURE__ */ (0, U.jsx)(Loe, {
state: s,
problem: c,
settled: i,
@@ -30609,12 +30081,12 @@ function ZT(e) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var QT = "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", $oe = {
- gray: `${QT} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${QT} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${QT} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var RT = "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", Roe = {
+ gray: `${RT} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${RT} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${RT} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function ese({ value: e, max: t }) {
+function zoe({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, U.jsxs)("svg", {
role: "progressbar",
@@ -30642,16 +30114,16 @@ function ese({ value: e, max: t }) {
})]
});
}
-function tse(e) {
- let { job: t } = XT(e), n = t.data, r = t.isError ? n ? Uw : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function Boe(e) {
+ let { job: t } = IT(e), n = t.data, r = t.isError ? n ? kw : K(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 ? "扫描与资料采集未完成" : Gw(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? goe : doe;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : jw(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? eoe : Yae;
return /* @__PURE__ */ (0, U.jsxs)("aside", {
role: a ? "alert" : "status",
- className: $oe[s],
+ className: Roe[s],
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, U.jsx)(ese, {
+ children: [o && l ? /* @__PURE__ */ (0, U.jsx)(zoe, {
value: c,
max: l
}) : /* @__PURE__ */ (0, U.jsx)(d, {
@@ -30661,60 +30133,60 @@ function tse(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, U.jsx)(gT, {
+ }), /* @__PURE__ */ (0, U.jsx)(nT, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: Jw,
+ trailingIcon: Pw,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
-var $T = (0, B.createContext)({});
+var zT = (0, B.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function eE(e) {
+function BT(e) {
let t = (0, B.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var tE = typeof window < "u" ? B.useLayoutEffect : B.useEffect, nE = /* @__PURE__ */ (0, B.createContext)(null), rE = (0, B.createContext)({
+var VT = typeof window < "u" ? B.useLayoutEffect : B.useEffect, HT = /* @__PURE__ */ (0, B.createContext)(null), UT = (0, B.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function iE(e, t) {
+function WT(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function nse(...e) {
+function Voe(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = iE(e, t);
+ let r = WT(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : iE(e[t], null);
+ typeof n == "function" ? n() : WT(e[t], null);
}
};
};
}
-function rse(...e) {
- return B.useCallback(nse(...e), e);
+function Hoe(...e) {
+ return B.useCallback(Voe(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var ise = class extends B.Component {
+var Uoe = class extends B.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
- if (Wb(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Wb(e) && e.offsetWidth || 0, r = Wb(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ if (Ub(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Ub(e) && e.offsetWidth || 0, r = Ub(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
}
return null;
@@ -30724,7 +30196,7 @@ var ise = class extends B.Component {
return this.props.children;
}
};
-function ase({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+function Woe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
let o = (0, B.useId)(), s = (0, B.useRef)(null), c = (0, B.useRef)({
width: 0,
height: 0,
@@ -30733,7 +30205,7 @@ function ase({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, B.useContext)(rE), u = rse(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ }), { nonce: l } = (0, B.useContext)(UT), u = Hoe(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
return (0, B.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
@@ -30753,7 +30225,7 @@ function ase({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
`), () => {
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
};
- }, [t]), (0, U.jsx)(ise, {
+ }, [t]), (0, U.jsx)(Uoe, {
isPresent: t,
childRef: s,
sizeRef: c,
@@ -30763,9 +30235,9 @@ function ase({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var ose = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = eE(sse), d = (0, B.useId)(), f = (0, B.useRef)(n), p = (0, B.useRef)(r);
- tE(() => {
+var Goe = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = BT(Koe), d = (0, B.useId)(), f = (0, B.useRef)(n), p = (0, B.useRef)(r);
+ VT(() => {
f.current = n, p.current = r;
});
let m = !0, h = (0, B.useMemo)(() => (m = !1, {
@@ -30790,25 +30262,25 @@ var ose = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), B.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, U.jsx)(ase, {
+ }, [n]), e = (0, U.jsx)(Woe, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
anchorY: c,
root: l,
children: e
- }), (0, U.jsx)(nE.Provider, {
+ }), (0, U.jsx)(HT.Provider, {
value: h,
children: e
});
};
-function sse() {
+function Koe() {
return /* @__PURE__ */ new Map();
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function aE(e = !0) {
- let t = (0, B.useContext)(nE);
+function GT(e = !0) {
+ let t = (0, B.useContext)(HT);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, B.useId)();
(0, B.useEffect)(() => {
@@ -30821,16 +30293,16 @@ function aE(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function cse() {
- return lse((0, B.useContext)(nE));
+function qoe() {
+ return Joe((0, B.useContext)(HT));
}
-function lse(e) {
+function Joe(e) {
return e === null || e.isPresent;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var oE = (e) => e.key || "";
-function sE(e) {
+var KT = (e) => e.key || "";
+function qT(e) {
let t = [];
return B.Children.forEach(e, (e) => {
(0, B.isValidElement)(e) && t.push(e);
@@ -30838,12 +30310,12 @@ function sE(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var use = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = aE(o), f = (0, B.useMemo)(() => sE(e), [e]), p = o && !u ? [] : f.map(oE), m = (0, B.useRef)(!0), h = (0, B.useRef)(f), g = eE(() => /* @__PURE__ */ new Map()), _ = (0, B.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, B.useState)(f), [b, x] = (0, B.useState)(f);
- tE(() => {
+var Yoe = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = GT(o), f = (0, B.useMemo)(() => qT(e), [e]), p = o && !u ? [] : f.map(KT), m = (0, B.useRef)(!0), h = (0, B.useRef)(f), g = BT(() => /* @__PURE__ */ new Map()), _ = (0, B.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, B.useState)(f), [b, x] = (0, B.useState)(f);
+ VT(() => {
m.current = !1, h.current = f;
for (let e = 0; e < b.length; e++) {
- let t = oE(b[e]);
+ let t = KT(b[e]);
p.includes(t) ? (g.delete(t), _.current.delete(t)) : g.get(t) !== !0 && g.set(t, !1);
}
}, [
@@ -30855,15 +30327,15 @@ var use = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenc
if (f !== v) {
let e = [...f];
for (let t = 0; t < b.length; t++) {
- let n = b[t], r = oE(n);
+ let n = b[t], r = KT(n);
p.includes(r) || (e.splice(t, 0, n), S.push(n));
}
- return a === "wait" && S.length && (e = S), x(sE(e)), y(f), null;
+ return a === "wait" && S.length && (e = S), x(qT(e)), y(f), null;
}
- let { forceRender: C } = (0, B.useContext)($T);
+ let { forceRender: C } = (0, B.useContext)(zT);
return (0, U.jsx)(U.Fragment, { children: b.map((e) => {
- let v = oE(e), y = o && !u ? !1 : f === b || p.includes(v);
- return (0, U.jsx)(ose, {
+ let v = KT(e), y = o && !u ? !1 : f === b || p.includes(v);
+ return (0, U.jsx)(Goe, {
isPresent: y,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -30884,7 +30356,7 @@ var use = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenc
children: e
}, v);
}) });
-}, cE = (0, B.createContext)({ strict: !1 }), lE = {
+}, JT = (0, B.createContext)({ strict: !1 }), YT = {
animation: [
"animate",
"variants",
@@ -30921,98 +30393,98 @@ var use = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenc
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, uE = !1;
-function dse() {
- if (uE) return;
+}, XT = !1;
+function Xoe() {
+ if (XT) return;
let e = {};
- for (let t in lE) e[t] = { isEnabled: (e) => lE[t].some((t) => !!e[t]) };
- Ox(e), uE = !0;
+ for (let t in YT) e[t] = { isEnabled: (e) => YT[t].some((t) => !!e[t]) };
+ Dx(e), XT = !0;
}
-function dE() {
- return dse(), eie();
+function ZT() {
+ return Xoe(), tie();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function fse(e) {
- let t = dE();
+function Zoe(e) {
+ let t = ZT();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Ox(t);
+ Dx(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var pse = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function fE(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || pse.has(e);
+var Qoe = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function QT(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Qoe.has(e);
}
//#endregion
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
-var mse = /* @__PURE__ */ ht({ default: () => pE }), pE, hse = pt((() => {
- throw pE = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
-})), mE = (e) => !fE(e);
-function hE(e) {
- typeof e == "function" && (mE = (t) => t.startsWith("on") ? !fE(t) : e(t));
+var $oe = /* @__PURE__ */ ht({ default: () => $T }), $T, ese = pt((() => {
+ throw $T = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
+})), eE = (e) => !QT(e);
+function tE(e) {
+ typeof e == "function" && (eE = (t) => t.startsWith("on") ? !QT(t) : e(t));
}
try {
- hE((hse(), yt(mse)).default);
+ tE((ese(), yt($oe)).default);
} catch {}
-function gse(e, t, n) {
+function tse(e, t, n) {
let r = {};
- for (let i in e) (i !== "values" || typeof e.values != "object") && (Tb(e[i]) || (mE(i) || n === !0 && fE(i) || !t && !fE(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
+ for (let i in e) (i !== "values" || typeof e.values != "object") && (wb(e[i]) || (eE(i) || n === !0 && QT(i) || !t && !QT(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
return r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function _se({ children: e, isValidProp: t, ...n }) {
- t && hE(t);
- let r = (0, B.useContext)(rE);
+function nse({ children: e, isValidProp: t, ...n }) {
+ t && tE(t);
+ let r = (0, B.useContext)(UT);
n = {
...r,
...n
- }, n.transition = gb(n.transition, r.transition), n.isStatic = eE(() => n.isStatic);
+ }, n.transition = hb(n.transition, r.transition), n.isStatic = BT(() => n.isStatic);
let i = (0, B.useMemo)(() => n, [
JSON.stringify(n.transition),
n.transformPagePoint,
n.reducedMotion,
n.skipAnimations
]);
- return (0, U.jsx)(rE.Provider, {
+ return (0, U.jsx)(UT.Provider, {
value: i,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var gE = /* @__PURE__ */ (0, B.createContext)({});
+var nE = /* @__PURE__ */ (0, B.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function vse(e, t) {
- if (xx(e)) {
+function rse(e, t) {
+ if (bx(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || vx(t) ? t : void 0,
- animate: vx(n) ? n : void 0
+ initial: t === !1 || _x(t) ? t : void 0,
+ animate: _x(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function yse(e) {
- let { initial: t, animate: n } = vse(e, (0, B.useContext)(gE));
+function ise(e) {
+ let { initial: t, animate: n } = rse(e, (0, B.useContext)(nE));
return (0, B.useMemo)(() => ({
initial: t,
animate: n
- }), [_E(t), _E(n)]);
+ }), [rE(t), rE(n)]);
}
-function _E(e) {
+function rE(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var vE = () => ({
+var iE = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -31020,42 +30492,42 @@ var vE = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function yE(e, t, n) {
- for (let r in t) !Tb(t[r]) && !eS(r, n) && (e[r] = t[r]);
+function aE(e, t, n) {
+ for (let r in t) !wb(t[r]) && !$x(r, n) && (e[r] = t[r]);
}
-function bse({ transformTemplate: e }, t) {
+function ase({ transformTemplate: e }, t) {
return (0, B.useMemo)(() => {
- let n = vE();
- return Jx(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = iE();
+ return qx(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function xse(e, t) {
+function ose(e, t) {
let n = e.style || {}, r = {};
- return yE(r, n, e), Object.assign(r, bse(e, t)), r;
+ return aE(r, n, e), Object.assign(r, ase(e, t)), r;
}
-function Sse(e, t) {
- let n = {}, r = xse(e, t);
+function sse(e, t) {
+ let n = {}, r = ose(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var bE = () => ({
- ...vE(),
+var oE = () => ({
+ ...iE(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function Cse(e, t, n, r) {
+function cse(e, t, n, r) {
let i = (0, B.useMemo)(() => {
- let n = bE();
- return cS(n, t, uS(r), e.transformTemplate, e.style), {
+ let n = oE();
+ return sS(n, t, lS(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- yE(t, e.style, e), i.style = {
+ aE(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -31064,7 +30536,7 @@ function Cse(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var wse = [
+var lse = [
"animate",
"circle",
"defs",
@@ -31093,17 +30565,17 @@ var wse = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function xE(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(wse.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function sE(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(lse.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function Tse(e, t, n, { latestValues: r }, i, a = !1, o) {
- let s = (o ?? xE(e) ? Cse : Sse)(t, r, i, e), c = gse(t, typeof e == "string", a), l = e === B.Fragment ? {} : {
+function use(e, t, n, { latestValues: r }, i, a = !1, o) {
+ let s = (o ?? sE(e) ? cse : sse)(t, r, i, e), c = tse(t, typeof e == "string", a), l = e === B.Fragment ? {} : {
...c,
...s,
ref: n
- }, { children: u } = t, d = (0, B.useMemo)(() => Tb(u) ? u.get() : u, [u]);
+ }, { children: u } = t, d = (0, B.useMemo)(() => wb(u) ? u.get() : u, [u]);
return (0, B.createElement)(e, {
...l,
children: d
@@ -31111,24 +30583,24 @@ function Tse(e, t, n, { latestValues: r }, i, a = !1, o) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function Ese({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function dse({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: Dse(n, r, i, e),
+ latestValues: fse(n, r, i, e),
renderState: t()
};
}
-function Dse(e, t, n, r) {
+function fse(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = iC(a[e]);
- let { initial: o, animate: s } = e, c = xx(e), l = Sx(e);
+ for (let e in a) i[e] = rC(a[e]);
+ let { initial: o, animate: s } = e, c = bx(e), l = xx(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !_x(d)) {
+ if (d && typeof d != "boolean" && !gx(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = xb(e, t[n]);
+ let r = bb(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -31145,19 +30617,19 @@ function Dse(e, t, n, r) {
}
return i;
}
-var SE = (e) => (t, n) => {
- let r = (0, B.useContext)(gE), i = (0, B.useContext)(nE), a = () => Ese(e, t, r, i);
- return n ? a() : eE(a);
-}, Ose = /*@__PURE__*/ SE({
- scrapeMotionValuesFromProps: tS,
- createRenderState: vE
-}), kse = /*@__PURE__*/ SE({
- scrapeMotionValuesFromProps: fS,
- createRenderState: bE
-}), Ase = Symbol.for("motionComponentSymbol");
+var cE = (e) => (t, n) => {
+ let r = (0, B.useContext)(nE), i = (0, B.useContext)(HT), a = () => dse(e, t, r, i);
+ return n ? a() : BT(a);
+}, pse = /*@__PURE__*/ cE({
+ scrapeMotionValuesFromProps: eS,
+ createRenderState: iE
+}), mse = /*@__PURE__*/ cE({
+ scrapeMotionValuesFromProps: dS,
+ createRenderState: oE
+}), hse = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function jse(e, t, n) {
+function gse(e, t, n) {
let r = (0, B.useRef)(n);
(0, B.useInsertionEffect)(() => {
r.current = n;
@@ -31176,16 +30648,16 @@ function jse(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var CE = (0, B.createContext)({});
+var lE = (0, B.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function wE(e) {
+function uE(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Mse(e, t, n, r, i, a) {
- let { visualElement: o } = (0, B.useContext)(gE), s = (0, B.useContext)(cE), c = (0, B.useContext)(nE), l = (0, B.useContext)(rE), u = l.reducedMotion, d = l.skipAnimations, f = (0, B.useRef)(null), p = (0, B.useRef)(!1);
+function _se(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, B.useContext)(nE), s = (0, B.useContext)(JT), c = (0, B.useContext)(HT), l = (0, B.useContext)(UT), u = l.reducedMotion, d = l.skipAnimations, f = (0, B.useRef)(null), p = (0, B.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -31196,14 +30668,14 @@ function Mse(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, B.useContext)(CE);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && Nse(f.current, n, i, h);
+ let m = f.current, h = (0, B.useContext)(lE);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && vse(f.current, n, i, h);
let g = (0, B.useRef)(!1);
(0, B.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[Ob], v = (0, B.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
- return tE(() => {
+ let _ = n[Db], v = (0, B.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ return VT(() => {
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
}), (0, B.useEffect)(() => {
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
@@ -31211,12 +30683,12 @@ function Mse(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function Nse(e, t, n, r) {
+function vse(e, t, n, r) {
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : TE(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : dE(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && wE(s),
+ alwaysMeasureLayout: !!o || s && uE(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -31226,46 +30698,46 @@ function Nse(e, t, n, r) {
layoutAnchor: u
});
}
-function TE(e) {
- if (e) return e.options.allowProjection === !1 ? TE(e.parent) : e.projection;
+function dE(e) {
+ if (e) return e.options.allowProjection === !1 ? dE(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function EE(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && fse(r);
- let a = n ? n === "svg" : xE(e), o = a ? kse : Ose;
+function fE(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Zoe(r);
+ let a = n ? n === "svg" : sE(e), o = a ? mse : pse;
function s(n, s) {
let c, l = {
- ...(0, B.useContext)(rE),
+ ...(0, B.useContext)(UT),
...n,
- layoutId: Pse(n)
- }, { isStatic: u } = l, d = yse(n), f = o(n, u);
+ layoutId: yse(n)
+ }, { isStatic: u } = l, d = ise(n), f = o(n, u);
if (!u && typeof window < "u") {
- Fse(l, r);
- let t = Ise(l);
- c = t.MeasureLayout, d.visualElement = Mse(e, f, l, i, t.ProjectionNode, a);
+ bse(l, r);
+ let t = xse(l);
+ c = t.MeasureLayout, d.visualElement = _se(e, f, l, i, t.ProjectionNode, a);
}
- return (0, U.jsxs)(gE.Provider, {
+ return (0, U.jsxs)(nE.Provider, {
value: d,
children: [c && d.visualElement ? (0, U.jsx)(c, {
visualElement: d.visualElement,
...l
- }) : null, Tse(e, n, jse(f, d.visualElement, s), f, u, t, a)]
+ }) : null, use(e, n, gse(f, d.visualElement, s), f, u, t, a)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, B.forwardRef)(s);
- return c[Ase] = e, c;
+ return c[hse] = e, c;
}
-function Pse({ layoutId: e }) {
- let t = (0, B.useContext)($T).id;
+function yse({ layoutId: e }) {
+ let t = (0, B.useContext)(zT).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Fse(e, t) {
- (0, B.useContext)(cE).strict;
+function bse(e, t) {
+ (0, B.useContext)(JT).strict;
}
-function Ise(e) {
- let { drag: t, layout: n } = dE();
+function xse(e) {
+ let { drag: t, layout: n } = ZT();
if (!t && !n) return {};
let r = {
...t,
@@ -31278,20 +30750,20 @@ function Ise(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Lse(e, t) {
- if (typeof Proxy > "u") return EE;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => EE(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, EE(a, void 0, e, t)), n.get(a)) });
+function Sse(e, t) {
+ if (typeof Proxy > "u") return fE;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => fE(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, fE(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Rse = (e, t) => t.isSVG ?? xE(e) ? new pS(t) : new rS(t, { allowProjection: e !== B.Fragment }), zse = class extends Ax {
+var Cse = (e, t) => t.isSVG ?? sE(e) ? new fS(t) : new nS(t, { allowProjection: e !== B.Fragment }), wse = class extends kx {
constructor(e) {
- super(e), e.animationState ||= bS(e);
+ super(e), e.animationState ||= yS(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- _x(e) && (this.unmountControls = e.subscribe(this.node));
+ gx(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -31303,11 +30775,11 @@ var Rse = (e, t) => t.isSVG ?? xE(e) ? new pS(t) : new rS(t, { allowProjection:
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Bse = 0, Vse = {
- animation: { Feature: zse },
- exit: { Feature: class extends Ax {
+}, Tse = 0, Ese = {
+ animation: { Feature: wse },
+ exit: { Feature: class extends kx {
constructor() {
- super(...arguments), this.id = Bse++, this.isExitComplete = !1;
+ super(...arguments), this.id = Tse++, this.isExitComplete = !1;
}
update() {
if (!this.node.presenceContext) return;
@@ -31317,7 +30789,7 @@ var Rse = (e, t) => t.isSVG ?? xE(e) ? new pS(t) : new rS(t, { allowProjection:
if (this.isExitComplete) {
let { initial: e, custom: t } = this.node.getProps();
if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
- let n = Sb(this.node, e, t);
+ let n = xb(this.node, e, t);
if (n) {
let { transition: e, transitionEnd: t, ...r } = n;
for (let e in r) this.node.getValue(e)?.jump(r[e]);
@@ -31342,21 +30814,21 @@ var Rse = (e, t) => t.isSVG ?? xE(e) ? new pS(t) : new rS(t, { allowProjection:
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function DE(e) {
+function pE(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var Hse = (e) => (t) => Xb(t) && e(t, DE(t));
+var Dse = (e) => (t) => Yb(t) && e(t, pE(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function OE(e, t, n, r) {
- return rC(e, t, Hse(n), r);
+function mE(e, t, n, r) {
+ return nC(e, t, Dse(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var kE = ({ current: e }) => e ? e.ownerDocument.defaultView : null, AE = /*#__PURE__*/ new Set(["auto", "scroll"]), jE = class {
+var hE = ({ current: e }) => e ? e.ownerDocument.defaultView : null, gE = /*#__PURE__*/ new Set(["auto", "scroll"]), _E = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -31364,13 +30836,13 @@ var kE = ({ current: e }) => e ? e.ownerDocument.defaultView : null, AE = /*#__P
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = ME(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = PE(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Hie(e.offset, {
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = vE(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = bE(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Uie(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = xv;
+ let { point: r } = e, { timestamp: i } = bv;
this.history.push({
...r,
timestamp: i
@@ -31378,33 +30850,33 @@ var kE = ({ current: e }) => e ? e.ownerDocument.defaultView : null, AE = /*#__P
let { onStart: a, onMove: o } = this.handlers;
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = ME(t, this.transformPagePoint), yv.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = vE(t, this.transformPagePoint), vv.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = PE(e.type === "pointercancel" ? this.lastMoveEventInfo : ME(t, this.transformPagePoint), this.history);
+ let a = bE(e.type === "pointercancel" ? this.lastMoveEventInfo : vE(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !Xb(e)) return;
+ }, !Yb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = ME(DE(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = xv;
+ let s = vE(pE(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = bv;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, PE(s, this.history));
+ u && u(e, bE(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = X_(OE(this.contextWindow, "pointermove", this.handlePointerMove, d), OE(this.contextWindow, "pointerup", this.handlePointerUp, d), OE(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = Y_(mE(this.contextWindow, "pointermove", this.handlePointerMove, d), mE(this.contextWindow, "pointerup", this.handlePointerUp, d), mE(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (AE.has(e.overflowX) || AE.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (gE.has(e.overflowX) || gE.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -31429,51 +30901,51 @@ var kE = ({ current: e }) => e ? e.ownerDocument.defaultView : null, AE = /*#__P
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), yv.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), vv.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), bv(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), yv(this.updatePoint);
}
};
-function ME(e, t) {
+function vE(e, t) {
return t ? { point: t(e.point) } : e;
}
-function NE(e, t) {
+function yE(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function PE({ point: e }, t) {
+function bE({ point: e }, t) {
return {
point: e,
- delta: NE(e, FE(t)),
- offset: NE(e, Use(t)),
- velocity: Wse(t, .1)
+ delta: yE(e, xE(t)),
+ offset: yE(e, Ose(t)),
+ velocity: kse(t, .1)
};
}
-function Use(e) {
+function Ose(e) {
return e[0];
}
-function FE(e) {
+function xE(e) {
return e[e.length - 1];
}
-function Wse(e, t) {
+function kse(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = FE(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ $_(t)));) n--;
+ let n = e.length - 1, r = null, i = xE(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Q_(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ $_(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ ev(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Q_(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ $_(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -31486,86 +30958,86 @@ function Wse(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function Gse(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? ey(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? ey(n, e, r.max) : Math.min(e, n)), e;
+function Ase(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? $v(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? $v(n, e, r.max) : Math.min(e, n)), e;
}
-function IE(e, t, n) {
+function SE(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function Kse(e, { top: t, left: n, bottom: r, right: i }) {
+function jse(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: IE(e.x, n, i),
- y: IE(e.y, t, r)
+ x: SE(e.x, n, i),
+ y: SE(e.y, t, r)
};
}
-function LE(e, t) {
+function CE(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function qse(e, t) {
+function Mse(e, t) {
return {
- x: LE(e.x, t.x),
- y: LE(e.y, t.y)
+ x: CE(e.x, t.x),
+ y: CE(e.y, t.y)
};
}
-function Jse(e, t) {
- let n = .5, r = jS(e), i = jS(t);
- return i > r ? n = /* @__PURE__ */ Z_(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Z_(e.min, e.max - i, t.min)), U_(0, 1, n);
+function Nse(e, t) {
+ let n = .5, r = AS(e), i = AS(t);
+ return i > r ? n = /* @__PURE__ */ X_(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ X_(e.min, e.max - i, t.min)), H_(0, 1, n);
}
-function Yse(e, t) {
+function Pse(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var RE = .35;
-function Xse(e = RE) {
- return e === !1 ? e = 0 : e === !0 && (e = RE), {
- x: zE(e, "left", "right"),
- y: zE(e, "top", "bottom")
+var wE = .35;
+function Fse(e = wE) {
+ return e === !1 ? e = 0 : e === !0 && (e = wE), {
+ x: TE(e, "left", "right"),
+ y: TE(e, "top", "bottom")
};
}
-function zE(e, t, n) {
+function TE(e, t, n) {
return {
- min: BE(e, t),
- max: BE(e, n)
+ min: EE(e, t),
+ max: EE(e, n)
};
}
-function BE(e, t) {
+function EE(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
+var Ise = /* @__PURE__ */ new WeakMap(), Lse = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = gx(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = hx(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
let { presenceContext: r } = this.visualElement;
if (r && r.isPresent === !1) return;
let i = (e) => {
- t && this.snapToCursor(DE(e).point), this.stopAnimation();
+ t && this.snapToCursor(pE(e).point), this.stopAnimation();
}, a = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = kre(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), QS((e) => {
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Are(n), !this.openDragLock)) return;
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ZS((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (Vv.test(t)) {
+ if (Bv.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = jS(r) * (parseFloat(t) / 100));
+ r && (t = AS(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
- }), i && yv.update(() => i(e, t), !1, !0), Eb(this.visualElement, "transform");
+ }), i && vv.update(() => i(e, t), !1, !0), Tb(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -31574,10 +31046,10 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- this.currentDirection = ece(o), this.currentDirection !== null && i && i(this.currentDirection);
+ this.currentDirection = zse(o), this.currentDirection !== null && i && i(this.currentDirection);
return;
}
- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && yv.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && vv.update(() => a(e, t), !1, !0);
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -31587,7 +31059,7 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new jE(e, {
+ this.panSession = new _E(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -31597,7 +31069,7 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: kE(this.visualElement),
+ contextWindow: hE(this.visualElement),
element: this.visualElement.current
});
}
@@ -31607,7 +31079,7 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && yv.postRender(() => o(n, r));
+ o && vv.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -31621,32 +31093,32 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !HE(e, r, this.currentDirection)) return;
+ if (!n || !OE(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = Gse(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = Ase(a, this.constraints[e], this.elastic[e])), i.set(a);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && wE(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Kse(n.layoutBox, e) : !1, this.elastic = Xse(t), r !== this.constraints && !wE(e) && n && this.constraints && !this.hasMutatedConstraints && QS((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Yse(n.layoutBox[e], this.constraints[e]));
+ e && uE(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? jse(n.layoutBox, e) : !1, this.elastic = Fse(t), r !== this.constraints && !uE(e) && n && this.constraints && !this.hasMutatedConstraints && ZS((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Pse(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !wE(e)) return !1;
+ if (!e || !uE(e)) return !1;
let n = e.current, { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = aie(n, r.root, this.visualElement.getTransformPagePoint()), a = qse(r.layout.layoutBox, i);
+ let i = oie(n, r.root, this.visualElement.getTransformPagePoint()), a = Mse(r.layout.layoutBox, i);
if (t) {
- let e = t(nie(a));
- this.hasMutatedConstraints = !!e, e && (a = jx(e));
+ let e = t(rie(a));
+ this.hasMutatedConstraints = !!e, e && (a = Ax(e));
}
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = QS((o) => {
- if (!HE(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = ZS((o) => {
+ if (!OE(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -31669,65 +31141,65 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return Eb(this.visualElement, e), n.start(vb(e, n, 0, t, this.visualElement, !1));
+ return Tb(this.visualElement, e), n.start(_b(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- QS((e) => this.getAxisMotionValue(e).stop());
+ ZS((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
}
snapToCursor(e) {
- QS((t) => {
+ ZS((t) => {
let { drag: n } = this.getProps();
- if (!HE(t, n, this.currentDirection)) return;
+ if (!OE(t, n, this.currentDirection)) return;
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
if (r && r.layout) {
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
- i.set(e[t] - ey(n, a, .5) + o);
+ i.set(e[t] - $v(n, a, .5) + o);
}
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!wE(t) || !n || !this.constraints) return;
+ if (!uE(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = {
x: 0,
y: 0
};
- QS((e) => {
+ ZS((e) => {
let t = this.getAxisMotionValue(e);
if (t && this.constraints !== !1) {
let n = t.get();
- r[e] = Jse({
+ r[e] = Nse({
min: n,
max: n
}, this.constraints[e]);
}
});
let { transformTemplate: i } = this.visualElement.getProps();
- this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), QS((t) => {
- if (!HE(t, e, null)) return;
+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), ZS((t) => {
+ if (!OE(t, e, null)) return;
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
- n.set(ey(i, a, r[t]));
+ n.set($v(i, a, r[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Zse.set(this.visualElement, this);
- let e = this.visualElement.current, t = OE(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Fre(i);
+ Ise.set(this.visualElement, this);
+ let e = this.visualElement.current, t = mE(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Ire(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- wE(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= $se(e, t.current, () => this.scalePositionWithinConstraints()));
+ uE(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Rse(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), yv.read(r);
- let o = rC(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (QS((t) => {
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), vv.read(r);
+ let o = nC(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (ZS((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -31737,7 +31209,7 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = RE, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = wE, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -31749,7 +31221,7 @@ var Zse = /* @__PURE__ */ new WeakMap(), Qse = class {
};
}
};
-function VE(e) {
+function DE(e) {
let t = !0;
return () => {
if (t) {
@@ -31759,28 +31231,28 @@ function VE(e) {
e();
};
}
-function $se(e, t, n) {
- let r = lx(e, VE(n)), i = lx(t, VE(n));
+function Rse(e, t, n) {
+ let r = cx(e, DE(n)), i = cx(t, DE(n));
return () => {
r(), i();
};
}
-function HE(e, t, n) {
+function OE(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function ece(e, t = 10) {
+function zse(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var tce = class extends Ax {
+var Bse = class extends kx {
constructor(e) {
- super(e), this.removeGroupControls = Y_, this.removeListeners = Y_, this.controls = new Qse(e);
+ super(e), this.removeGroupControls = J_, this.removeListeners = J_, this.controls = new Lse(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Y_;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || J_;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -31789,31 +31261,31 @@ var tce = class extends Ax {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, UE = (e) => (t, n) => {
- e && yv.update(() => e(t, n), !1, !0);
-}, nce = class extends Ax {
+}, kE = (e) => (t, n) => {
+ e && vv.update(() => e(t, n), !1, !0);
+}, Vse = class extends kx {
constructor() {
- super(...arguments), this.removePointerDownListener = Y_;
+ super(...arguments), this.removePointerDownListener = J_;
}
onPointerDown(e) {
- this.session = new jE(e, this.createPanHandlers(), {
+ this.session = new _E(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: kE(this.node)
+ contextWindow: hE(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: UE(e),
- onStart: UE(t),
- onMove: UE(n),
+ onSessionStart: kE(e),
+ onStart: kE(t),
+ onMove: kE(n),
onEnd: (e, t) => {
- delete this.session, r && yv.postRender(() => r(e, t));
+ delete this.session, r && vv.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = OE(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = mE(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -31821,36 +31293,36 @@ var tce = class extends Ax {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, WE = !1, rce = class extends B.Component {
+}, AE = !1, Hse = class extends B.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), WE && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), AE && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), aC.hasEverUpdated = !0;
+ })), iC.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), WE = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || yv.postRender(() => {
+ }), AE = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || vv.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
})), null) : null;
}
componentDidUpdate() {
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), Gb.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), Wb.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- WE = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ AE = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -31860,41 +31332,41 @@ var tce = class extends Ax {
return null;
}
};
-function GE(e) {
- let [t, n] = aE(), r = (0, B.useContext)($T);
- return (0, U.jsx)(rce, {
+function jE(e) {
+ let [t, n] = GT(), r = (0, B.useContext)(zT);
+ return (0, U.jsx)(Hse, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, B.useContext)(CE),
+ switchLayoutGroup: (0, B.useContext)(lE),
isPresent: t,
safeToRemove: n
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var ice = {
- pan: { Feature: nce },
+var Use = {
+ pan: { Feature: Vse },
drag: {
- Feature: tce,
- ProjectionNode: xC,
- MeasureLayout: GE
+ Feature: Bse,
+ ProjectionNode: bC,
+ MeasureLayout: jE
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function KE(e, t, n) {
+function ME(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && yv.postRender(() => i(t, DE(t)));
+ i && vv.postRender(() => i(t, pE(t)));
}
-var ace = class extends Ax {
+var Wse = class extends kx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = jre(e, (e, t) => (KE(this.node, t, "Start"), (e) => KE(this.node, e, "End"))));
+ e && (this.unmount = Mre(e, (e, t) => (ME(this.node, t, "Start"), (e) => ME(this.node, e, "End"))));
}
unmount() {}
-}, oce = class extends Ax {
+}, Gse = class extends kx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -31911,57 +31383,57 @@ var ace = class extends Ax {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = X_(rC(this.node.current, "focus", () => this.onFocus()), rC(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Y_(nC(this.node.current, "focus", () => this.onFocus()), nC(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function qE(e, t, n) {
+function NE(e, t, n) {
let { props: r } = e;
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && yv.postRender(() => i(t, DE(t)));
+ i && vv.postRender(() => i(t, pE(t)));
}
-var sce = class extends Ax {
+var Kse = class extends kx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Lre(e, (e, t) => (qE(this.node, t, "Start"), (e, { success: t }) => qE(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = Rre(e, (e, t) => (NE(this.node, t, "Start"), (e, { success: t }) => NE(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, JE = /* @__PURE__ */ new WeakMap(), YE = /* @__PURE__ */ new WeakMap(), cce = (e) => {
- let t = JE.get(e.target);
+}, PE = /* @__PURE__ */ new WeakMap(), FE = /* @__PURE__ */ new WeakMap(), qse = (e) => {
+ let t = PE.get(e.target);
t && t(e);
-}, lce = (e) => {
- e.forEach(cce);
+}, Jse = (e) => {
+ e.forEach(qse);
};
-function uce({ root: e, ...t }) {
+function Yse({ root: e, ...t }) {
let n = e || document;
- YE.has(n) || YE.set(n, {});
- let r = YE.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(lce, {
+ FE.has(n) || FE.set(n, {});
+ let r = FE.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Jse, {
root: e,
...t
})), r[i];
}
-function dce(e, t, n) {
- let r = uce(t);
- return JE.set(e, n), r.observe(e), () => {
- JE.delete(e), r.unobserve(e);
+function Xse(e, t, n) {
+ let r = Yse(t);
+ return PE.set(e, n), r.observe(e), () => {
+ PE.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var fce = {
+var Zse = {
some: 0,
all: 1
-}, pce = class extends Ax {
+}, Qse = class extends kx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -31970,7 +31442,7 @@ var fce = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : fce[r]
+ threshold: typeof r == "number" ? r : Zse[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -31978,7 +31450,7 @@ var fce = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = dce(this.node.current, a, o);
+ this.stopObserver = Xse(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -31990,34 +31462,34 @@ var fce = {
"amount",
"margin",
"root"
- ].some(mce(e, t)) && this.startObserver();
+ ].some($se(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function mce({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function $se({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var hce = {
- inView: { Feature: pce },
- tap: { Feature: sce },
- focus: { Feature: oce },
- hover: { Feature: ace }
-}, gce = { layout: {
- ProjectionNode: xC,
- MeasureLayout: GE
-} }, _ce = /*@__PURE__*/ Lse({
- ...Vse,
- ...hce,
- ...ice,
- ...gce
-}, Rse);
+var ece = {
+ inView: { Feature: Qse },
+ tap: { Feature: Kse },
+ focus: { Feature: Gse },
+ hover: { Feature: Wse }
+}, tce = { layout: {
+ ProjectionNode: bC,
+ MeasureLayout: jE
+} }, nce = /*@__PURE__*/ Sse({
+ ...Ese,
+ ...ece,
+ ...Use,
+ ...tce
+}, Cse);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
-function XE(e, t, n) {
+function IE(e, t, n) {
(0, B.useInsertionEffect)(() => e.on(t, n), [
e,
t,
@@ -32026,8 +31498,8 @@ function XE(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
-function ZE(e) {
- let t = eE(() => hb(e)), { isStatic: n } = (0, B.useContext)(rE);
+function LE(e) {
+ let t = BT(() => mb(e)), { isStatic: n } = (0, B.useContext)(UT);
if (n) {
let [, n] = (0, B.useState)(e);
(0, B.useEffect)(() => t.on("change", n), []);
@@ -32036,28 +31508,28 @@ function ZE(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs
-function QE(e, t) {
- let n = ZE(t()), r = () => n.set(t());
- return r(), tE(() => {
- let t = () => yv.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+function RE(e, t) {
+ let n = LE(t()), r = () => n.set(t());
+ return r(), VT(() => {
+ let t = () => vv.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
return () => {
- n.forEach((e) => e()), bv(r);
+ n.forEach((e) => e()), yv(r);
};
}), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-computed.mjs
-function vce(e) {
- mb.current = [], e();
- let t = QE(mb.current, e);
- return mb.current = void 0, t;
+function rce(e) {
+ pb.current = [], e();
+ let t = RE(pb.current, e);
+ return pb.current = void 0, t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-transform.mjs
-function $E(e, t, n, r) {
- if (typeof e == "function") return vce(e);
- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return yce(e, t, n, r);
- let i = typeof t == "function" ? t : qre(t, n, r), a = Array.isArray(e) ? eD(e, i) : eD([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
+function zE(e, t, n, r) {
+ if (typeof e == "function") return rce(e);
+ if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return ice(e, t, n, r);
+ let i = typeof t == "function" ? t : Jre(t, n, r), a = Array.isArray(e) ? BE(e, i) : BE([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {
...o,
times: t,
@@ -32066,56 +31538,56 @@ function $E(e, t, n, r) {
...r?.ease ? { ease: r.ease } : {}
}), a;
}
-function eD(e, t) {
- let n = eE(() => []);
- return QE(e, () => {
+function BE(e, t) {
+ let n = BT(() => []);
+ return RE(e, () => {
n.length = 0;
let r = e.length;
for (let t = 0; t < r; t++) n[t] = e[t].get();
return t(n);
});
}
-function yce(e, t, n, r) {
- let i = eE(() => Object.keys(n)), a = eE(() => ({}));
- for (let o of i) a[o] = $E(e, t, n[o], r);
+function ice(e, t, n, r) {
+ let i = BT(() => Object.keys(n)), a = BT(() => ({}));
+ for (let o of i) a[o] = zE(e, t, n[o], r);
return a;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
-function bce(e, t = {}) {
- let { isStatic: n } = (0, B.useContext)(rE), r = () => Tb(e) ? e.get() : e;
- if (n) return $E(r);
- let i = ZE(r());
- return (0, B.useInsertionEffect)(() => Jre(i, e, t), [i, JSON.stringify(t)]), i;
+function ace(e, t = {}) {
+ let { isStatic: n } = (0, B.useContext)(UT), r = () => wb(e) ? e.get() : e;
+ if (n) return zE(r);
+ let i = LE(r());
+ return (0, B.useInsertionEffect)(() => Yre(i, e, t), [i, JSON.stringify(t)]), i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
-function tD(e, t = {}) {
- return bce(e, {
+function VE(e, t = {}) {
+ return ace(e, {
type: "spring",
...t
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function xce() {
- !wx.current && Tx();
- let [e] = (0, B.useState)(Cx.current);
+function oce() {
+ !Cx.current && wx();
+ let [e] = (0, B.useState)(Sx.current);
return e;
}
//#endregion
//#region node_modules/motion/dist/es/react.mjs
-var nD = _ce, rD = null;
-function Sce() {
- return rD?.isConnected || (rD = document.createElement("div"), rD.className = "peach-react", rD.dataset.reactOverlays = "", document.body.append(rD)), rD;
+var HE = nce, UE = null;
+function sce() {
+ return UE?.isConnected || (UE = document.createElement("div"), UE.className = "peach-react", UE.dataset.reactOverlays = "", document.body.append(UE)), UE;
}
-function iD({ children: e }) {
- return /* @__PURE__ */ (0, U.jsx)(iw, {
+function WE({ children: e }) {
+ return /* @__PURE__ */ (0, U.jsx)(rw, {
client: z,
- children: /* @__PURE__ */ (0, U.jsx)(_se, {
+ children: /* @__PURE__ */ (0, U.jsx)(nse, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, U.jsx)(Wp, {
- getContainer: Sce,
+ getContainer: sce,
children: e
})
})
@@ -32123,16 +31595,16 @@ function iD({ children: e }) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var aD = "(prefers-reduced-motion: reduce)", Cce = () => matchMedia(aD).matches, wce = (e) => {
- let t = matchMedia(aD);
+var GE = "(prefers-reduced-motion: reduce)", cce = () => matchMedia(GE).matches, lce = (e) => {
+ let t = matchMedia(GE);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function Tce({ children: e, count: t, label: n }) {
- let r = cse(), i = (0, B.useSyncExternalStore)(wce, Cce, () => !1), { isFocusVisible: a } = Ia(), o = i || a, s = {
+function uce({ children: e, count: t, label: n }) {
+ let r = qoe(), i = (0, B.useSyncExternalStore)(lce, cce, () => !1), { isFocusVisible: a } = Ia(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
- return /* @__PURE__ */ (0, U.jsxs)(nD.div, {
+ return /* @__PURE__ */ (0, U.jsxs)(HE.div, {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
@@ -32164,18 +31636,18 @@ function Tce({ children: e, count: t, label: n }) {
}), e]
});
}
-function oD({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, U.jsx)(use, { children: e ? /* @__PURE__ */ (0, U.jsx)(Tce, { ...t }, "selection") : null });
+function KE({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, U.jsx)(Yoe, { children: e ? /* @__PURE__ */ (0, U.jsx)(uce, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var sD = {
+var qE = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Ece(e, t = !1) {
+function dce(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -32191,7 +31663,7 @@ function Ece(e, t = !1) {
glyph: "trash",
danger: !0
},
- sD
+ qE
];
case "junk": return [
t ? {
@@ -32212,7 +31684,7 @@ function Ece(e, t = !1) {
glyph: "trash",
danger: !0
},
- sD
+ qE
];
case "follow": return [
{
@@ -32233,7 +31705,7 @@ function Ece(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- sD
+ qE
];
default: return [
{
@@ -32267,42 +31739,42 @@ function Ece(e, t = !1) {
glyph: "trash",
danger: !0
},
- sD
+ qE
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var cD = null, lD = null, uD = {
+var JE = null, YE = null, XE = {
count: 0,
context: "catalog",
junkDismissed: !1
};
-function dD() {
- let e = cD;
- if (!e || !lD) return;
- let t = uD;
- (0, Dt.flushSync)(() => lD.render(/* @__PURE__ */ (0, U.jsx)(iD, { children: /* @__PURE__ */ (0, U.jsx)(kce, {
+function ZE() {
+ let e = JE;
+ if (!e || !YE) return;
+ let t = XE;
+ (0, Dt.flushSync)(() => YE.render(/* @__PURE__ */ (0, U.jsx)(WE, { children: /* @__PURE__ */ (0, U.jsx)(mce, {
host: e,
props: t
}) })));
}
-var Dce = { render(e) {
- uD = e, dD();
+var fce = { render(e) {
+ XE = e, ZE();
} };
-function Oce(e) {
- return cD = e, lD = (0, Ot.createRoot)(e.root), dD(), Dce;
+function pce(e) {
+ return JE = e, YE = (0, Ot.createRoot)(e.root), ZE(), fce;
}
-function kce({ host: e, props: t }) {
+function mce({ host: e, props: t }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, U.jsx)(oD, {
+ children: /* @__PURE__ */ (0, U.jsx)(KE, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: Ece(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, U.jsxs)("button", {
+ children: dce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -32319,7 +31791,7 @@ function kce({ host: e, props: t }) {
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function fD({ store: e, label: t, hidden: n }) {
+function QE({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-glow-grid": "",
@@ -32345,11 +31817,11 @@ function fD({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-function Ace(e) {
+function hce(e) {
let t = (0, Ot.createRoot)(e.root);
- (0, Dt.flushSync)(() => t.render(/* @__PURE__ */ (0, U.jsx)(jce, { host: e })));
+ (0, Dt.flushSync)(() => t.render(/* @__PURE__ */ (0, U.jsx)(gce, { host: e })));
}
-function jce({ host: e }) {
+function gce({ host: e }) {
let { store: t } = e;
(0, B.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32365,7 +31837,7 @@ function jce({ host: e }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, U.jsx)(fD, {
+ /* @__PURE__ */ (0, U.jsx)(QE, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32405,32 +31877,32 @@ function jce({ host: e }) {
}
//#endregion
//#region src/player/host.ts
-var pD = null;
-function Mce(e) {
- pD = e;
+var $E = null;
+function _ce(e) {
+ $E = e;
}
-function mD() {
- if (!pD) throw Error("播放器还没有接上宿主(configurePlayer)");
- return pD;
+function eD() {
+ if (!$E) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return $E;
}
//#endregion
//#region src/player/menu.ts
-var hD = null;
-function Nce(e) {
- hD = e;
+var tD = null;
+function vce(e) {
+ tD = e;
}
-function Pce() {
+function yce() {
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 gD = null, _D = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function vD() {
+var nD = null, rD = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function iD() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && a(e, () => {
e.innerHTML = "";
- }), gD &&= (gD(), null);
+ }), nD &&= (nD(), null);
}
-async function Fce(e) {
+async function bce(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32443,12 +31915,12 @@ async function Fce(e) {
return t.remove(), n;
}
}
-function Ice(e) {
- let t = !!hD?.inMiniplayer(e), n = e.peachItem, r = hD?.kind(e) ?? "item", i = (t) => {
+function xce(e) {
+ let t = !!tD?.inMiniplayer(e), n = e.peachItem, r = tD?.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) => {
- Fce(i(e)).then((e) => mD().toast(e ? t : "复制失败,请手动复制地址栏", {
+ bce(i(e)).then((e) => eD().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32460,11 +31932,11 @@ function Ice(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => hD?.expand()
+ run: () => tD?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => hD?.toMiniplayer()
+ run: () => tD?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32487,29 +31959,29 @@ function Ice(e) {
run: () => s.click()
}), o;
}
-function Lce(e, t, n) {
- let r = Pce();
- vD();
- let i = mD().stage();
+function Sce(e, t, n) {
+ let r = yce();
+ iD();
+ let i = eD().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Ice(e);
+ let a = xce(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}">${_D(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${P(e.label)}</span>${n ? _D(L("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${rD(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${P(e.label)}</span>${n ? rD(L("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), _(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)];
- vD(), n?.run();
+ iD(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || vD();
+ r.contains(e.target) || iD();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), vD();
+ e.preventDefault(), e.stopPropagation(), iD();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32517,51 +31989,51 @@ function Lce(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- y(t, e.el()) && vD();
+ y(t, e.el()) && iD();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), gD = () => {
+ }, 0), nD = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Rce(e) {
+function Cce(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Lce(e, t.clientX, t.clientY));
- }), e.on("dispose", vD);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Sce(e, t.clientX, t.clientY));
+ }), e.on("dispose", iD);
}
//#endregion
//#region src/player/registry.ts
-var yD = null, bD = () => yD;
-function xD(e) {
- yD = e;
+var aD = null, oD = () => aD;
+function sD(e) {
+ aD = e;
}
-function SD(e) {
+function cD(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function CD(e) {
+function lD(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 zce(e) {
+function wce(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 wD = 3e3;
-function TD(e, t) {
+var uD = 3e3;
+function dD(e, t) {
let n = Number(e) || 0, r = se(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Bce(e) {
+function Tce(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32576,10 +32048,10 @@ function Bce(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = zce(e), s = e.currentTime || 0;
+ let a = performance.now(), o = wce(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 > wD * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > uD * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32588,56 +32060,56 @@ function Bce(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > wD;) t.shift();
+ }); t.length > 2 && a - t[0].at > uD;) 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 ED = 24;
-function DD(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > ED && e.splice(0, e.length - ED);
+var fD = 24;
+function pD(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > fD && e.splice(0, e.length - fD);
}
-var OD = "peach-player-panel";
-function kD(e, t, n, r) {
- let i = [...Array(Math.max(0, ED - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var mD = "peach-player-panel";
+function hD(e, t, n, r) {
+ let i = [...Array(Math.max(0, fD - 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="${P(r)}">${o}</span>`;
}
-function Vce() {
+function Ece() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${L("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 AD(e, t = "") {
+function gD(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 jD(e, t = "") {
- let n = AD(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 _D(e, t = "") {
+ let n = gD(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 MD(e, t, n = "", r = null) {
+function vD(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 : jD(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : _D(t, n);
}
-function ND(e) {
+function yD(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 Hce(e, t) {
- return e > 0 ? ND(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : ND(0);
+function Dce(e, t) {
+ return e > 0 ? yD(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : yD(0);
}
//#endregion
//#region src/player/controls.ts
-function PD(e, t, n = "") {
+function bD(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));
@@ -32648,24 +32120,24 @@ function PD(e, t, n = "") {
};
return o(), o;
}
-function Uce(e, t = !0) {
- let n = mD(), r = n.settings();
+function Oce(e, t = !0) {
+ let n = eD(), 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 FD = /* @__PURE__ */ new WeakMap();
-function ID(e) {
+var xD = /* @__PURE__ */ new WeakMap();
+function SD(e) {
if (!e) return;
- let t = mD().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), FD.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = eD().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), xD.get(e)?.(t ? "默认视图" : "影院模式");
}
-function LD(e, t = !0) {
- let n = mD(), r = n.settings();
+function CD(e, t = !0) {
+ let n = eD(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), ID(i?.querySelector("[data-player-theater]")), SD(bD());
+ i?.toggleAttribute("data-theater", r.theaterMode), SD(i?.querySelector("[data-player-theater]")), cD(oD());
}
-function Wce(e) {
- let t = mD().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function kce(e) {
+ let t = eD().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -32682,14 +32154,14 @@ function Wce(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => u(t, e)) : requestAnimationFrame((e) => u(t, e));
}, u = (t, n) => {
if (!(i || t !== o)) {
- if (!mD().settings().ambientMode) {
+ if (!eD().settings().ambientMode) {
s();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, c()), l(t));
}
}, d = () => {
- i || !mD().settings().ambientMode || (c(), e.paused || l(++o));
+ i || !eD().settings().ambientMode || (c(), e.paused || l(++o));
}, f = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? d() : (o++, s());
@@ -32698,7 +32170,7 @@ function Wce(e) {
i = !0, o++, document.removeEventListener("peachambientchange", f), e.removeEventListener("play", d), e.removeEventListener("loadeddata", d), s();
};
}
-function Gce(e, t, n = 0, r = null) {
+function Ace(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");
@@ -32708,7 +32180,7 @@ function Gce(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]");
- PD(s, "设置");
+ bD(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;
@@ -32750,11 +32222,11 @@ function Gce(e, t, n = 0, r = null) {
active: t
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(OD, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(mD, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
- document.addEventListener(OD, y);
+ document.addEventListener(mD, 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;
@@ -32768,12 +32240,12 @@ function Gce(e, t, n = 0, r = null) {
}, 250);
}), r;
}, S = (e, t) => e.querySelector(t), C = (t = 0) => {
- 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="${mD().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="${eD().settings().ambientMode}">
${L("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>${L("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${L("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${L("player-quality")}<span>清晰度</span><b>${P(n.label)}</b>${L("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- Uce(!mD().settings().ambientMode), C();
+ Oce(!eD().settings().ambientMode), C();
}, S(i, "[data-player-speed]").onclick = () => D(), S(i, "[data-player-quality-view]").onclick = () => O();
}, w = .05, T = [
1,
@@ -32830,22 +32302,22 @@ function Gce(e, t, n = 0, r = null) {
}), u?.on?.(["addqualitylevel", "removequalitylevel"], () => {
g() ? C() : h();
}), e.on("dispose", () => {
- document.removeEventListener("pointerdown", k), document.removeEventListener(OD, y), b && clearTimeout(b);
- }), h(), Kce(e, a), qce(e), (e) => {
+ document.removeEventListener("pointerdown", k), document.removeEventListener(mD, y), b && clearTimeout(b);
+ }), h(), jce(e, a), Mce(e), (e) => {
d = e?.length ? e : null, g() ? C() : h();
};
}
-function Kce(e, t) {
+function jce(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = mD().settings().theaterMode, i = document.createElement("div");
+ let r = eD().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${L(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- FD.set(a, PD(a, "影院模式", "T")), ID(a), a.onclick = (e) => {
- e.stopPropagation(), LD(!mD().settings().theaterMode);
+ xD.set(a, bD(a, "影院模式", "T")), SD(a), a.onclick = (e) => {
+ e.stopPropagation(), CD(!eD().settings().theaterMode);
};
}
-function qce(e) {
+function Mce(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -32857,7 +32329,7 @@ function qce(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 = PD(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 = bD(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 ? "播放" : "暂停");
};
@@ -32868,7 +32340,7 @@ function qce(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 = PD(p, "静音", "M"), g = () => {
+ let h = bD(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 ? "取消静音" : "静音");
};
@@ -32894,7 +32366,7 @@ function qce(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 = PD(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = bD(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = F(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : F(t)} / ${F(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${F(n)};点击显示已播放时间` : `已播放 ${F(t)},总时长 ${F(n)};点击显示剩余时间`);
};
@@ -32907,11 +32379,11 @@ function qce(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 = PD(E, "画中画");
+ let D = bD(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = PD(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = bD(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 ? "退出全屏" : "全屏"), SD(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), cD(e);
};
e.on([
"fullscreenchange",
@@ -32931,7 +32403,7 @@ function qce(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${L("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(ee);
- let te = ee.querySelector("button"), P = PD(te, "展开控件"), ne = (t) => {
+ let te = ee.querySelector("button"), P = bD(te, "展开控件"), ne = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), P(t ? "收起控件" : "展开控件");
};
te.onclick = (t) => {
@@ -32943,7 +32415,7 @@ function qce(e) {
}, re = new ResizeObserver(I);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), ne(!1), I();
}
-function Jce(e, t, n = {}) {
+function Nce(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");
@@ -32976,13 +32448,13 @@ function Jce(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function Yce(e, t) {
+function Pce(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => se(e.duration()) || se(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(mD().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(eD().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33023,11 +32495,11 @@ function Yce(e, t) {
} catch {}
});
}
-function Xce(e) {
+function Fce(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 Zce(e, t) {
+function Ice(e, t) {
N(`/api/assets/${t}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33042,7 +32514,7 @@ function Zce(e, t) {
}
//#endregion
//#region src/player/dispose.ts
-function RD(e) {
+function wD(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -33060,23 +32532,23 @@ function RD(e) {
}
//#endregion
//#region src/player/stream.ts
-function zD() {
+function TD() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function BD(e, t) {
+function ED(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Qce(e) {
+function Lce(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function VD(e, t) {
- let n = Qce(e);
+async function DD(e, t) {
+ let n = Lce(e);
if (n) return n;
try {
let n = await N(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33085,9 +32557,9 @@ async function VD(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return BD(e, t);
+ return ED(e, t);
}
-function HD(e) {
+function OD(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33096,21 +32568,21 @@ function HD(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var UD = "";
-function WD() {
- return UD;
+var kD = "";
+function AD() {
+ return kD;
}
-function GD() {
- return UD ||= zD(), UD;
+function jD() {
+ return kD ||= TD(), kD;
}
-var $ce = (e) => BD(e, GD()), ele = (e) => VD(e, GD());
-function KD() {
- let e = UD;
- e && (UD = "", HD(e));
+var Rce = (e) => ED(e, jD()), zce = (e) => DD(e, jD());
+function MD() {
+ let e = kD;
+ e && (kD = "", OD(e));
}
//#endregion
//#region src/player/telemetry.ts
-function qD(e, t, n = {}) {
+function ND(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null;
t.addEventListener("seeking", () => {
@@ -33158,7 +32630,7 @@ function qD(e, t, n = {}) {
u(), l(!1);
}, { once: !0 }), c();
}
-function tle(e, t) {
+function Bce(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = se(e.duration) || se(t.duration);
!r && !n || (N("/api/follow/activity", {
@@ -33194,7 +32666,7 @@ function tle(e, t) {
}
//#endregion
//#region src/player/videojs.ts
-var JD = "/vendor/videojs/8.24.1/", YD = (e) => new Promise((t, n) => {
+var PD = "/vendor/videojs/8.24.1/", FD = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -33206,20 +32678,20 @@ var JD = "/vendor/videojs/8.24.1/", YD = (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));
-}), XD = () => globalThis.videojs, ZD = null;
-function QD() {
- let e = XD();
- return e ? Promise.resolve(e) : (ZD ??= YD(`${JD}video.min.js`).then(() => YD(`${JD}lang/zh-CN.js`)).then(() => {
- let e = XD();
+}), ID = () => globalThis.videojs, LD = null;
+function RD() {
+ let e = ID();
+ return e ? Promise.resolve(e) : (LD ??= FD(`${PD}video.min.js`).then(() => FD(`${PD}lang/zh-CN.js`)).then(() => {
+ let e = ID();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw ZD = null, e;
- }), ZD);
+ throw LD = null, e;
+ }), LD);
}
//#endregion
//#region src/player/immerse-player.ts
-var nle = {
+var Vce = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -33231,37 +32703,37 @@ var nle = {
errorDisplay: !1,
textTrackSettings: !1
};
-function rle(e, t) {
+function Hce(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([VD(n, r), QD().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([DD(n, r), RD().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = BD(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = ED(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, nle);
+ let t = s(e, Vce);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- qD(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ ND(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, HD(r), i ? RD(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, OD(r), i ? wD(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var $D = /* @__PURE__ */ new WeakMap(), eO = null, tO = null, nO = null;
-function rO() {
- eO &&= (clearInterval(eO), null), tO &&= (clearInterval(tO), null), nO &&= (clearTimeout(nO), null);
+var zD = /* @__PURE__ */ new WeakMap(), BD = null, VD = null, HD = null;
+function UD() {
+ BD &&= (clearInterval(BD), null), VD &&= (clearInterval(VD), null), HD &&= (clearTimeout(HD), null);
}
-async function ile(e, t, n, r = {}) {
- let i = bD();
+async function Uce(e, t, n, r = {}) {
+ let i = oD();
if (i && !i.isDisposed()) return i;
- let a = mD(), o = r.resume ?? null;
+ let a = eD(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : ele(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : zce(e), c;
try {
- c = await QD();
+ c = await RD();
} catch {
return t.controls = !0, s().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -33281,7 +32753,7 @@ async function ile(e, t, n, r = {}) {
remainingTimeDisplay: !1
}
});
- xD(l), l.peachItem = e, Rce(l), l.on("loadedmetadata", () => {
+ sD(l), l.peachItem = e, Cce(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}`);
});
@@ -33289,7 +32761,7 @@ async function ile(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Bce(TD(f, e.duration)), m = 0, h = !1, g = () => bD() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Tce(dD(f, e.duration)), m = 0, h = !1, g = () => oD() === 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(() => {
@@ -33300,15 +32772,15 @@ async function ile(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- $D.set(l, y), y.updateStats = () => {
+ zD.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 = WD(), h = s ? AD(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 = AD(), h = s ? gD(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 = MD(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 = vD(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 = CD(t);
- DD(d.speed, x), DD(d.activity, C), DD(d.buffer, w);
+ let w = lD(t);
+ pD(d.speed, x), pD(d.activity, C), pD(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 ? [
"网络活动",
`${_ ? I(_) : "—"} · ${h.length} 请求`,
@@ -33326,17 +32798,17 @@ async function ile(e, t, n, r = {}) {
[
"连接速度",
D,
- kD(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ hD(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- kD(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ hD(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- kD(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ hD(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${F(t.currentTime)} / ${F(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -33352,15 +32824,15 @@ async function ile(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = MD(l, e.id, WD(), r ? null : p), a = r ? ND(i) : Hce(i, CD(t));
+ let i = vD(l, e.id, AD(), r ? null : p), a = r ? yD(i) : Dce(i, lD(t));
n.innerHTML = `${L("gauge")}<span class="sr-only">加载速度</span><span>${P(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, S(), tO && clearInterval(tO), tO = setInterval(S, 500));
+ !e || !e.isConnected || (e.hidden = !1, S(), VD && clearInterval(VD), VD = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (nO && clearTimeout(nO), nO = setTimeout(() => {
- e.hidden = !0, tO &&= (clearInterval(tO), null);
+ e && (HD && clearTimeout(HD), HD = setTimeout(() => {
+ e.hidden = !0, VD &&= (clearInterval(VD), null);
}, 1400));
};
return l.on([
@@ -33372,7 +32844,7 @@ async function ile(e, t, n, r = {}) {
S(), w();
}), l.on("error", () => {
if (b && !x && !l.isDisposed()) {
- x = !0, b = !1, l.src($ce(e)), n && l.play()?.catch(() => {});
+ x = !0, b = !1, l.src(Rce(e)), n && l.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
@@ -33383,27 +32855,27 @@ async function ile(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = Gce(l, t, e.height, r.qualities ?? null);
+ let n = Ace(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 = TD(r, e.duration));
- }).catch(() => {}), Jce(l, e, { thumbnail: !r.source }), Yce(l, e), Xce(l), r.source || Zce(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = dD(r, e.duration));
+ }).catch(() => {}), Nce(l, e, { thumbnail: !r.source }), Pce(l, e), Fce(l), r.source || Ice(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 ale = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function iO(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", ale), e.querySelector(":scope > #playerStatsBtn")) return;
+var Wce = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function WD(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Wce), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = Vce(), e.insertBefore(n.content, t);
+ n.innerHTML = Ece(), e.insertBefore(n.content, t);
}
-function aO(e, t) {
- let n = $D.get(e);
+function GD(e, t) {
+ let n = zD.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -33415,29 +32887,29 @@ function aO(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), eO &&= (clearInterval(eO), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), BD &&= (clearInterval(BD), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(OD, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), eO && clearInterval(eO), eO = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(mD, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), BD && clearInterval(BD), BD = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(OD, t), s = () => document.removeEventListener(OD, t);
+ document.addEventListener(mD, t), s = () => document.removeEventListener(mD, t);
}
- let c = e.el().querySelector("video"), l = c ? Wce(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, rO()));
+ let c = e.el().querySelector("video"), l = c ? kce(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, UD()));
};
return e.one("dispose", d), d;
}
-function oO(e, t) {
- if (t.kind === "immerse") return rle(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = mD(), c = t.chrome === !1 ? null : e.parentElement;
- c && iO(c, e);
+function KD(e, t) {
+ if (t.kind === "immerse") return Hce(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = eD(), c = t.chrome === !1 ? null : e.parentElement;
+ c && WD(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
...l,
@@ -33457,16 +32929,16 @@ function oO(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), qD(r, e, {
+ }, { once: !0 }), ND(r, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), !(!u || a?.(u)) && (bD() === u && (xD(null), rO()), RD(u));
+ f(), !(!u || a?.(u)) && (oD() === u && (sD(null), UD()), wD(u));
};
- return ile(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
+ return Uce(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
if (u = t, d) {
p();
return;
@@ -33475,70 +32947,70 @@ function oO(e, t) {
o?.(null);
return;
}
- c && (f = aO(t, c)), n === "follow" && tle(r, e), o?.(t);
+ c && (f = GD(t, c)), n === "follow" && Bce(r, e), o?.(t);
}), () => {
d = !0, p();
};
}
//#endregion
//#region src/player/playback.ts
-function sO(e) {
+function qD(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function ole(e, t) {
+function Gce(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 cO(e) {
+function JD(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function sle(e, t) {
- return e.is_jav && e.code && e.has_cover && (cO(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Kce(e, t) {
+ return e.is_jav && e.code && e.has_cover && (JD(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var lO = .704;
-function uO(e, t) {
+var YD = .704;
+function XD(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var cle = (e, t) => [
+var qce = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], lle = (e, t) => [
+], Jce = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function ule(e, t, n, r, i) {
+async function Yce(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 HC(`/api/items?${a}`, i), s = {
+ let o = await VC(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await HC("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await VC("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var dle = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, fle = (e, t) => {
+var Xce = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Zce = (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 dO(e) {
- let t = uO(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function ZD(e) {
+ let t = XD(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: cle(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => ule(t, e, n, r, i),
+ queryKey: qce(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Yce(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: dle(n)
+ getNextPageParam: Xce(n)
};
}
-function ple(e) {
+function Qce(e) {
return {
- queryKey: lle(e.entityKey || "", e.revision || 0),
+ queryKey: Jce(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -33553,12 +33025,12 @@ function ple(e) {
};
},
initialPageParam: 0,
- getNextPageParam: fle
+ getNextPageParam: Zce
};
}
-async function mle(e, t) {
+async function $ce(e, t) {
if (e.mode !== "catalog") return;
- let n = dO(e);
+ let n = ZD(e);
await z.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -33567,7 +33039,7 @@ async function mle(e, t) {
})
});
}
-function hle(e, t, n) {
+function ele(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -33582,24 +33054,24 @@ function hle(e, t, n) {
return !0;
}) : [...e];
}
-var fO = (e, t) => !!e && !!sle(e, t);
-function gle(e, t) {
- let n = (e) => fO(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) => fO(e, t)) || e[e.length - 1];
+var QD = (e, t) => !!e && !!Kce(e, t);
+function tle(e, t) {
+ let n = (e) => QD(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) => QD(e, t)) || e[e.length - 1];
}
-function _le(e, { collapse: t, mix: n, javImage: r }) {
+function nle(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 = hle(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = ele(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 = gle(e, r);
+ let t = tle(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -33612,16 +33084,16 @@ function _le(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function vle(e, t, n) {
+function rle(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 yle(e, t) {
+function ile(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 ble(e, t) {
+function ale(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -33634,10 +33106,10 @@ function ble(e, t) {
strip: null
}), r;
}
-function pO(e, t) {
- mO((t) => t.id === e, t);
+function $D(e, t) {
+ eO((t) => t.id === e, t);
}
-function mO(e, t) {
+function eO(e, t) {
z.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -33654,32 +33126,32 @@ function mO(e, t) {
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var hO = (e) => ["item", e], gO = (e) => [
+var tO = (e) => ["item", e], nO = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], xle = (e, t) => [
+], ole = (e, t) => [
"item-related",
e,
t
-], Sle = (e) => `/api/item?id=${e}`, Cle = (e, t) => `/api/related?id=${e}&limit=${t}`, _O = "/api/playlist", vO = "/api/feedback", yO = "/api/item-tag", bO = "/api/watch-later", xO = "/api/quality-goal", SO = "/api/preference", CO = class extends Error {};
-async function wO(e, t) {
- let n = await HC(Sle(e), t);
- if (n.error) throw new CO(n.error);
+], sle = (e) => `/api/item?id=${e}`, cle = (e, t) => `/api/related?id=${e}&limit=${t}`, rO = "/api/playlist", iO = "/api/feedback", aO = "/api/item-tag", oO = "/api/watch-later", sO = "/api/quality-goal", cO = "/api/preference", lO = class extends Error {};
+async function uO(e, t) {
+ let n = await VC(sle(e), t);
+ if (n.error) throw new lO(n.error);
return n;
}
-async function TO(e, t, n) {
+async function dO(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([wO(r, n), t.mixRelated(r)]);
- return z.setQueryData(hO(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([uO(r, n), t.mixRelated(r)]);
+ return z.setQueryData(tO(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${be(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return EO(await HC(`${_O}?id=${e.playlistId}`, n));
- let r = await HC(`/api/${e.kind}?id=${e.seedId}`, n);
+ if (e.kind === "playlist") return fO(await VC(`${rO}?id=${e.playlistId}`, n));
+ let r = await VC(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
kind: e.kind,
@@ -33688,19 +33160,19 @@ async function TO(e, t, n) {
items: r.items
};
}
-var EO = (e) => ({
+var fO = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), DO = (e) => e.disposal === "vanished";
-function OO(e, t) {
+}), pO = (e) => e.disposal === "vanished";
+function mO(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !DO(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !pO(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 wle(e, t) {
+function lle(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 : {
@@ -33708,15 +33180,15 @@ function wle(e, t) {
part_label: n
};
}
-async function Tle(e, t) {
+async function ule(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = gO(n);
+ let o = nO(n);
try {
let r = n.fresh ? void 0 : z.getQueryData(o);
a = !r && n.kind === "mix", i = r || await z.fetchQuery({
queryKey: o,
- queryFn: () => TO(n, e.helpers, t),
+ queryFn: () => dO(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -33728,20 +33200,20 @@ async function Tle(e, t) {
return;
}
}
- let o = i ? OO(i, e.id) : e.id;
+ let o = i ? mO(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(hO(o)) : void 0;
+ let s, c = a && o === i?.seedId ? z.getQueryData(tO(o)) : void 0;
try {
s = c || await z.fetchQuery({
- queryKey: hO(o),
- queryFn: () => wO(o, t),
+ queryKey: tO(o),
+ queryFn: () => uO(o, t),
staleTime: 0
});
} catch (e) {
- if (e instanceof CO) {
+ if (e instanceof lO) {
r.redirect({ kind: "gone" });
return;
}
@@ -33752,7 +33224,7 @@ async function Tle(e, t) {
id: Number(s.follow_item_id)
});
}
-function Ele(e) {
+function dle(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = re(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -33774,42 +33246,42 @@ function Ele(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-var kO = (e) => Math.min(Math.max(e || 0, 0), 100), AO = (e) => Math.round(kO(e) / 20), Dle = (e) => {
- let t = AO(e);
+var hO = (e) => Math.min(Math.max(e || 0, 0), 100), gO = (e) => Math.round(hO(e) / 20), fle = (e) => {
+ let t = gO(e);
return t ? `${t} 星` : "未评分";
-}, Ole = (e, t) => {
+}, ple = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function kle(e, t) {
+function mle(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = re(t.tagLabel(e.k)), i = n.get(r);
(!i || re(e.k) === r && re(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var jO = (e, t) => (e.tags || []).some((e) => re(e.k) === re(t)), MO = (e, t) => ({
+var _O = (e, t) => (e.tags || []).some((e) => re(e.k) === re(t)), vO = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => re(e.k) !== re(t))
-}), NO = (e, t) => jO(e, t.k) ? e : {
+}), yO = (e, t) => _O(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, PO = "peach.recentTags";
-function FO() {
+}, bO = "peach.recentTags";
+function xO() {
try {
- let e = JSON.parse(localStorage.getItem(PO) || "[]");
+ let e = JSON.parse(localStorage.getItem(bO) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Ale(e) {
+function hle(e) {
try {
- let t = FO().filter((t) => re(t) !== re(e));
- localStorage.setItem(PO, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = xO().filter((t) => re(t) !== re(e));
+ localStorage.setItem(bO, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function jle(e, t, n) {
+function gle(e, t, n) {
let r = re(e), i = new Map(t.map((e) => [re(e.k), e])), a = t.filter((e) => !r || re(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(re(e)) || {
k: e,
n: 0
@@ -33820,73 +33292,73 @@ function jle(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Mle = {
+var _le = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Nle = {
+}, vle = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Ple(e) {
+function yle(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Nle[e.kind],
+ title: vle[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var IO = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Fle = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${P(IO(e.part_label))}</small>` : "";
-function Ile(e, t, n, r) {
+var SO = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, ble = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${P(SO(e.part_label))}</small>` : "";
+function xle(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Lle = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Rle(e, t) {
+var Sle = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Cle(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function zle(e) {
+function wle(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 LO(e, t) {
+function CO(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 Ble = (e, t, n) => [
+var Tle = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function Vle(e) {
+function Ele(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 Hle = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function Ule(e, t = Math.random) {
+var Dle = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function Ole(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 Wle(e, t) {
- return Ule(((await HC(`/api/items?${e}`)).items || []).filter((e) => Hle(e, t)));
+async function kle(e, t) {
+ return Ole(((await VC(`/api/items?${e}`)).items || []).filter((e) => Dle(e, t)));
}
-var RO = (e) => z.ensureQueryData({
- queryKey: hO(e),
- queryFn: ({ signal: t }) => wO(e, t)
+var wO = (e) => z.ensureQueryData({
+ queryKey: tO(e),
+ queryFn: ({ signal: t }) => uO(e, t)
});
-function Gle(e, t) {
+function Ale(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function zO(e) {
+function jle(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,
@@ -33895,314 +33367,314 @@ function zO(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Kle(e, t, n) {
+function Mle(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 qle(e, t) {
+function Nle(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 Jle = 15e3, BO = {
+var Ple = 15e3, TO = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, VO = null, HO = null, UO = null, WO = null, GO = BO, KO = 0, qO = 0, JO = 0, YO = "", XO = [], ZO = 0, QO = !1, $O = !1, ek = null, tk = /* @__PURE__ */ new Set(), nk = "", rk = null, ik = 0, ak = null, ok = !1;
-function sk() {
- if (!VO) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
- return VO;
-}
-function Yle() {
- return (!HO || !UO?.isConnected) && (HO?.unmount(), UO = document.createElement("div"), UO.dataset.immerseHost = "", document.body.append(UO), HO = (0, Ot.createRoot)(UO)), HO;
-}
-function ck() {
- let e = Yle();
- (0, Dt.flushSync)(() => e.render(/* @__PURE__ */ (0, U.jsx)(iD, { children: /* @__PURE__ */ (0, U.jsx)(uue, { view: GO }) })));
-}
-function lk() {
- let e = rk ? jD(rk.id) : 0;
- return e ? `${nk} · ${ND(e)}` : nk;
-}
-function uk(e, t = null) {
- if (clearInterval(ik), ik = 0, e === null) {
- GO = {
- ...GO,
+}, EO = null, DO = null, OO = null, kO = null, AO = TO, jO = 0, MO = 0, NO = 0, PO = "", FO = [], IO = 0, LO = !1, RO = !1, zO = null, BO = /* @__PURE__ */ new Set(), VO = "", HO = null, UO = 0, WO = null, GO = !1;
+function KO() {
+ if (!EO) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
+ return EO;
+}
+function Fle() {
+ return (!DO || !OO?.isConnected) && (DO?.unmount(), OO = document.createElement("div"), OO.dataset.immerseHost = "", document.body.append(OO), DO = (0, Ot.createRoot)(OO)), DO;
+}
+function qO() {
+ let e = Fle();
+ (0, Dt.flushSync)(() => e.render(/* @__PURE__ */ (0, U.jsx)(WE, { children: /* @__PURE__ */ (0, U.jsx)(Xle, { view: AO }) })));
+}
+function JO() {
+ let e = HO ? _D(HO.id) : 0;
+ return e ? `${VO} · ${yD(e)}` : VO;
+}
+function YO(e, t = null) {
+ if (clearInterval(UO), UO = 0, e === null) {
+ AO = {
+ ...AO,
loading: null
- }, ck();
+ }, qO();
return;
}
- nk = e, rk = t, GO = {
- ...GO,
- loading: lk()
- }, ck(), ik = window.setInterval(() => {
- rk = XO[ZO] ?? null, GO = {
- ...GO,
- loading: lk()
- }, ck();
+ VO = e, HO = t, AO = {
+ ...AO,
+ loading: JO()
+ }, qO(), UO = window.setInterval(() => {
+ HO = FO[IO] ?? null, AO = {
+ ...AO,
+ loading: JO()
+ }, qO();
}, 500);
}
-function dk(e) {
+function Ile(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), WO.track.append(t);
- let r = zD(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), kO.track.append(t);
+ let r = TD(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => HD(r),
+ release: () => OD(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return tk.add(a), a;
+ return BO.add(a), a;
}
-function fk(e, t) {
+function Lle(e, t) {
return new Promise((n) => {
- e.release = oO(e.video, {
+ e.release = KD(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- GO.open && bk(1);
+ AO.open && rk(1);
}
}), e.gone.then(n);
});
}
-function pk(e) {
- !e || e.disposed || (e.disposed = !0, tk.delete(e), e.leave(), e.release(), e.el.remove(), ek === e && (ek = null));
+function XO(e) {
+ !e || e.disposed || (e.disposed = !0, BO.delete(e), e.leave(), e.release(), e.el.remove(), zO === e && (zO = null));
}
-var mk = [
+var ZO = [
"loadeddata",
"canplay",
"error"
];
-function hk(e) {
+function Rle(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), mk.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), ZO.forEach((e) => t.removeEventListener(e, i)), n());
};
- mk.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, Jle);
+ ZO.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, Ple);
e.gone.then(i);
});
}
-function gk(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Kle(e.videoWidth, e.videoHeight, n);
+function QO(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Mle(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var _k = () => WO?.track.querySelectorAll("video").forEach(gk);
-function Xle(e) {
- delete e.dataset.fit, e.readyState >= 1 ? gk(e) : e.addEventListener("loadedmetadata", () => gk(e), { once: !0 });
+var $O = () => kO?.track.querySelectorAll("video").forEach(QO);
+function ek(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? QO(e) : e.addEventListener("loadedmetadata", () => QO(e), { once: !0 });
}
-function Zle(e) {
- GO = {
- ...GO,
+function zle(e) {
+ AO = {
+ ...AO,
wide: e
- }, ck(), _k();
+ }, qO(), $O();
}
-var vk = () => {
- let e = YO;
+var tk = () => {
+ let e = PO;
return z.fetchQuery({
- queryKey: Ble(e, qO, JO),
- queryFn: () => Wle(e, sk().sourceOffline),
+ queryKey: Tle(e, MO, NO),
+ queryFn: () => kle(e, KO().sourceOffline),
staleTime: Infinity
});
};
-function Qle(e, t) {
+function Ble(e, t) {
let n = () => se(e.duration) || se(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && WO && (WO.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), ak = {
+ t && kO && (kO.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), WO = {
video: e,
duration: n
};
}
-async function yk(e = 0) {
- let t = XO[ZO];
- if (!t || QO) return;
- let n = KO;
- sk().route(t.id), QO = !0, uk(e ? "切换中…" : "加载中…", t);
+async function nk(e = 0) {
+ let t = FO[IO];
+ if (!t || LO) return;
+ let n = jO;
+ KO().route(t.id), LO = !0, YO(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await RO(t.id).catch((e) => {
- if (!(e instanceof CO)) throw e;
- }), n !== KO) return;
- let i = ek, a = !!(e && i);
- a || pk(i);
- let o = dk(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Xle(o.video), await fk(o, t), await hk(o), o.disposed || (Zle(qle(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await wO(t.id).catch((e) => {
+ if (!(e instanceof lO)) throw e;
+ }), n !== jO) return;
+ let i = zO, a = !!(e && i);
+ a || XO(i);
+ let o = Ile(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, ek(o.video), await Lle(o, t), await Rle(o), o.disposed || (zle(Nle(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)), pk(i), o.el.style.transform = ""), o.disposed)) return;
- ek = o, r = null, o.video.play()?.catch(() => {}), GO = {
- ...GO,
+ })), await new Promise((e) => setTimeout(e, 210)), XO(i), o.el.style.transform = ""), o.disposed)) return;
+ zO = o, r = null, o.video.play()?.catch(() => {}), AO = {
+ ...AO,
idle: !1,
shown: {
item: t,
- index: ZO,
- length: XO.length
+ index: IO,
+ length: FO.length
}
- }, Qle(o.video, t), q("/api/play", { id: t.id }).catch(() => {}), uk(null);
+ }, Ble(o.video, t), q("/api/play", { id: t.id }).catch(() => {}), YO(null);
} catch {
- pk(r), n === KO && uk(null);
+ XO(r), n === jO && YO(null);
} finally {
- n === KO && (QO = !1);
+ n === jO && (LO = !1);
}
}
-async function bk(e) {
- if (QO || !GO.open) return;
- let t = KO;
- if (ZO += e, uk("切换中…", XO[ZO] ?? null), ZO >= XO.length - 3 && !$O) {
- $O = !0;
+async function rk(e) {
+ if (LO || !AO.open) return;
+ let t = jO;
+ if (IO += e, YO("切换中…", FO[IO] ?? null), IO >= FO.length - 3 && !RO) {
+ RO = !0;
try {
- JO += 1;
- let e = await vk();
- t === KO && (XO = Gle(XO, e));
+ NO += 1;
+ let e = await tk();
+ t === jO && (FO = Ale(FO, e));
} catch {} finally {
- $O = !1;
+ RO = !1;
}
}
- t === KO && (ZO >= XO.length && (ZO = 0), ZO < 0 && (ZO = XO.length - 1), await yk(e));
+ t === jO && (IO >= FO.length && (IO = 0), IO < 0 && (IO = FO.length - 1), await nk(e));
}
-async function $le(e) {
- let t = ++KO;
- xk(), qO += 1, JO = 0, YO = Vle(sk().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), GO = {
- ...GO,
+async function Vle(e) {
+ let t = ++jO;
+ ik(), MO += 1, NO = 0, PO = Ele(KO().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), AO = {
+ ...AO,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), uk("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), YO("加载内容…");
try {
- let n = await vk();
+ let n = await tk();
if (e && !n.some((t) => t.id === e)) {
- let t = await RO(e).catch((e) => {
- if (e instanceof CO) return null;
+ let t = await wO(e).catch((e) => {
+ if (e instanceof lO) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== KO) return;
- if (XO = n, !XO.length) {
- Sk(), sk().warn("当前筛选下没有可直接播放的内容");
+ if (t !== jO) return;
+ if (FO = n, !FO.length) {
+ ak(), KO().warn("当前筛选下没有可直接播放的内容");
return;
}
- ZO = Math.max(0, XO.findIndex((t) => t.id === e)), await yk();
+ IO = Math.max(0, FO.findIndex((t) => t.id === e)), await nk();
} catch {
- if (t !== KO) return;
- uk(null), Sk();
+ if (t !== jO) return;
+ YO(null), ak();
}
}
-function xk() {
- clearInterval(ik), ik = 0, Ok(), Ek = null, ak = null, ok = !1, [...tk].forEach(pk), QO = !1;
+function ik() {
+ clearInterval(UO), UO = 0, dk(), lk = null, WO = null, GO = !1, [...BO].forEach(XO), LO = !1;
}
-function Sk() {
- GO.open && (KO++, xk(), GO = BO, document.body.removeAttribute("data-immerse-open"), ck(), sk().closed());
+function ak() {
+ AO.open && (jO++, ik(), AO = TO, document.body.removeAttribute("data-immerse-open"), qO(), KO().closed());
}
-var Ck = 0, wk = null, Tk = 0, Ek = null, Dk = 0;
-function Ok() {
- clearTimeout(Ck), Ck = 0, wk = null;
+var ok = 0, sk = null, ck = 0, lk = null, uk = 0;
+function dk() {
+ clearTimeout(ok), ok = 0, sk = null;
}
-function eue(e) {
- let t = ek?.video;
+function Hle(e) {
+ let t = zO?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (wk && wk.side === n && r - wk.at <= 280) {
- Ok(), ole(t, sk().seekSeconds() * n);
+ if (sk && sk.side === n && r - sk.at <= 280) {
+ dk(), Gce(t, KO().seekSeconds() * n);
return;
}
- Ck && (clearTimeout(Ck), Ck = 0, sO(t)), wk = {
+ ok && (clearTimeout(ok), ok = 0, qD(t)), sk = {
side: n,
at: r
- }, Ck = window.setTimeout(() => {
- Ck = 0, wk = null, GO.open && sO(ek?.video);
+ }, ok = window.setTimeout(() => {
+ ok = 0, sk = null, AO.open && qD(zO?.video);
}, 280);
}
-function tue() {
- Date.now() < Tk || sO(ek?.video);
+function Ule() {
+ Date.now() < ck || qD(zO?.video);
}
-var kk = (e) => WO?.bar.toggleAttribute("data-scrubbing", e);
-function Ak(e) {
- WO && (WO.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var fk = (e) => kO?.bar.toggleAttribute("data-scrubbing", e);
+function pk(e) {
+ kO && (kO.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function jk(e) {
+function mk(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- Ek = null;
+ lk = null;
return;
}
- let n = ek?.video;
- Ek = {
+ let n = zO?.video;
+ lk = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function Mk(e) {
- if (!Ek || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - Ek.x, n = e.touches[0].clientY - Ek.y;
- if (!Ek.axis) {
+function hk(e) {
+ if (!lk || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - lk.x, n = e.touches[0].clientY - lk.y;
+ if (!lk.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- Ek.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Ek.axis === "x" && kk(!0);
+ lk.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", lk.axis === "x" && fk(!0);
}
- if (Ek.axis !== "x") return;
- let r = ek?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), Ek.to = Math.min(i, Math.max(0, Ek.from + t / window.innerWidth * i)), Ak(Ek.to / i));
+ if (lk.axis !== "x") return;
+ let r = zO?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), lk.to = Math.min(i, Math.max(0, lk.from + t / window.innerWidth * i)), pk(lk.to / i));
}
-function Nk(e) {
- if (!Ek) return;
- let t = Ek;
- if (Ek = null, Tk = Date.now() + 700, kk(!1), t.axis === "x") {
- let e = ek?.video;
+function gk(e) {
+ if (!lk) return;
+ let t = lk;
+ if (lk = null, ck = Date.now() + 700, fk(!1), t.axis === "x") {
+ let e = zO?.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) {
- Ok(), bk(i > 0 ? 1 : -1);
+ dk(), rk(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), eue(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Hle(n.clientX));
}
-function Pk() {
- Ek = null, kk(!1);
+function _k() {
+ lk = null, fk(!1);
}
-function Fk(e) {
+function vk(e) {
let t = Date.now();
- t - Dk < 260 || (Dk = t, bk(e.deltaY > 0 ? 1 : -1));
+ t - uk < 260 || (uk = t, rk(e.deltaY > 0 ? 1 : -1));
}
-function Ik(e) {
- let t = WO.bar.getBoundingClientRect();
+function yk(e) {
+ let t = kO.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function nue(e) {
- ak?.duration() && (ok = !0, kk(!0), e.currentTarget.setPointerCapture(e.pointerId), Ak(Ik(e)), e.preventDefault());
+function bk(e) {
+ WO?.duration() && (GO = !0, fk(!0), e.currentTarget.setPointerCapture(e.pointerId), pk(yk(e)), e.preventDefault());
}
-function rue(e) {
- ok && Ak(Ik(e));
+function xk(e) {
+ GO && pk(yk(e));
}
-function iue(e) {
- if (!ok) return;
- ok = !1, kk(!1);
- let t = ak?.duration();
- ak && t && (ak.video.currentTime = t * Ik(e));
+function Wle(e) {
+ if (!GO) return;
+ GO = !1, fk(!1);
+ let t = WO?.duration();
+ WO && t && (WO.video.currentTime = t * yk(e));
}
-function aue() {
- ok = !1, kk(!1);
+function Gle() {
+ GO = !1, fk(!1);
}
-async function Lk(e, t) {
- let n = await q(vO, {
+async function Sk(e, t) {
+ let n = await q(iO, {
id: e,
kind: t
- }), r = z.getQueryData(hO(e));
- if (!r) return pO(e, {
+ }), r = z.getQueryData(tO(e));
+ if (!r) return $D(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -34211,7 +33683,7 @@ async function Lk(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return z.setQueryData(hO(e), i), pO(e, {
+ return z.setQueryData(tO(e), i), $D(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -34219,7 +33691,7 @@ async function Lk(e, t) {
o_count: i.o_count
}), n;
}
-var oue = [
+var Kle = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -34236,31 +33708,31 @@ var oue = [
label: "记一次高潮"
}
];
-function Rk(e) {
- return yw({
- queryKey: hO(e ?? 0),
- queryFn: ({ signal: t }) => wO(e, t),
+function Ck(e) {
+ return vw({
+ queryKey: tO(e ?? 0),
+ queryFn: ({ signal: t }) => uO(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function sue({ kind: e, glyph: t, label: n, id: r }) {
- let i = Rk(r), a = Sw({
+function qle({ kind: e, glyph: t, label: n, id: r }) {
+ let i = Ck(r), a = xw({
mutationFn: async (t) => {
- let n = z.getQueryData(hO(t))?.feedback || null;
+ let n = z.getQueryData(tO(t))?.feedback || null;
return {
- result: await Lk(t, e),
+ result: await Sk(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- sk().toast(LO(e, t), { undo: async () => {
- e === "o" ? await Lk(r, "o-undo") : (t.feedback && await Lk(r, t.feedback), n && await Lk(r, n));
+ KO().toast(CO(e, t), { undo: async () => {
+ e === "o" ? await Sk(r, "o-undo") : (t.feedback && await Sk(r, t.feedback), n && await Sk(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- bk(1);
+ rk(1);
}, 260);
},
- onError: (e) => sk().failure("更新反馈", e)
+ onError: (e) => KO().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-immerse-action": "",
@@ -34291,11 +33763,11 @@ function sue({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function cue({ shown: e }) {
- let t = e?.item ?? null, n = Rk(t?.id ?? null), r = n ? zO(n) : null, i = sk(), a = (e) => {
- e.preventDefault(), n && (Sk(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Jle({ shown: e }) {
+ let t = e?.item ?? null, n = Ck(t?.id ?? null), r = n ? jle(n) : null, i = KO(), a = (e) => {
+ e.preventDefault(), n && (ak(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (Sk(), i.openItem(t.id));
+ t && (ak(), i.openItem(t.id));
}, s = r ? ue(r.name, r.ref, Oe(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-immerse-ui": "",
@@ -34324,18 +33796,18 @@ function cue({ shown: e }) {
})]
});
}
-var lue = { __html: w("媒体加载中") };
-function uue({ view: e }) {
+var Yle = { __html: w("媒体加载中") };
+function Xle({ 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 WO = {
+ return kO = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", jk, { passive: !0 }), e.addEventListener("touchmove", Mk, { passive: !1 }), e.addEventListener("touchend", Nk, { passive: !1 }), e.addEventListener("touchcancel", Pk, { passive: !0 }), e.addEventListener("wheel", Fk, { passive: !0 }), () => {
- e.removeEventListener("touchstart", jk), e.removeEventListener("touchmove", Mk), e.removeEventListener("touchend", Nk), e.removeEventListener("touchcancel", Pk), e.removeEventListener("wheel", Fk), WO = null;
+ }, e.addEventListener("touchstart", mk, { passive: !0 }), e.addEventListener("touchmove", hk, { passive: !1 }), e.addEventListener("touchend", gk, { passive: !1 }), e.addEventListener("touchcancel", _k, { passive: !0 }), e.addEventListener("wheel", vk, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", mk), e.removeEventListener("touchmove", hk), e.removeEventListener("touchend", gk), e.removeEventListener("touchcancel", _k), e.removeEventListener("wheel", vk), kO = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -34352,10 +33824,10 @@ function uue({ view: e }) {
children: [/* @__PURE__ */ (0, U.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: tue
+ onClick: Ule
}), /* @__PURE__ */ (0, U.jsx)("div", {
"data-immerse-actions": "",
- children: oue.map((e) => /* @__PURE__ */ (0, U.jsx)(sue, {
+ children: Kle.map((e) => /* @__PURE__ */ (0, U.jsx)(qle, {
...e,
id: a
}, e.kind))
@@ -34368,7 +33840,7 @@ function uue({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, U.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: lue
+ dangerouslySetInnerHTML: Yle
}), /* @__PURE__ */ (0, U.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, U.jsx)("button", {
@@ -34376,7 +33848,7 @@ function uue({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: Sk,
+ onClick: ak,
children: /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, U.jsx)("use", { href: "#i-x" })
@@ -34385,71 +33857,71 @@ function uue({ view: e }) {
/* @__PURE__ */ (0, U.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: nue,
- onPointerMove: rue,
- onPointerUp: iue,
- onPointerCancel: aue,
+ onPointerDown: bk,
+ onPointerMove: xk,
+ onPointerUp: Wle,
+ onPointerCancel: Gle,
children: /* @__PURE__ */ (0, U.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, U.jsx)(cue, { shown: e.shown })
+ /* @__PURE__ */ (0, U.jsx)(Jle, { shown: e.shown })
]
});
}
-var due = {
- open: $le,
- close: Sk,
- isOpen: () => GO.open,
- activeVideo: () => GO.open ? ek?.video ?? null : null
+var Zle = {
+ open: Vle,
+ close: ak,
+ isOpen: () => AO.open,
+ activeVideo: () => AO.open ? zO?.video ?? null : null
};
-function fue(e) {
- if (!GO.open) return;
+function Qle(e) {
+ if (!AO.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && bk(1), e.key === "ArrowUp" && bk(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && rk(1), e.key === "ArrowUp" && rk(-1));
}
-function pue(e) {
- let t = !VO;
- return VO = e, ck(), t && (document.addEventListener("keydown", fue), addEventListener("resize", () => {
- GO.open && _k();
+function $le(e) {
+ let t = !EO;
+ return EO = e, qO(), t && (document.addEventListener("keydown", Qle), addEventListener("resize", () => {
+ AO.open && $O();
}), addEventListener("pagehide", () => {
- tk.forEach((e) => HD(e.session));
- })), due;
+ BO.forEach((e) => OD(e.session));
+ })), Zle;
}
//#endregion
//#region src/manage-header.ts
-var mue = {
+var eue = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, hue = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), gue = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function _ue(e) {
+}, tue = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), nue = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function rue(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = mue[e.path] ?? "";
+ let n = eue[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
crumb: n,
- compact: hue.has(e.path) || e.section === "configuration",
+ compact: tue.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: gue(e.trash),
+ text: nue(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var vue = "<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 iue = "<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 zk({ name: e }) {
+function wk({ name: e }) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
});
}
-function yue({ name: e }) {
+function aue({ name: e }) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -34458,29 +33930,29 @@ function yue({ name: e }) {
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var Bk = null, Vk = null, Hk = null;
-function bue() {
- let e = Bk, t = Hk;
- !e || !Vk || !t || (0, Dt.flushSync)(() => Vk.render(/* @__PURE__ */ (0, U.jsx)(Cue, {
+var Tk = null, Ek = null, Dk = null;
+function oue() {
+ let e = Tk, t = Dk;
+ !e || !Ek || !t || (0, Dt.flushSync)(() => Ek.render(/* @__PURE__ */ (0, U.jsx)(lue, {
host: e,
props: t
})));
}
-var xue = { render(e) {
- Hk = e, bue();
+var sue = { render(e) {
+ Dk = e, oue();
} };
-function Sue(e) {
- return Bk = e, Hk = null, e.root.replaceChildren(), Vk = (0, Ot.createRoot)(e.root), xue;
+function cue(e) {
+ return Tk = e, Dk = null, e.root.replaceChildren(), Ek = (0, Ot.createRoot)(e.root), sue;
}
-function Cue({ host: e, props: t }) {
- let n = _ue(t);
+function lue({ host: e, props: t }) {
+ let n = rue(t);
return n ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- /* @__PURE__ */ (0, U.jsx)(wue, {
+ /* @__PURE__ */ (0, U.jsx)(uue, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, U.jsx)(Tue, {
+ n.crumb ? /* @__PURE__ */ (0, U.jsx)(due, {
host: e,
label: n.crumb
}) : null,
@@ -34489,29 +33961,29 @@ function Cue({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, U.jsx)(Eue, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, U.jsx)(fue, {
host: e,
lede: n.lede
})
] }) : null;
}
-var Uk = null;
-function Wk(e, t, n) {
+var Ok = null;
+function kk(e, t, n) {
e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);
}
-function wue({ host: e, section: t, menu: n }) {
+function uue({ 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 || (Wk(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (Uk = {
+ n && !n.offsetWidth || (kk(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (Ok = {
x: n.offsetLeft,
width: n.offsetWidth
}));
};
return (0, B.useLayoutEffect)(() => {
let e = r.current, t = i.current;
- Uk ? Wk(t, Uk.x, Uk.width) : a();
+ Ok ? kk(t, Ok.x, Ok.width) : a();
let n = 0, o = requestAnimationFrame(() => {
t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);
}), s = new ResizeObserver(a);
@@ -34534,7 +34006,7 @@ function wue({ host: e, section: t, menu: n }) {
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, U.jsx)(zk, { name: i }), /* @__PURE__ */ (0, U.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, U.jsx)(wk, { name: i }), /* @__PURE__ */ (0, U.jsx)("span", { children: r })]
}, n);
}), /* @__PURE__ */ (0, U.jsx)("span", {
ref: i,
@@ -34544,7 +34016,7 @@ function wue({ host: e, section: t, menu: n }) {
})
});
}
-function Tue({ host: e, label: t }) {
+function due({ host: e, label: t }) {
return /* @__PURE__ */ (0, U.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@ -34554,20 +34026,20 @@ function Tue({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, U.jsx)(zk, { name: "chevron-right" })] }), /* @__PURE__ */ (0, U.jsx)("li", {
+ }), /* @__PURE__ */ (0, U.jsx)(wk, { name: "chevron-right" })] }), /* @__PURE__ */ (0, U.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, U.jsx)("span", { children: t })
})] })
});
}
-function Eue({ host: e, lede: t }) {
+function fue({ host: e, lede: t }) {
return /* @__PURE__ */ (0, U.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: vue }
- }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Due, { text: t.text }), t.total ? /* @__PURE__ */ (0, U.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: iue }
+ }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(pue, { text: t.text }), t.total ? /* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -34577,7 +34049,7 @@ function Eue({ host: e, lede: t }) {
}) : null] })
});
}
-function Due({ text: e }) {
+function pue({ text: e }) {
let t = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
T(t.current, e);
@@ -34588,7 +34060,7 @@ function Due({ text: e }) {
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Gk = dr({
+var Ak = dr({
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",
@@ -34607,16 +34079,55 @@ var Gk = dr({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Kk({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function jk({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, U.jsx)("span", {
ref: r,
- className: ur(Gk.base, Gk.variant[e], Gk.color[t], n),
+ className: ur(Ak.base, Ak.variant[e], Ak.color[t], n),
...i
});
}
//#endregion
+//#region src/react/components/empty-state.tsx
+var mue = {
+ 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 Mk({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+ let a = i === "page";
+ return /* @__PURE__ */ (0, U.jsxs)("div", {
+ "data-empty-state": "",
+ className: `flex flex-col items-center gap-2 text-center ${mue[i]}`,
+ children: [
+ a ? /* @__PURE__ */ (0, U.jsx)("span", {
+ "aria-hidden": !0,
+ className: "mb-2 flex size-empty-glyph items-center justify-center rounded-floating border border-text-primary/15 p-2.5 text-text-secondary",
+ children: /* @__PURE__ */ (0, U.jsx)(e, {
+ "aria-hidden": !0,
+ className: "size-8"
+ })
+ }) : /* @__PURE__ */ (0, U.jsx)(e, {
+ "aria-hidden": !0,
+ className: "size-6 text-text-tertiary"
+ }),
+ /* @__PURE__ */ (0, U.jsx)("h3", {
+ className: `${a ? "text-body-semibold" : "text-headline-medium"} text-text-primary`,
+ children: t
+ }),
+ /* @__PURE__ */ (0, U.jsx)("p", {
+ className: `${a ? "max-w-empty-copy leading-empty-copy" : "max-w-prose"} text-body-2-regular text-text-secondary`,
+ children: r
+ }),
+ n ? /* @__PURE__ */ (0, U.jsx)("div", {
+ className: "mt-2 flex flex-wrap justify-center gap-2",
+ children: n
+ }) : null
+ ]
+ });
+}
+//#endregion
//#region src/react/components/page.tsx
-function qk({ children: e }) {
+function Nk({ children: e }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -34624,7 +34135,7 @@ function qk({ children: e }) {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Oue({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+function hue({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
return /* @__PURE__ */ (0, U.jsxs)(vc, {
"data-label": "true",
...a,
@@ -34636,7 +34147,7 @@ function Oue({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, U.jsx)(hoe, {
+ n && /* @__PURE__ */ (0, U.jsx)($ae, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -34645,7 +34156,7 @@ function Oue({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function kue({ isInvalid: e = !1, className: t, ...n }) {
+function gue({ isInvalid: e = !1, className: t, ...n }) {
return /* @__PURE__ */ (0, U.jsx)(Pc, {
slot: e ? "errorMessage" : "description",
...n,
@@ -34654,15 +34165,15 @@ function kue({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var Jk = (0, B.createContext)({});
-function Yk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, U.jsx)(Jk.Provider, {
+var Pk = (0, B.createContext)({});
+function Fk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, U.jsx)(Pk.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, U.jsx)(Ate, {
+ children: /* @__PURE__ */ (0, U.jsx)(jte, {
...a,
"data-input-size": e,
className: ur("group flex h-max w-full flex-col items-start gap-1", r),
@@ -34670,8 +34181,8 @@ function Yk({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-Yk.displayName = "TextField";
-var Xk = dr({
+Fk.displayName = "TextField";
+var Ik = dr({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -34700,44 +34211,44 @@ var Xk = dr({
].join(" "),
icon: "size-5 shrink-0"
});
-function Zk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, B.useContext)(Jk), u = e ?? l.size ?? "medium", d = r != null;
+function Lk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, B.useContext)(Pk), u = e ?? l.size ?? "medium", d = r != null;
return /* @__PURE__ */ (0, U.jsx)(Ol, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => ur(Xk.field, d ? Xk.fieldWithAddonSize[u] : Xk.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 }) => ur(Ik.field, d ? Ik.fieldWithAddonSize[u] : Ik.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, U.jsxs)("div", {
- className: Xk.content,
+ className: Ik.content,
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
- className: Xk.leftSection,
+ className: Ik.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, U.jsx)(t, {
- className: Xk.icon,
+ className: Ik.icon,
"aria-hidden": !0
}) : null, /* @__PURE__ */ (0, U.jsx)(jl, {
ref: o,
...c,
- className: ur(Xk.input, l.inputClassName, a)
+ className: ur(Ik.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, U.jsx)(n, {
- className: Xk.icon,
+ className: Ik.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Zk.displayName = "InputBase";
-function Qk({ 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, U.jsx)(Yk, {
+Lk.displayName = "InputBase";
+function Rk({ 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, U.jsx)(Fk, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- e && /* @__PURE__ */ (0, U.jsx)(Oue, {
+ e && /* @__PURE__ */ (0, U.jsx)(hue, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, U.jsx)(Zk, {
+ /* @__PURE__ */ (0, U.jsx)(Lk, {
ref: c,
groupRef: l,
placeholder: r,
@@ -34746,17 +34257,17 @@ function Qk({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, U.jsx)(kue, {
+ t && /* @__PURE__ */ (0, U.jsx)(gue, {
isInvalid: d,
children: t
})
] })
});
}
-Qk.displayName = "Input";
+Rk.displayName = "Input";
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Aue(e) {
+function _ue(e) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -34770,7 +34281,7 @@ function Aue(e) {
})
});
}
-function jue(e) {
+function vue(e) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -34784,7 +34295,7 @@ function jue(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Mue(e, t, n) {
+function yue(e, t, n) {
(0, B.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -34798,7 +34309,7 @@ function Mue(e, t, n) {
n
]);
}
-function Nue(e, t) {
+function bue(e, t) {
let n = (0, B.useRef)(!1);
return (0, B.useEffect)(() => {
if (!e) return;
@@ -34812,11 +34323,11 @@ function Nue(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var $k = (0, B.createContext)("md");
-function eA({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var zk = (0, B.createContext)("md");
+function Bk({ 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);
- Mue(d, () => f(!1), [l, u]);
- let p = Nue(d, l);
+ yue(d, () => f(!1), [l, u]);
+ let p = bue(d, l);
return /* @__PURE__ */ (0, U.jsx)(See, {
ref: s,
...c,
@@ -34829,16 +34340,16 @@ function eA({ className: e, triggerClassName: t, popoverClassName: n, size: r =
children: [/* @__PURE__ */ (0, U.jsx)(Tee, {
className: ur("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, U.jsx)(Aue, { className: ur("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, U.jsx)(_ue, { className: ur("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
}), /* @__PURE__ */ (0, U.jsx)(tm, {
ref: u,
isNonModal: !0,
offset: 4,
- className: ur(Eoe, _T, "p-2", n),
+ className: ur(uoe, rT, "p-2", n),
children: /* @__PURE__ */ (0, U.jsx)($d, {
items: a,
- className: ur(Doe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, U.jsx)($k.Provider, {
+ className: ur(doe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, U.jsx)(zk.Provider, {
value: r,
children: i
})
@@ -34846,21 +34357,21 @@ function eA({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function tA({ className: e, children: t, ...n }) {
- let r = (0, B.useContext)($k);
+function Vk({ className: e, children: t, ...n }) {
+ let r = (0, B.useContext)(zk);
return /* @__PURE__ */ (0, U.jsx)(rf, {
...n,
- className: (t) => ur(vT, 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) => ur(iT, 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/activity/tasks.ts
-var nA = "/api/tasks", rA = ["tasks"], Pue = (e, t) => HC(`${nA}?${new URLSearchParams({
+var Hk = "/api/tasks", Uk = ["tasks"], xue = (e, t) => VC(`${Hk}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function iA(...e) {
+function Wk(...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) => {
@@ -34868,26 +34379,26 @@ function iA(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Fue = 2e3, Iue = 1e4, Lue = (e) => e?.running.length ? Fue : Iue, aA = (e) => HC(nA, e);
-async function Rue(e) {
+var Sue = 2e3, Cue = 1e4, wue = (e) => e?.running.length ? Sue : Cue, Gk = (e) => VC(Hk, e);
+async function Tue(e) {
await z.fetchQuery({
- queryKey: rA,
- queryFn: () => aA(e)
+ queryKey: Uk,
+ queryFn: () => Gk(e)
});
}
-var oA = {
+var Kk = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, zue = {
+}, Eue = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Bue = (e) => zue[e] || e, Vue = {
+}, Due = (e) => Eue[e] || e, Oue = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -34917,7 +34428,7 @@ var oA = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function Hue(e) {
+function kue(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -34926,7 +34437,7 @@ function Hue(e) {
}
return t;
}
-function Uue(e, t) {
+function Aue(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -34948,19 +34459,19 @@ function Uue(e, t) {
}
return n;
}
-var Wue = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), sA = (e) => e.status === "pending" || e.status === "running";
-function cA(e) {
+var jue = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), qk = (e) => e.status === "pending" || e.status === "running";
+function Mue(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 || fA(e.result_summary) || (sA(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || Xk(e.result_summary) || (qk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function lA(e) {
+function Jk(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 uA(e) {
+function Yk(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -34970,7 +34481,7 @@ function uA(e) {
minute: "2-digit"
});
}
-var dA = /* @__PURE__ */ new Set([
+var Nue = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -34979,28 +34490,28 @@ var dA = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function fA(e) {
- return Object.entries(e || {}).filter(([e, t]) => !dA.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Vue[e] || e} ${t}`).join(" · ");
+function Xk(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Nue.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Oue[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var pA = "/api/downloads", mA = ["downloads"], hA = "/api/downloads/cancel", gA = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, _A = {
+var Zk = "/api/downloads", Qk = ["downloads"], Pue = "/api/downloads/cancel", Fue = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Iue = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, vA = {
+}, Lue = {
submitted: "已提交,远端开始下载后这里会显示进度。",
adopted: "这个磁力已经有任务了,接着跟进那一条,没有重复提交。",
adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",
refused: "这个资源被判为违规,不再提交。",
failed: "提交没有成功。"
-}, yA = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, bA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function xA({ prefill: e }) {
- let t = yw({
- queryKey: mA,
- queryFn: ({ signal: e }) => HC(`${pA}?limit=50`, e),
- refetchInterval: (e) => gA(e.state.data)
+}, Rue = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, $k = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function zue({ prefill: e }) {
+ let t = vw({
+ queryKey: Qk,
+ queryFn: ({ signal: e }) => VC(`${Zk}?limit=50`, e),
+ refetchInterval: (e) => Fue(e.state.data)
}), n = t.data;
if (!n) return t.error ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
@@ -35012,7 +34523,7 @@ function xA({ prefill: e }) {
tone: "error",
children: K(t.error)
}) : null,
- n.available ? r.length ? /* @__PURE__ */ (0, U.jsx)(SA, {
+ n.available ? r.length ? /* @__PURE__ */ (0, U.jsx)(Bue, {
snapshot: n,
prefill: e
}) : /* @__PURE__ */ (0, U.jsx)(Y, {
@@ -35025,15 +34536,15 @@ function xA({ prefill: e }) {
n.tasks.length ? /* @__PURE__ */ (0, U.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, U.jsx)(Gue, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, U.jsx)(Hue, {
task: e,
writable: n.available
}, e.id))
}) : null
] });
}
-function SA({ snapshot: e, prefill: t }) {
- let n = rw(), r = e.providers.filter((e) => e.configured), [i, a] = (0, B.useState)(r[0].key), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(t?.code ?? ""), [u, d] = (0, B.useState)(r[0].target), [f, p] = (0, B.useState)(null), m = kT(), h = (0, B.useRef)(null);
+function Bue({ snapshot: e, prefill: t }) {
+ let n = nw(), r = e.providers.filter((e) => e.configured), [i, a] = (0, B.useState)(r[0].key), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(t?.code ?? ""), [u, d] = (0, B.useState)(r[0].target), [f, p] = (0, B.useState)(null), m = hT(), h = (0, B.useRef)(null);
(0, B.useEffect)(() => {
t && h.current?.focus();
}, [t]);
@@ -35053,14 +34564,14 @@ function SA({ snapshot: e, prefill: t }) {
title: t?.title,
origin: t?.origin
};
- p(null), m.run("submit", (e) => q(pA, r, "POST", e), (e) => {
- p(e), e.ok && s(""), n.invalidateQueries({ queryKey: mA });
+ p(null), m.run("submit", (e) => q(Zk, r, "POST", e), (e) => {
+ p(e), e.ok && s(""), n.invalidateQueries({ queryKey: Qk });
});
},
- children: /* @__PURE__ */ (0, U.jsxs)(FT, { children: [
- /* @__PURE__ */ (0, U.jsxs)(BT, { children: [
- t?.title ? /* @__PURE__ */ (0, U.jsx)(HT, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: /* @__PURE__ */ (0, U.jsxs)(xT, { children: [
+ /* @__PURE__ */ (0, U.jsxs)(ET, { children: [
+ t?.title ? /* @__PURE__ */ (0, U.jsx)(OT, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
ref: h,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -35071,19 +34582,19 @@ function SA({ snapshot: e, prefill: t }) {
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, U.jsx)(WT, { children: "下载到" }), /* @__PURE__ */ (0, U.jsx)(eA, {
+ children: [/* @__PURE__ */ (0, U.jsx)(AT, { children: "下载到" }), /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "下载到",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && _(String(e));
},
- children: r.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: r.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e.key,
children: e.label
}, e.key))
})]
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "目标目录",
placeholder: g.target || "/云下载",
autoComplete: "off",
@@ -35092,7 +34603,7 @@ function SA({ snapshot: e, prefill: t }) {
value: u,
onChange: d
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -35101,15 +34612,15 @@ function SA({ snapshot: e, prefill: t }) {
onChange: l
})
] }),
- f ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ f ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(CA, { result: f })
+ children: /* @__PURE__ */ (0, U.jsx)(Vue, { result: f })
}) : null,
- m.error ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ m.error ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(UT, { children: m.error })
+ children: /* @__PURE__ */ (0, U.jsx)(kT, { children: m.error })
}) : null,
- /* @__PURE__ */ (0, U.jsx)(VT, {
+ /* @__PURE__ */ (0, U.jsx)(DT, {
status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,
children: /* @__PURE__ */ (0, U.jsx)(J, {
type: "submit",
@@ -35121,23 +34632,23 @@ function SA({ snapshot: e, prefill: t }) {
] })
});
}
-function CA({ result: e }) {
- let t = bA(e.task), n = vA[e.outcome];
- return e.outcome === "failed" ? /* @__PURE__ */ (0, U.jsx)(UT, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, U.jsx)(UT, { children: n }) : /* @__PURE__ */ (0, U.jsx)(HT, {
+function Vue({ result: e }) {
+ let t = $k(e.task), n = Lue[e.outcome];
+ return e.outcome === "failed" ? /* @__PURE__ */ (0, U.jsx)(kT, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, U.jsx)(kT, { children: n }) : /* @__PURE__ */ (0, U.jsx)(OT, {
role: "status",
children: n
});
}
-function Gue({ task: e, writable: t }) {
- let n = rw(), r = kT(), [i, a] = (0, B.useState)(!1), o = bA(e), s = e.state === "failed", c = [
+function Hue({ task: e, writable: t }) {
+ let n = nw(), r = hT(), [i, a] = (0, B.useState)(!1), o = $k(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- uA(e.submitted_at)
+ Yk(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: mA });
+ n.invalidateQueries({ queryKey: Qk });
}, u = () => {
- r.run("cancel", (t) => q(hA, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => q(Pue, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -35147,14 +34658,14 @@ function Gue({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => q(pA, t, "POST", e), l);
+ r.run("resubmit", (e) => q(Zk, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
};
return /* @__PURE__ */ (0, U.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: bT({
+ className: oT({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -35166,9 +34677,9 @@ function Gue({ task: e, writable: t }) {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, U.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: yA(e)
- }), /* @__PURE__ */ (0, U.jsx)(Kk, {
- color: _A[e.state] ?? "neutral",
+ children: Rue(e)
+ }), /* @__PURE__ */ (0, U.jsx)(jk, {
+ color: Iue[e.state] ?? "neutral",
children: e.state_label
})]
}),
@@ -35176,7 +34687,7 @@ function Gue({ 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, U.jsx)(NT, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, U.jsx)(yT, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -35185,7 +34696,7 @@ function Gue({ 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, U.jsx)(UT, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: r.error }) : null,
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -35223,23 +34734,23 @@ function Gue({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Kue = {
+var Uue = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function wA({ status: e }) {
- return /* @__PURE__ */ (0, U.jsx)(Kk, {
- color: Kue[e] ?? "neutral",
- children: Bue(e)
+function eA({ status: e }) {
+ return /* @__PURE__ */ (0, U.jsx)(jk, {
+ color: Uue[e] ?? "neutral",
+ children: Due(e)
});
}
-function que({ rows: e }) {
+function Wue({ rows: e }) {
return /* @__PURE__ */ (0, U.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = cA(e);
+ let t = Mue(e);
return /* @__PURE__ */ (0, U.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -35249,7 +34760,7 @@ function que({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, U.jsx)(wA, { status: e.status }),
+ /* @__PURE__ */ (0, U.jsx)(eA, { status: e.status }),
t ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -35259,12 +34770,12 @@ function que({ rows: e }) {
})
});
}
-function TA({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function tA({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, U.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: bT({
+ className: oT({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -35278,7 +34789,7 @@ function TA({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, U.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, U.jsx)(wA, { status: e.status })]
+ }), /* @__PURE__ */ (0, U.jsx)(eA, { status: e.status })]
}),
/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -35287,7 +34798,7 @@ function TA({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, U.jsx)(que, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, U.jsx)(Wue, { rows: i }) : null,
r ? /* @__PURE__ */ (0, U.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, U.jsx)("p", {
@@ -35298,15 +34809,15 @@ function TA({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Jue({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = lA(e.elapsed_seconds), o = [oA[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, U.jsx)(TA, {
+function Gue({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Jk(e.elapsed_seconds), o = [Kk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, U.jsx)(tA, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, U.jsx)(NT, {
+ children: [/* @__PURE__ */ (0, U.jsx)(yT, {
label: i,
value: r,
max: n
@@ -35321,20 +34832,20 @@ function Jue({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, U.jsx)(jT, { label: i })
+ }) : /* @__PURE__ */ (0, U.jsx)(_T, { label: i })
});
}
-function EA({ run: e, followups: t, runs: n }) {
- let r = fA(e.result_summary), i = lA(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- oA[e.trigger] || e.trigger,
+function nA({ run: e, followups: t, runs: n }) {
+ let r = Xk(e.result_summary), i = Jk(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ Kk[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${uA(a.finished_at)} – ${uA(e.finished_at)}`
+ `${Yk(a.finished_at)} – ${Yk(e.finished_at)}`
] : [
- oA[e.trigger] || e.trigger,
- uA(e.finished_at),
+ Kk[e.trigger] || e.trigger,
+ Yk(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, U.jsx)(TA, {
+ return /* @__PURE__ */ (0, U.jsx)(tA, {
run: e,
meta: o,
footer: e.error,
@@ -35345,7 +34856,7 @@ function EA({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function DA({ title: e, children: t }) {
+function rA({ title: e, children: t }) {
let n = (0, B.useId)();
return /* @__PURE__ */ (0, U.jsxs)("section", {
"aria-labelledby": n,
@@ -35357,41 +34868,41 @@ function DA({ title: e, children: t }) {
}), t]
});
}
-function OA({ live: e = !1, children: t }) {
+function iA({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, U.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Yue({ prefill: e }) {
- let t = yw({
- queryKey: rA,
- queryFn: ({ signal: e }) => aA(e),
- refetchInterval: (e) => Lue(e.state.data)
+function aA({ prefill: e }) {
+ let t = vw({
+ queryKey: Uk,
+ queryFn: ({ signal: e }) => Gk(e),
+ refetchInterval: (e) => wue(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, B.useState)([]), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(r);
- r !== c && (l(r), i.length && c && a(iA(i, c)));
- let u = Sw({
- mutationFn: ({ oldest: e }) => Pue(e),
+ r !== c && (l(r), i.length && c && a(Wk(i, c)));
+ let u = xw({
+ mutationFn: ({ oldest: e }) => xue(e),
onSuccess: (e, { shown: t }) => {
- a((n) => iA(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => Wk(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? K(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, U.jsx)(qk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, U.jsx)(Nk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = iA(n.finished || [], i), p = [
+ let f = Wk(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = Hue(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = kue(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(sA)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Uue(w, (e) => Wue(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, U.jsxs)(qk, { children: [
+ }, x = _.filter((e) => m.get(e.id)?.some(qk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Aue(w, (e) => jue(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, U.jsxs)(Nk, { children: [
d ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
children: d
@@ -35400,20 +34911,20 @@ function Yue({ prefill: e }) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, U.jsx)(Ew, {
+ E ? /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: aT,
+ icon: Gw,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- /* @__PURE__ */ (0, U.jsx)(DA, {
+ /* @__PURE__ */ (0, U.jsx)(rA, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, U.jsxs)(OA, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, U.jsxs)(iA, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, U.jsx)(Jue, {
+ children: [S.map((e) => /* @__PURE__ */ (0, U.jsx)(Gue, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, U.jsx)(EA, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, U.jsx)(nA, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -35422,17 +34933,17 @@ function Yue({ prefill: e }) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, U.jsx)(DA, {
+ C.length ? /* @__PURE__ */ (0, U.jsx)(rA, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, U.jsx)(OA, { children: C.map((e) => /* @__PURE__ */ (0, U.jsx)(EA, {
+ children: /* @__PURE__ */ (0, U.jsx)(iA, { children: C.map((e) => /* @__PURE__ */ (0, U.jsx)(nA, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, U.jsxs)(DA, {
+ w.length || y ? /* @__PURE__ */ (0, U.jsxs)(rA, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, U.jsx)(OA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, U.jsx)(EA, {
+ w.length ? /* @__PURE__ */ (0, U.jsx)(iA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, U.jsx)(nA, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -35444,7 +34955,7 @@ function Yue({ prefill: e }) {
y ? /* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: qw,
+ leadingIcon: Nw,
className: "self-start",
...X(u.isPending),
onClick: b,
@@ -35453,15 +34964,55 @@ function Yue({ prefill: e }) {
]
}) : null
] }),
- /* @__PURE__ */ (0, U.jsx)(DA, {
+ /* @__PURE__ */ (0, U.jsx)(rA, {
title: "云下载",
- children: /* @__PURE__ */ (0, U.jsx)(xA, { prefill: e })
+ children: /* @__PURE__ */ (0, U.jsx)(zue, { prefill: e })
})
] });
}
//#endregion
+//#region src/react/components/grid-reveal.tsx
+function oA(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 && s(a.current);
+ }, []), (0, B.useLayoutEffect)(() => {
+ if (e || n !== "skeleton") return;
+ let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");
+ r(t ? "fade" : "none");
+ }, [e]), (0, B.useEffect)(() => {
+ if (n !== "fade") return;
+ let e = setTimeout(() => r("none"), 1e3);
+ return () => clearTimeout(e);
+ }, [n]), {
+ layer: n === "none" ? null : /* @__PURE__ */ (0, U.jsx)("div", {
+ ref: a,
+ "data-grid-fade": n === "fade" ? "" : void 0,
+ "aria-hidden": !e || void 0,
+ hidden: !e && n === "skeleton",
+ onAnimationEnd: (e) => {
+ e.target === e.currentTarget && r("none");
+ },
+ dangerouslySetInnerHTML: { __html: i }
+ }),
+ fading: n === "fade"
+ };
+}
+function sA({ message: e, onRetry: t }) {
+ return /* @__PURE__ */ (0, U.jsx)("div", {
+ "data-media-error": "",
+ onClick: (e) => {
+ e.target.closest("[data-note-action]") && t();
+ },
+ dangerouslySetInnerHTML: { __html: m(e, {
+ variant: "error",
+ actionLabel: "重试"
+ }) }
+ });
+}
+//#endregion
//#region src/react/components/art-slot.tsx
-function kA({ artwork: e, identity: t = e.html, relayout: n }) {
+function cA({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, B.useState)({
identity: t,
artwork: e
@@ -35481,24 +35032,24 @@ function kA({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var Xue = 9 / 16;
-function AA({ name: e }) {
+var lA = 9 / 16;
+function uA({ name: e }) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
});
}
-var Zue = {
+var dA = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
};
-function jA(e, t, n) {
- return t === "short" ? Xue : Ve(n);
+function fA(e, t, n) {
+ return t === "short" ? lA : Ve(n);
}
-function Que(e) {
+function pA(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = fe(e), s = i[0] || "", c = xe(e);
return {
avatar: r ? /* @__PURE__ */ (0, U.jsx)("div", {
@@ -35545,7 +35096,7 @@ function Que(e) {
})
};
}
-function $ue() {
+function mA() {
return /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -35564,7 +35115,7 @@ function $ue() {
})]
});
}
-function ede({ item: e, actions: t }) {
+function hA({ 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, U.jsx)("div", {
"data-media-later": "",
@@ -35582,21 +35133,21 @@ function ede({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, U.jsx)(AA, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, U.jsx)(uA, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function MA(e, t) {
+function gA(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 tde({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
+function _A({ 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 && Ee(l.current), l.current = e, e && (!t.medium || t.medium === "video") && ke(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 = de(e, h, !1, n.javImage), _ = h === "small" ? g.html : de(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 } = Que(e), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = de(e, h, !1, n.javImage), _ = h === "small" ? g.html : de(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 } = pA(e), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -35630,9 +35181,9 @@ function tde({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
c(e, r);
}, O = /* @__PURE__ */ (0, U.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(jA(e, t, n)) },
+ style: { "--card-ratio": String(fA(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, U.jsx)(kA, {
+ g.html ? /* @__PURE__ */ (0, U.jsx)(cA, {
artwork: g,
identity: _,
relayout: (e) => Te(e, h)
@@ -35646,11 +35197,11 @@ function tde({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, U.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, U.jsx)(AA, { name: "check" })
+ children: /* @__PURE__ */ (0, U.jsx)(uA, { name: "check" })
}),
/* @__PURE__ */ (0, U.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, U.jsx)(AA, { name: "trash" }), /* @__PURE__ */ (0, U.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, U.jsx)(uA, { name: "trash" }), /* @__PURE__ */ (0, U.jsx)("b", { children: "回收站" })]
}),
f ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-media-group": "",
@@ -35677,8 +35228,8 @@ function tde({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, U.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, U.jsx)($ue, {}),
- /* @__PURE__ */ (0, U.jsx)(ede, {
+ /* @__PURE__ */ (0, U.jsx)(mA, {}),
+ /* @__PURE__ */ (0, U.jsx)(hA, {
item: e,
actions: s
}),
@@ -35688,27 +35239,27 @@ function tde({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), MA(l.current, -a);
+ e.stopPropagation(), gA(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, U.jsx)(AA, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, U.jsx)(uA, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), MA(l.current, a);
+ e.stopPropagation(), gA(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, U.jsx)(AA, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, U.jsx)(uA, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, U.jsx)(AA, { name: "expand" })
+ children: /* @__PURE__ */ (0, U.jsx)(uA, { name: "expand" })
})
]
})
@@ -35784,8 +35335,8 @@ function tde({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function nde({ 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") ? "网址快捷方式" : Zue[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
+function vA({ 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") ? "网址快捷方式" : dA[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) {
@@ -35811,7 +35362,7 @@ function nde({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
children: [
/* @__PURE__ */ (0, U.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, U.jsx)(AA, { name: f }), /* @__PURE__ */ (0, U.jsx)("b", { children: d })]
+ children: [/* @__PURE__ */ (0, U.jsx)(uA, { name: f }), /* @__PURE__ */ (0, U.jsx)("b", { children: d })]
}),
l ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-media-art": "thumb",
@@ -35823,11 +35374,11 @@ function nde({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, U.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, U.jsx)(AA, { name: "check" })
+ children: /* @__PURE__ */ (0, U.jsx)(uA, { name: "check" })
}),
/* @__PURE__ */ (0, U.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, U.jsx)(AA, { name: "trash" }), /* @__PURE__ */ (0, U.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, U.jsx)(uA, { name: "trash" }), /* @__PURE__ */ (0, U.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
@@ -35837,7 +35388,7 @@ function nde({ 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, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("span", { dangerouslySetInnerHTML: { __html: w(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, U.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(AA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, U.jsx)("span", { children: m })] })
+ children: s ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("span", { dangerouslySetInnerHTML: { __html: w(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, U.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(uA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, U.jsx)("span", { children: m })] })
})
]
}), /* @__PURE__ */ (0, U.jsxs)("div", {
@@ -35846,7 +35397,7 @@ function nde({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, U.jsx)(AA, { name: f })
+ children: /* @__PURE__ */ (0, U.jsx)(uA, { name: f })
}), /* @__PURE__ */ (0, U.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, U.jsx)("span", {
@@ -35875,17 +35426,17 @@ function nde({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function rde(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, U.jsx)(nde, { ...e }) : /* @__PURE__ */ (0, U.jsx)(tde, { ...e });
+function yA(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, U.jsx)(vA, { ...e }) : /* @__PURE__ */ (0, U.jsx)(_A, { ...e });
}
-var NA = (0, B.memo)(rde), ide = 1100, ade = 340, ode = 5e3;
-function sde(e, t, n) {
+var bA = (0, B.memo)(yA), xA = 1100, SA = 340, CA = 5e3;
+function Kue(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, ode);
+ }, s = () => o(!1), c = setTimeout(s, CA);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -35895,7 +35446,7 @@ function sde(e, t, n) {
}, i.src = e;
});
}
-function PA({ load: e, canFlip: t, referrerPolicy: n }) {
+function wA({ 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,
@@ -35937,11 +35488,11 @@ function PA({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => sde(t, e, n)));
+ let s = await Promise.all(a.map((t) => Kue(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, ide);
+ p(), e.cycle = setInterval(p, xA);
}));
};
return (0, B.useEffect)(() => d, [d]), {
@@ -35950,7 +35501,7 @@ function PA({ 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(ade, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(SA, () => {
e.armed = null, m();
});
},
@@ -35961,8 +35512,8 @@ function PA({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var FA = jC("play");
-function cde({ src: e }) {
+var TA = AC("play");
+function que({ src: e }) {
let [t, n] = (0, B.useState)(!1);
return t ? null : /* @__PURE__ */ (0, U.jsx)("img", {
"data-mix-poster": "",
@@ -35973,8 +35524,8 @@ function cde({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var IA = "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 lde({ faces: e, fallback: t, onOpenEntity: n }) {
+var EA = "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 Jue({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, U.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, U.jsx)("button", {
@@ -35982,18 +35533,18 @@ function lde({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${IA} cursor-pointer outline-none`,
+ className: `${EA} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: ue(e.name, e, Oe(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, U.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${IA} mt-0.5`,
+ className: `${EA} mt-0.5`,
children: t
});
}
-function LA({ 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 = PA({
+function DA({ 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 = wA({
load: i,
canFlip: a
}), x = (0, B.useRef)(b.onPointerLeave);
@@ -36020,11 +35571,11 @@ function LA({ 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 rounded-surface",
children: [
- f?.html ? /* @__PURE__ */ (0, U.jsx)(kA, {
+ f?.html ? /* @__PURE__ */ (0, U.jsx)(cA, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, U.jsx)(cde, { src: r }, r) : /* @__PURE__ */ (0, U.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, U.jsx)(que, { src: r }, r) : /* @__PURE__ */ (0, U.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -36054,7 +35605,7 @@ function LA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, U.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, U.jsx)(FA, {
+ children: [/* @__PURE__ */ (0, U.jsx)(TA, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n} 个视频`]
@@ -36067,8 +35618,8 @@ function LA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, U.jsx)(FA, {})
- }) : /* @__PURE__ */ (0, U.jsx)(lde, {
+ children: /* @__PURE__ */ (0, U.jsx)(TA, {})
+ }) : /* @__PURE__ */ (0, U.jsx)(Jue, {
faces: o,
fallback: e.slice(0, 1),
onOpenEntity: s
@@ -36092,20 +35643,20 @@ function LA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function RA(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, U.jsx)(dde, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${uO(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, U.jsx)(fde, { ...e }, t);
+function OA(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, U.jsx)(Xue, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${XD(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, U.jsx)(Zue, { ...e }, t);
}
-function ude({ name: e }) {
+function Yue({ name: e }) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
});
}
-function dde(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, U.jsx)(NA, {
+function Xue(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, U.jsx)(bA, {
item: i,
variant: r,
layout: e.layout,
@@ -36125,15 +35676,15 @@ function dde(e) {
children: i
});
}
-function fde(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? ple(e) : dO(e), s = i && e.initial ? {
+function Zue(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Qce(e) : ZD(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
offset: 0
}],
pageParams: [0]
- } : void 0, c = Cw({
+ } : void 0, c = Sw({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -36146,7 +35697,7 @@ function fde(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)(() => _le(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => nle(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -36156,7 +35707,7 @@ function fde(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 = Dw(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = pde(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 = oA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Que(e, c.data, u, d, h);
(0, B.useLayoutEffect)(() => {
c.data && e.onCount?.(p, f);
}, [
@@ -36167,12 +35718,12 @@ function fde(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, U.jsx)(hde, {
+ }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, U.jsx)(ede, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, U.jsx)(NA, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, U.jsx)(bA, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -36189,7 +35740,7 @@ function fde(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, U.jsx)(Ow, {
+ if (!c.data) return /* @__PURE__ */ (0, U.jsx)(sA, {
message: ce(c.error),
onRetry: () => void c.refetch()
});
@@ -36206,15 +35757,15 @@ function fde(e) {
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: ble(u, g).map((t) => /* @__PURE__ */ (0, U.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("div", {
+ children: ale(u, g).map((t) => /* @__PURE__ */ (0, U.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(x)
- }), t.strip ? /* @__PURE__ */ (0, U.jsx)(mde, {
+ }), t.strip ? /* @__PURE__ */ (0, U.jsx)($ue, {
cut: t.strip,
props: e,
onOpen: y
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, U.jsx)(zA, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, U.jsx)(kA, {
entity: i,
load: b,
enabled: () => e.canLoadMore?.() !== !1
@@ -36222,7 +35773,7 @@ function fde(e) {
})()]
});
}
-function zA({ entity: e, load: t, enabled: n, children: r }) {
+function kA({ 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: ""
@@ -36283,12 +35834,12 @@ function zA({ entity: e, load: t, enabled: n, children: r }) {
...p,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: f("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, U.jsx)(Ow, {
+ }), s.error ? /* @__PURE__ */ (0, U.jsx)(sA, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function pde(e, t, n, r, i) {
+function Que(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;
@@ -36297,7 +35848,7 @@ function pde(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- HC(`/api/items?${yle(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ VC(`/api/items?${ile(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
if (!t.length) {
l.current = 0;
@@ -36313,7 +35864,7 @@ function pde(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 = vle(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 = rle(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, {
@@ -36323,7 +35874,7 @@ function pde(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function mde({ cut: e, props: t, onOpen: n }) {
+function $ue({ cut: e, props: t, onOpen: n }) {
let r = (0, B.useRef)(null), { wireDrag: i } = t;
return (0, B.useEffect)(() => {
r.current && i(r.current);
@@ -36339,12 +35890,12 @@ function mde({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, U.jsx)(ude, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, U.jsx)(Yue, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, U.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, U.jsx)(NA, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, U.jsx)(bA, {
item: e,
variant: "short",
layout: t.layout,
@@ -36358,17 +35909,17 @@ function mde({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function BA(e, t, n) {
+function AA(e, t, n) {
return ye(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function hde({ seed: e, layout: t, helpers: n, actions: r }) {
+function ede({ 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 = be(e, n.tagLabel), s = (0, B.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => fO(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), BA(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = BA(e, t, !1);
- return /* @__PURE__ */ (0, U.jsx)(LA, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => QD(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), AA(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = AA(e, t, !1);
+ return /* @__PURE__ */ (0, U.jsx)(DA, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -36378,12 +35929,12 @@ function hde({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : BA(e, {
+ artworkIdentity: c === "small" ? l.html : AA(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => Te(e, c),
- ratio: jA(e, "grid", t),
+ ratio: fA(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -36395,32 +35946,32 @@ function hde({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-var gde = "/api/sources", VA = ["media-sources"], HA = (e) => HC(gde, e);
-async function UA(e) {
+var tde = "/api/sources", jA = ["media-sources"], MA = (e) => VC(tde, e);
+async function NA(e) {
await z.fetchQuery({
- queryKey: VA,
- queryFn: () => HA(e)
+ queryKey: jA,
+ queryFn: () => MA(e)
});
}
-var _de = [
+var nde = [
"local",
"115",
"pikpak"
-], vde = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), yde = "/api/duplicates?limit=120", WA = ["duplicates"], GA = "/api/batch", KA = (e) => HC(yde, e);
-async function bde(e) {
+], rde = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), ide = "/api/duplicates?limit=120", PA = ["duplicates"], FA = "/api/batch", IA = (e) => VC(ide, e);
+async function ade(e) {
await Promise.all([z.fetchQuery({
- queryKey: WA,
- queryFn: () => KA(e)
- }), UA(e)]);
+ queryKey: PA,
+ queryFn: () => IA(e)
+ }), NA(e)]);
}
-var qA = {
+var LA = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, xde = (e, t) => t.filter((t) => e.some((e) => e.location === t)), JA = (e, t) => xde(e, t).filter((t) => e.some((e) => e.location !== t)), Sde = (e, t) => t.filter((t) => e.some((e) => JA(e.files, [t]).length));
-function Cde(e, t) {
+}, ode = (e, t) => t.filter((t) => e.some((e) => e.location === t)), RA = (e, t) => ode(e, t).filter((t) => e.some((e) => e.location !== t)), sde = (e, t) => t.filter((t) => e.some((e) => RA(e.files, [t]).length));
+function cde(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -36439,19 +35990,19 @@ function Cde(e, t) {
}
return n;
}
-function wde(e, t) {
+function lde(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 YA(e, t) {
- for (let n = 0; n < e.length; n += 200) await q(GA, {
+async function zA(e, t) {
+ for (let n = 0; n < e.length; n += 200) await q(FA, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var XA = "/api/media-repair", ZA = ["media-repair"], QA = ["media-repair", "libraries"], Tde = {
+var BA = "/api/media-repair", VA = ["media-repair"], HA = ["media-repair", "libraries"], ude = {
status: "idle",
library: "",
stage: "",
@@ -36463,33 +36014,33 @@ var XA = "/api/media-repair", ZA = ["media-repair"], QA = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, $A = (e) => HC(XA, e), ej = async (e) => (await HC("/api/libraries", e)).libraries || [];
-async function Ede(e) {
+}, UA = (e) => VC(BA, e), WA = async (e) => (await VC("/api/libraries", e)).libraries || [];
+async function dde(e) {
await Promise.all([z.fetchQuery({
- queryKey: ZA,
- queryFn: () => $A(e)
+ queryKey: VA,
+ queryFn: () => UA(e)
}), z.fetchQuery({
- queryKey: QA,
- queryFn: () => ej(e)
+ queryKey: HA,
+ queryFn: () => WA(e)
})]);
}
-var tj = (e) => Number(e).toLocaleString();
-function Dde(e) {
+var GA = (e) => Number(e).toLocaleString();
+function fde(e) {
if (e.status === "running") {
- let t = e.total ? `${tj(e.checked)} / ${tj(e.total)}` : "准备中";
+ let t = e.total ? `${GA(e.checked)} / ${GA(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${tj(e.repaired)} 部,${tj(e.failed)} 部修不了` : `修好 ${tj(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${GA(e.repaired)} 部,${GA(e.failed)} 部修不了` : `修好 ${GA(e.repaired)} 部` : "";
}
-var Ode = (e) => `${tj(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, kde = "/api/quality-goals?limit=200", nj = ["quality-goals"], rj = (e) => HC(kde, e);
-async function Ade(e) {
+var pde = (e) => `${GA(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, mde = "/api/quality-goals?limit=200", KA = ["quality-goals"], qA = (e) => VC(mde, e);
+async function hde(e) {
await z.fetchQuery({
- queryKey: nj,
- queryFn: () => rj(e)
+ queryKey: KA,
+ queryFn: () => qA(e)
});
}
-var jde = (e) => e.has_cover ? pe(e) : `/poster?id=${e.id}&c=4`;
-function ij(e, t, n = 1) {
+var gde = (e) => e.has_cover ? pe(e) : `/poster?id=${e.id}&c=4`;
+function JA(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;
@@ -36509,21 +36060,21 @@ function ij(e, t, n = 1) {
t
];
}
-function aj(e, t) {
+function YA(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function oj(e, t) {
+function XA(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function Mde(e, t, n, r, i, a = i || !e.has(r)) {
+function _de(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 sj(e) {
+function ZA(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);
@@ -36532,7 +36083,7 @@ function sj(e) {
}
//#endregion
//#region src/react/review/review.ts
-var Nde = "/api/review", Pde = "/api/review/decision", Fde = "/api/review/genre", cj = ["review"], lj = {
+var vde = "/api/review", yde = "/api/review/decision", bde = "/api/review/genre", QA = ["review"], $A = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -36542,15 +36093,15 @@ var Nde = "/api/review", Pde = "/api/review/decision", Fde = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Ide = Object.keys(lj), Lde = "metadata_fields", uj = (e) => typeof e == "string" && Object.hasOwn(lj, e), Rde = {
+}, xde = Object.keys($A), Sde = "metadata_fields", ej = (e) => typeof e == "string" && Object.hasOwn($A, e), Cde = {
creator_tags: "creator",
western_identity: "creator"
};
-function zde(e, t) {
+function wde(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 dj(e, t) {
+function tj(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -36567,43 +36118,43 @@ function dj(e, t) {
}
return [...n.values()];
}
-function Bde(e, t, n) {
- return n && dj(e, t).find((e) => e.key === n)?.rows || e;
+function Tde(e, t, n) {
+ return n && tj(e, t).find((e) => e.key === n)?.rows || e;
}
-function Vde(e, t) {
- let n = aj(e.length, 20), r = oj(t, n);
+function Ede(e, t) {
+ let n = YA(e.length, 20), r = XA(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function Hde(e) {
+function Dde(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 Ude(e, t, n, r, i, a) {
- return Mde(e, t, n, r, i, a);
+function Ode(e, t, n, r, i, a) {
+ return _de(e, t, n, r, i, a);
}
-function fj(e, t) {
+function nj(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function pj(e, t) {
+function rj(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var mj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function Wde(e, t) {
- let n = pj(e, t), r = mj(e, t);
+var ij = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function kde(e, t) {
+ let n = rj(e, t), r = ij(e, t);
return r ? `${n} · ${r}` : n;
}
-var Gde = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Kde = (e) => String(e.tags || "").split("|").filter(Boolean), qde = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function Jde(e) {
+var Ade = (e) => e.reason || e.evidence || e.note || e.decision_note || "", jde = (e) => String(e.tags || "").split("|").filter(Boolean), Mde = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function Nde(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function hj(e, t, n, r) {
+function aj(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -36619,19 +36170,19 @@ function hj(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var Yde = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", gj = (e) => HC(Nde, e), _j = (e) => q(Pde, e), Xde = (e, t) => q(Fde, {
+var Pde = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", oj = (e) => VC(vde, e), sj = (e) => q(yde, e), Fde = (e, t) => q(bde, {
genre: e,
tag: t
});
-async function Zde(e) {
+async function Ide(e) {
await z.fetchQuery({
- queryKey: cj,
- queryFn: () => gj(e)
+ queryKey: QA,
+ queryFn: () => oj(e)
});
}
-function vj(e, t) {
+function cj(e, t) {
let n = new Set(t);
- n.size && z.setQueryData(cj, (t) => {
+ n.size && z.setQueryData(QA, (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 : {
@@ -36647,207 +36198,207 @@ function vj(e, t) {
};
});
}
-var Qde = () => z.invalidateQueries({
- queryKey: cj,
+var Lde = () => z.invalidateQueries({
+ queryKey: QA,
exact: !0
});
-function $de(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${sj(e.fetched_at)} 的缓存` : e?.error || t;
+function Rde(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${ZA(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var efe = "/api/links", yj = "/api/links/check", bj = "/api/links/prune", xj = ["links"], Sj = ["links", "check"], Cj = ["links", "prune"], wj = {
+var zde = "/api/links", lj = "/api/links/check", uj = "/api/links/prune", dj = ["links"], fj = ["links", "check"], pj = ["links", "prune"], mj = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function Tj(e) {
+async function hj(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var Ej = (e) => HC(efe, e), Dj = (e) => q(yj, { status_only: !0 }, "POST", e), tfe = ({ retry: e, checkId: t }) => Tj(q(yj, e ? {
+var gj = (e) => VC(zde, e), _j = (e) => q(lj, { status_only: !0 }, "POST", e), Bde = ({ retry: e, checkId: t }) => hj(q(lj, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Oj = (e) => HC(bj, e), nfe = (e) => Tj(q(bj, {
+} : { restart: !0 })), vj = (e) => VC(uj, e), Vde = (e) => hj(q(uj, {
confirm: !0,
check_id: e,
background: !0
-})), kj = (e) => Number(e || 0).toLocaleString(), rfe = (e) => `已删除 ${kj(e.removed)} 条;${e.marked ? `已隐退女优的 ${kj(e.marked)} 条留作不可点的记录;` : ""}保留 ${kj(e.recovered)} 条未确认失效的链接。`;
-function ife(e) {
+})), yj = (e) => Number(e || 0).toLocaleString(), Hde = (e) => `已删除 ${yj(e.removed)} 条;${e.marked ? `已隐退女优的 ${yj(e.marked)} 条留作不可点的记录;` : ""}保留 ${yj(e.recovered)} 条未确认失效的链接。`;
+function Ude(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${kj(e.checked)} / ${kj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${yj(e.checked)} / ${yj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var Aj = "/api/settings", jj = "/api/follow/schedule", Mj = "/api/thumbnail-jobs", Nj = ["settings"], Pj = ["follow-schedule"], Fj = ["thumbnail-jobs"], afe = (e) => HC(Aj, e), Ij = (e) => HC(jj, e), Lj = (e) => HC(Mj, e);
-function ofe(e = z) {
+var bj = "/api/settings", xj = "/api/follow/schedule", Sj = "/api/thumbnail-jobs", Cj = ["settings"], wj = ["follow-schedule"], Tj = ["thumbnail-jobs"], Wde = (e) => VC(bj, e), Ej = (e) => VC(xj, e), Dj = (e) => VC(Sj, e);
+function Gde(e = z) {
return e.fetchQuery({
- queryKey: Pj,
- queryFn: ({ signal: e }) => Ij(e),
+ queryKey: wj,
+ queryFn: ({ signal: e }) => Ej(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Fj,
- queryFn: ({ signal: e }) => Lj(e),
+ queryKey: Tj,
+ queryFn: ({ signal: e }) => Dj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Nj,
- queryFn: ({ signal: e }) => afe(e),
+ queryKey: Cj,
+ queryFn: ({ signal: e }) => Wde(e),
staleTime: 0
}).catch(() => null);
}
-function Rj() {
- return Sw({
- mutationFn: (e) => q(Aj, e),
- onSuccess: (e) => z.setQueryData(Nj, e)
+function Oj() {
+ return xw({
+ mutationFn: (e) => q(bj, e),
+ onSuccess: (e) => z.setQueryData(Cj, e)
});
}
-function sfe() {
- return Sw({
- mutationFn: (e) => q(jj, {
+function Kde() {
+ return xw({
+ mutationFn: (e) => q(xj, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => z.setQueryData(Pj, e)
+ onSuccess: (e) => z.setQueryData(wj, e)
});
}
-function cfe() {
- return Sw({
- mutationFn: (e) => q(Mj, { mode: e }),
- onSuccess: (e) => z.setQueryData(Fj, e)
+function qde() {
+ return xw({
+ mutationFn: (e) => q(Sj, { mode: e }),
+ onSuccess: (e) => z.setQueryData(Tj, e)
});
}
-function lfe(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${sj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${sj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+function Jde(e) {
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${ZA(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${ZA(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
}
-function ufe(e) {
+function Yde(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 dfe = "/api/organize", ffe = "/api/organize/preview", pfe = "/api/organize/apply", mfe = "/api/organize/rollback", zj = ["organize"], Bj = (e) => HC(dfe, e);
-async function hfe(e) {
+var Xde = "/api/organize", Zde = "/api/organize/preview", Qde = "/api/organize/apply", $de = "/api/organize/rollback", kj = ["organize"], Aj = (e) => VC(Xde, e);
+async function efe(e) {
await z.fetchQuery({
- queryKey: zj,
- queryFn: () => Bj(e)
+ queryKey: kj,
+ queryFn: () => Aj(e)
});
}
-var gfe = (e) => q(ffe, e), _fe = (e) => e.kind === "apply" ? q(pfe, {
+var tfe = (e) => q(Zde, e), nfe = (e) => e.kind === "apply" ? q(Qde, {
...e.request,
confirm: !0
-}) : q(mfe, { confirm: !0 });
-async function vfe(e) {
- z.setQueryData(zj, (t) => t && {
+}) : q($de, { confirm: !0 });
+async function rfe(e) {
+ z.setQueryData(kj, (t) => t && {
...t,
templates: e
});
try {
- await q(Aj, { organizeTemplates: e });
+ await q(bj, { organizeTemplates: e });
} catch {}
}
-var yfe = (e, t) => e && {
+var ife = (e, t) => e && {
...e,
...t
-}, bfe = /目录模板|分隔符|盘符|`\.`/;
-function Vj(e) {
+}, afe = /目录模板|分隔符|盘符|`\.`/;
+function jj(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var Hj = (e) => Number(e || 0).toLocaleString();
-function xfe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Hj(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Hj(e.counts.change)} 个文件会改名或移动,${Hj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var Mj = (e) => Number(e || 0).toLocaleString();
+function ofe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Mj(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${Mj(e.counts.change)} 个文件会改名或移动,${Mj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Uj(e) {
+function Nj(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${Hj(r)} 个文件${n ? `,${Hj(n)} 行未能退回` : ""}。` : `已整理 ${Hj(r)} 个文件${n ? `,${Hj(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${Mj(r)} 个文件${n ? `,${Mj(n)} 行未能退回` : ""}。` : `已整理 ${Mj(r)} 个文件${n ? `,${Mj(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var Wj = "/api/resource-sync/scan", Gj = "/api/resource-sync/apply", Kj = ["resource-sync", "scan"], qj = ["resource-sync", "apply"], Jj = (e) => q(Wj, {
+var Pj = "/api/resource-sync/scan", Fj = "/api/resource-sync/apply", Ij = ["resource-sync", "scan"], Lj = ["resource-sync", "apply"], Rj = (e) => q(Pj, {
background: !0,
status_only: !0
-}, "POST", e), Sfe = () => q(Wj, {
+}, "POST", e), sfe = () => q(Pj, {
background: !0,
restart: !0
-}), Yj = (e) => HC(Gj, e), Cfe = (e) => q(Gj, {
+}), zj = (e) => VC(Fj, e), cfe = (e) => q(Fj, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), Xj = (e) => (e?.sources ?? []).some((e) => _de.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function wfe(e) {
- Xj(z.getQueryData(VA)) && await Promise.all([z.fetchQuery({
- queryKey: Kj,
- queryFn: () => Jj(e)
+}), Bj = (e) => (e?.sources ?? []).some((e) => nde.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function lfe(e) {
+ Bj(z.getQueryData(jA)) && await Promise.all([z.fetchQuery({
+ queryKey: Ij,
+ queryFn: () => Rj(e)
}), z.fetchQuery({
- queryKey: qj,
- queryFn: () => Yj(e)
+ queryKey: Lj,
+ queryFn: () => zj(e)
})]);
}
-var Tfe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Efe = {
+var ufe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), dfe = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Zj = (e) => Number(e || 0).toLocaleString(), Dfe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Qj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), $j = (e) => e.vanish ? `${Zj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", eM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Ofe = (e) => `将永久删除文件已不在盘上的 ${Zj(Qj(e))} 条记录和 ${Zj(e.empty)} 个空文件夹,并清理 ${Zj(e.cache?.files)} 个闲置缓存。${eM(e)}${$j(e)}`, kfe = (e) => `将永久删除文件已不在盘上的 ${Zj(Qj(e))} 条记录(含回收站里的)、${Zj(e.empty)} 个空文件夹,并清理 ${Zj(e.cache?.files)} 个闲置缓存。来源根目录保留。${eM(e)}${$j(e)}`, Afe = (e) => e.online ? [
- `找不到文件 · 共 ${Zj(e.total)} 项`,
- e.vanish ? `${Zj(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${Zj(e.empty)} 个` : "",
- e.unreadable ? `${Zj(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${Zj(e.total)} 项`;
-function tM(e) {
+}, Vj = (e) => Number(e || 0).toLocaleString(), ffe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Hj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), Uj = (e) => e.vanish ? `${Vj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", Wj = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", pfe = (e) => `将永久删除文件已不在盘上的 ${Vj(Hj(e))} 条记录和 ${Vj(e.empty)} 个空文件夹,并清理 ${Vj(e.cache?.files)} 个闲置缓存。${Wj(e)}${Uj(e)}`, mfe = (e) => `将永久删除文件已不在盘上的 ${Vj(Hj(e))} 条记录(含回收站里的)、${Vj(e.empty)} 个空文件夹,并清理 ${Vj(e.cache?.files)} 个闲置缓存。来源根目录保留。${Wj(e)}${Uj(e)}`, hfe = (e) => e.online ? [
+ `找不到文件 · 共 ${Vj(e.total)} 项`,
+ e.vanish ? `${Vj(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${Vj(e.empty)} 个` : "",
+ e.unreadable ? `${Vj(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${Vj(e.total)} 项`;
+function Gj(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 ? `${Zj(t.length)} 条记录没有删除(${o})` : "",
- n ? `${Zj(n)} 个文件夹没有删除` : "",
- r.length ? `${Zj(r.length)} 个缓存没有清理` : ""
+ t.length ? `${Vj(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${Vj(n)} 个文件夹没有删除` : "",
+ r.length ? `${Vj(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var jfe = (e, t) => {
- let { rest: n } = tM(e), r = `已永久删除 ${Zj(e.purged)} 条失效记录和 ${Zj(e.dirs_removed)} 个空文件夹,清理 ${Zj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Zj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Zj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var gfe = (e, t) => {
+ let { rest: n } = Gj(e), r = `已永久删除 ${Vj(e.purged)} 条失效记录和 ${Vj(e.dirs_removed)} 个空文件夹,清理 ${Vj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Vj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Vj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Mfe = "/api/review?counts=1", nM = ["review", "counts"], Nfe = "/api/ads?limit=1", rM = ["junk-summary"], iM = "/api/items?state=trash&limit=1", aM = ["trash-summary"], Pfe = [
+}, _fe = "/api/review?counts=1", Kj = ["review", "counts"], vfe = "/api/ads?limit=1", qj = ["junk-summary"], Jj = "/api/items?state=trash&limit=1", Yj = ["trash-summary"], yfe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], oM = (e) => HC(Mfe, e), sM = (e) => HC(Nfe, e), cM = (e) => {
+], Xj = (e) => VC(_fe, e), Zj = (e) => VC(vfe, e), Qj = (e) => {
let t = sessionStorage.getItem("peach.library");
- return HC(t ? `${iM}&library=${encodeURIComponent(t)}` : iM, e);
-}, lM = (e) => Number(e || 0).toLocaleString();
-function Ffe(e) {
- let t = lj, 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 VC(t ? `${Jj}&library=${encodeURIComponent(t)}` : Jj, e);
+}, $j = (e) => Number(e || 0).toLocaleString();
+function bfe(e) {
+ let t = $A, 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 Ife(e) {
+function xfe(e) {
if (!e) return "";
- let t = Pfe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${lM(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${lM(e.dismissed_total)}`), t.join(" · ");
-}
-var Lfe = [
- [nM, ({ signal: e }) => oM(e)],
- [nj, ({ signal: e }) => rj(e)],
- [aM, ({ signal: e }) => cM(e)],
- [xj, ({ signal: e }) => Ej(e)],
- [Sj, ({ signal: e }) => Dj(e)],
- [Cj, ({ signal: e }) => Oj(e)]
+ let t = yfe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${$j(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${$j(e.dismissed_total)}`), t.join(" · ");
+}
+var Sfe = [
+ [Kj, ({ signal: e }) => Xj(e)],
+ [KA, ({ signal: e }) => qA(e)],
+ [Yj, ({ signal: e }) => Qj(e)],
+ [dj, ({ signal: e }) => gj(e)],
+ [fj, ({ signal: e }) => _j(e)],
+ [pj, ({ signal: e }) => vj(e)]
];
-async function Rfe(e) {
- let t = location.hash === "#resource-sync", n = Lfe.map(([n, r]) => {
+async function Cfe(e) {
+ let t = location.hash === "#resource-sync", n = Sfe.map(([n, r]) => {
if (t) return z.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -36860,49 +36411,49 @@ async function Rfe(e) {
await Promise.all([
...n,
z.fetchQuery({
- queryKey: rM,
- queryFn: () => sM(e)
+ queryKey: qj,
+ queryFn: () => Zj(e)
}),
z.fetchQuery({
- queryKey: WA,
- queryFn: () => KA(e)
+ queryKey: PA,
+ queryFn: () => IA(e)
}),
- UA(e).then(() => wfe(e)),
- Hw(e),
- Ede(e),
- hfe(e)
+ NA(e).then(() => lfe(e)),
+ Ow(e),
+ dde(e),
+ efe(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var zfe = [
+var wfe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Bfe = [
+], Tfe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function uM(e = {}) {
- return `${bT({
+function eM(e = {}) {
+ return `${oT({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var dM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Vfe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function fM({ interactive: e = !1 } = {}) {
- return bT({
+var tM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Efe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function nM({ interactive: e = !1 } = {}) {
+ return oT({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var Hfe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function pM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var Dfe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function rM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
/* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -36935,13 +36486,13 @@ function pM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function mM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function iM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
/* @__PURE__ */ (0, U.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, U.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${zfe[n % 4]} ${Bfe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${wfe[n % 4]} ${Tfe[n % 4]}`,
children: /* @__PURE__ */ (0, U.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -36963,20 +36514,20 @@ function mM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/background-job.ts
-var hM = 2e3, Ufe = (e) => e, Wfe = (e, t) => t;
-function gM(e) {
- let { queryKey: t, jobOf: n = Ufe, withJob: r = Wfe, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);
+var aM = 2e3, Ofe = (e) => e, kfe = (e, t) => t;
+function oM(e) {
+ let { queryKey: t, jobOf: n = Ofe, withJob: r = kfe, 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 = yw({
+ let u = vw({
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" ? hM : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? aM : i ?? !1;
}
- }), d = Sw({
+ }), d = xw({
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({
@@ -37005,32 +36556,32 @@ function gM(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Gfe = (t) => e[t] || t, _M = (e) => z.setQueryData(ZA, e);
-function Kfe() {
- let e = yw({
- queryKey: ZA,
- queryFn: ({ signal: e }) => $A(e),
- refetchInterval: (e) => e.state.data?.status === "running" && hM
- }), t = yw({
- queryKey: QA,
- queryFn: ({ signal: e }) => ej(e)
- }), [n, i] = (0, B.useState)(""), a = kT(), o = e.data ?? Tde, s = t.data ?? [], c = o.status === "running", l = s.find((e) => e.id === (c ? o.library : n)) ?? s.find((e) => e.id === o.library) ?? s[0], u = () => {
+var Afe = (t) => e[t] || t, sM = (e) => z.setQueryData(VA, e);
+function jfe() {
+ let e = vw({
+ queryKey: VA,
+ queryFn: ({ signal: e }) => UA(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && aM
+ }), t = vw({
+ queryKey: HA,
+ queryFn: ({ signal: e }) => WA(e)
+ }), [n, i] = (0, B.useState)(""), a = hT(), o = e.data ?? ude, s = t.data ?? [], c = o.status === "running", l = s.find((e) => e.id === (c ? o.library : n)) ?? s.find((e) => e.id === o.library) ?? s[0], u = () => {
l && r({
title: `修复媒体库「${l.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (l.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => _M(await q(XA, {
+ onConfirm: async () => sM(await q(BA, {
library: l.id,
restart: !0
}))
});
- }, d = () => void a.run("stop", (e) => q(XA, { stop: !0 }, "POST", e), _M), f = Dde(o), p = o.status === "complete", m = a.error || o.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, d = () => void a.run("stop", (e) => q(BA, { stop: !0 }, "POST", e), sM), f = fde(o), p = o.status === "complete", m = a.error || o.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, U.jsx)(ET, {
+ children: [/* @__PURE__ */ (0, U.jsx)(dT, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(eA, {
+ footer: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: l?.id ?? null,
@@ -37038,10 +36589,10 @@ function Kfe() {
onSelectionChange: (e) => {
e !== null && i(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, U.jsxs)(tA, {
+ children: s.map((e) => /* @__PURE__ */ (0, U.jsxs)(Vk, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, U.jsx)(YT, { mark: Gfe(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, U.jsx)(FT, { mark: Afe(e.icon) }), e.name]
}, e.id))
}), c ? /* @__PURE__ */ (0, U.jsx)(J, {
onClick: d,
@@ -37055,12 +36606,12 @@ function Kfe() {
children: /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(TT, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, U.jsx)(uT, { children: "媒体修复" }),
/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: koe
+ children: poe
}),
- c && o.total ? /* @__PURE__ */ (0, U.jsx)(NT, {
+ c && o.total ? /* @__PURE__ */ (0, U.jsx)(yT, {
label: "修复进度",
value: o.checked,
max: o.total
@@ -37084,7 +36635,7 @@ function Kfe() {
p && o.missing_tool ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "warning",
title: "缺少 untrunc",
- children: Ode(o)
+ children: pde(o)
}) : null,
m ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
@@ -37096,7 +36647,7 @@ function Kfe() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var vM = {
+var cM = {
md: {
box: "size-4",
glyph: "size-4",
@@ -37110,8 +36661,8 @@ var vM = {
gap: "gap-1.5"
}
};
-function yM({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = vM[t], c = n || r, l = o && !a;
+function lM({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = cM[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, U.jsx)("span", {
"aria-hidden": !0,
className: ur("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? ur("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : ur("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"),
@@ -37138,13 +36689,13 @@ function yM({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function bM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = vM[n];
+function uM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = cM[n];
return /* @__PURE__ */ (0, U.jsx)(Tl, {
ref: r,
...i,
className: (t) => ur("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, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(yM, {
+ children: (e) => /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(lM, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, U.jsx)("span", {
@@ -37155,10 +36706,10 @@ function bM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function xM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function dM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
className: ur("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, U.jsx)(ete, {
+ children: /* @__PURE__ */ (0, U.jsx)(tte, {
ref: r,
...i,
className: ur("bui-table", e === "sm" && "bui-table-sm", t)
@@ -37167,7 +36718,7 @@ function xM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/row-click.ts
-var qfe = [
+var Mfe = [
"a",
"button",
"input",
@@ -37180,15 +36731,15 @@ var qfe = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function SM(e, t) {
+function fM(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(qfe);
+ let r = n.closest(Mfe);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function CM({ children: e, follow: t = !1, onRowClick: n }) {
+function pM({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -37196,15 +36747,15 @@ function CM({ 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 && SM(e, r) && n(r.dataset.key);
+ r && fM(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Jfe = jC("unlink"), wM = jC("rotate-cw"), Yfe = "站点返回 404 或 410,确认这个地址不存在。", Xfe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Zfe = "删除前会逐条重验一次;此操作不可撤销。", Qfe = "暂时无法读取进度,正在重新连接…", TM = (e) => Number(e || 0).toLocaleString();
-function EM({ label: e, value: t, note: n }) {
+var Nfe = AC("unlink"), mM = AC("rotate-cw"), Pfe = "站点返回 404 或 410,确认这个地址不存在。", Ffe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Ife = "删除前会逐条重验一次;此操作不可撤销。", Lfe = "暂时无法读取进度,正在重新连接…", hM = (e) => Number(e || 0).toLocaleString();
+function gM({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -37223,11 +36774,11 @@ function EM({ label: e, value: t, note: n }) {
]
});
}
-function DM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function _M({ 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, U.jsxs)("div", {
- className: ST,
+ className: sT,
children: [
/* @__PURE__ */ (0, U.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -37240,13 +36791,13 @@ function DM({ 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, U.jsx)(CM, { children: /* @__PURE__ */ (0, U.jsxs)(xM, {
+ /* @__PURE__ */ (0, U.jsx)(pM, { children: /* @__PURE__ */ (0, U.jsxs)(dM, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, U.jsxs)(C_, { children: [
- i ? /* @__PURE__ */ (0, U.jsx)(w_, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(S_, { children: [
+ i ? /* @__PURE__ */ (0, U.jsx)(C_, {
id: "pick",
- children: /* @__PURE__ */ (0, U.jsx)(bM, {
+ children: /* @__PURE__ */ (0, U.jsx)(uM, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -37254,44 +36805,44 @@ function DM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, U.jsx)(E_, { children: t.map((e) => /* @__PURE__ */ (0, U.jsxs)(k_, {
+ ] }), /* @__PURE__ */ (0, U.jsx)(T_, { children: t.map((e) => /* @__PURE__ */ (0, U.jsxs)(O_, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)(bM, {
+ i ? /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)(uM, {
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, U.jsx)(j_, { children: e.entity }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: wj[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: e.label || "" }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: e.entity }),
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: mj[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: e.label || "" }),
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsxs)("a", {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -37301,7 +36852,7 @@ function DM({ 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, U.jsx)(nT, {
+ }), /* @__PURE__ */ (0, U.jsx)(Hw, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -37313,27 +36864,27 @@ function DM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function $fe() {
- let e = yw({
- queryKey: xj,
- queryFn: ({ signal: e }) => Ej(e)
- }), [t, n] = (0, B.useState)([]), i = gM({
- queryKey: Cj,
- queryFn: ({ signal: e }) => Oj(e),
- start: nfe,
+function Rfe() {
+ let e = vw({
+ queryKey: dj,
+ queryFn: ({ signal: e }) => gj(e)
+ }), [t, n] = (0, B.useState)([]), i = oM({
+ queryKey: pj,
+ queryFn: ({ signal: e }) => vj(e),
+ start: Vde,
onFinish: () => {
z.invalidateQueries({
- queryKey: xj,
+ queryKey: dj,
exact: !0
}), z.invalidateQueries({
- queryKey: Sj,
+ queryKey: fj,
exact: !0
});
}
- }), a = gM({
- queryKey: Sj,
- queryFn: ({ signal: e }) => Dj(e),
- start: tfe,
+ }), a = oM({
+ queryKey: fj,
+ queryFn: ({ signal: e }) => _j(e),
+ start: Bde,
onStarted: () => {
i.dismiss(), n([]);
}
@@ -37363,7 +36914,7 @@ function $fe() {
else if (v) x = /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "success",
title: "完成",
- children: rfe(v)
+ children: Hde(v)
});
else if (y) x = /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
@@ -37373,7 +36924,7 @@ function $fe() {
else if (a.query.isError && o) x = /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: Qfe
+ children: Lfe
});
else if (o?.status === "failed") x = /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
@@ -37381,12 +36932,12 @@ function $fe() {
children: o.error || "检查失败"
});
else if (o && o.status !== "idle") {
- b = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [o.status === "running" ? /* @__PURE__ */ (0, U.jsx)(PT, {
+ b = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [o.status === "running" ? /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
- label: ife(o),
+ label: Ude(o),
value: o.checked,
total: o.total
- }) : null, l ? /* @__PURE__ */ (0, U.jsx)(PT, {
+ }) : null, l ? /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
label: i.job?.message || "正在重验并删除失效链接…",
value: i.job?.checked,
@@ -37394,38 +36945,38 @@ function $fe() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = u || d.length || f.length ? /* @__PURE__ */ (0, U.jsxs)("div", {
- className: xT,
+ className: Eoe,
children: [
- /* @__PURE__ */ (0, U.jsx)(DM, {
+ /* @__PURE__ */ (0, U.jsx)(_M, {
title: "地址已失效",
items: d,
- hint: Yfe
+ hint: Pfe
}),
- /* @__PURE__ */ (0, U.jsx)(DM, {
+ /* @__PURE__ */ (0, U.jsx)(_M, {
title: "本次未访问成功",
items: f,
- hint: Xfe,
+ hint: Ffe,
picked: p.length ? t : void 0,
onPick: p.length ? n : void 0,
children: p.length ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, U.jsxs)(CT, { children: [/* @__PURE__ */ (0, U.jsx)(J, {
- leadingIcon: wM,
+ children: /* @__PURE__ */ (0, U.jsxs)(cT, { children: [/* @__PURE__ */ (0, U.jsx)(J, {
+ leadingIcon: mM,
disabled: !t.length,
...X(c),
onClick: () => g(t),
children: e
}), /* @__PURE__ */ (0, U.jsx)(J, {
- leadingIcon: wM,
+ leadingIcon: mM,
...X(c),
onClick: () => g(p.map((e) => e.id)),
children: `全部重试(${p.length})`
})] })
}) : null
}),
- u && d.length ? /* @__PURE__ */ (0, U.jsx)(CT, {
+ u && d.length ? /* @__PURE__ */ (0, U.jsx)(cT, {
tone: "error",
- status: Zfe,
+ status: Ife,
children: /* @__PURE__ */ (0, U.jsx)(J, {
variant: "danger",
...X(l),
@@ -37434,7 +36985,7 @@ function $fe() {
})
}) : null,
u && !d.length && !f.length ? /* @__PURE__ */ (0, U.jsx)("p", {
- className: `${ST} text-body-regular text-notification-success-foreground`,
+ className: `${sT} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -37445,21 +36996,21 @@ function $fe() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, U.jsx)(wT, {
+ /* @__PURE__ */ (0, U.jsx)(lT, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, U.jsxs)(ET, {
+ /* @__PURE__ */ (0, U.jsxs)(dT, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, U.jsx)(J, {
- leadingIcon: Jfe,
+ leadingIcon: Nfe,
...X(c),
onClick: () => g(),
children: c ? "检查中" : u ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, U.jsx)(TT, {
+ /* @__PURE__ */ (0, U.jsx)(uT, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -37470,13 +37021,13 @@ function $fe() {
children: K(e.error)
}) : m ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, U.jsx)(EM, {
+ children: [/* @__PURE__ */ (0, U.jsx)(gM, {
label: "链接总数",
- value: TM(m.total),
- note: `分布在 ${TM(m.entities)} 个女优、厂牌与系列`
- }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(EM, {
- label: wj[e] || e,
- value: TM(t)
+ value: hM(m.total),
+ note: `分布在 ${hM(m.entities)} 个女优、厂牌与系列`
+ }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(gM, {
+ label: mj[e] || e,
+ value: hM(t)
}, e))]
}), h ? /* @__PURE__ */ (0, U.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -37505,18 +37056,18 @@ function $fe() {
}
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var epe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, tpe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", npe = 8;
-function rpe({ plan: e }) {
+var zfe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Bfe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Vfe = 8;
+function Hfe({ plan: e }) {
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, npe).map((e) => /* @__PURE__ */ (0, U.jsxs)("li", {
+ children: e.rows.slice(0, Vfe).map((e) => /* @__PURE__ */ (0, U.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, U.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: Vj(e.current_path)
+ children: jj(e.current_path)
}),
/* @__PURE__ */ (0, U.jsx)("span", {
"aria-hidden": !0,
@@ -37526,7 +37077,7 @@ function rpe({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: Vj(e.target_path)
+ children: jj(e.target_path)
})
]
}, e.current_path))
@@ -37535,10 +37086,10 @@ function rpe({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function ipe({ toast: t, failure: n }) {
- let i = yw({
- queryKey: zj,
- queryFn: ({ signal: e }) => Bj(e)
+function Ufe({ toast: t, failure: n }) {
+ let i = vw({
+ queryKey: kj,
+ queryFn: ({ signal: e }) => Aj(e)
}), a = i.data, o = a?.locations ?? [], [s, c] = (0, B.useState)(""), l = o.some((e) => e.location === s) ? s : o[0]?.location ?? "", u = a?.templates?.[l], [d, f] = (0, B.useState)(null), p = d?.location === l ? d : {
location: l,
file: u?.file ?? "",
@@ -37550,9 +37101,9 @@ function ipe({ toast: t, failure: n }) {
location: l,
file_template: p.file.trim(),
dir_template: p.dir.trim()
- }), b = Sw({
- mutationFn: gfe,
- onSuccess: (e, t) => void vfe({
+ }), b = xw({
+ mutationFn: tfe,
+ onSuccess: (e, t) => void rfe({
...a?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -37560,29 +37111,29 @@ function ipe({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = bfe.test(K(e)) ? "dir" : "file";
+ let t = afe.test(K(e)) ? "dir" : "file";
g(t), (t === "dir" ? v : _).current?.focus();
}
- }), x = gM({
- queryKey: zj,
- queryFn: ({ signal: e }) => Bj(e),
- start: _fe,
+ }), x = oM({
+ queryKey: kj,
+ queryFn: ({ signal: e }) => Aj(e),
+ start: nfe,
jobOf: (e) => e,
- withJob: yfe,
+ withJob: ife,
onStarted: () => b.reset(),
onFinish: (e) => {
if (z.invalidateQueries({
- queryKey: zj,
+ queryKey: kj,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = Uj(e);
+ let { text: r, failed: i } = Nj(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), S = x.running || x.start.isPending, C = b.data, w = Number(C?.counts?.change || 0), T = M[l] || l, E = (a?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), D = () => {
b.isPending || !l || (g(null), b.mutate(y()));
}, O = () => void r({
title: "按模板整理文件",
- body: epe(T),
+ body: zfe(T),
confirmLabel: "整理文件",
onConfirm: () => x.start.mutateAsync({
kind: "apply",
@@ -37590,13 +37141,13 @@ function ipe({ toast: t, failure: n }) {
})
}), k = () => void r({
title: "回滚上一批整理",
- body: tpe,
+ body: Bfe,
confirmLabel: "回滚整理",
onConfirm: () => x.start.mutateAsync({ kind: "rollback" })
}), A = null, j = x.job, N = x.outcome;
if (j?.status === "running") {
let e = j.message || j.stage || "正在整理文件…";
- A = /* @__PURE__ */ (0, U.jsx)(PT, {
+ A = /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
label: e,
value: j.checked,
@@ -37608,7 +37159,7 @@ function ipe({ toast: t, failure: n }) {
children: N.error || "请查看任务记录,核对已处理的文件。"
});
else if (N) {
- let { text: e, failed: t } = Uj(N);
+ let { text: e, failed: t } = Nj(N);
A = /* @__PURE__ */ (0, U.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -37618,7 +37169,7 @@ function ipe({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: K(x.start.error)
- }) : b.isPending ? A = /* @__PURE__ */ (0, U.jsx)(PT, {
+ }) : b.isPending ? A = /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
label: "正在按模板算计划…"
}) : b.isError ? A = /* @__PURE__ */ (0, U.jsx)(Y, {
@@ -37628,9 +37179,9 @@ function ipe({ toast: t, failure: n }) {
}) : C && (A = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Y, {
tone: "neutral",
title: "预览结果",
- children: xfe(C)
- }), w ? /* @__PURE__ */ (0, U.jsx)(rpe, { plan: C }) : null] }));
- return /* @__PURE__ */ (0, U.jsxs)(ET, {
+ children: ofe(C)
+ }), w ? /* @__PURE__ */ (0, U.jsx)(Hfe, { plan: C }) : null] }));
+ return /* @__PURE__ */ (0, U.jsxs)(dT, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -37654,7 +37205,7 @@ function ipe({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, U.jsx)(TT, {
+ /* @__PURE__ */ (0, U.jsx)(uT, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -37674,20 +37225,20 @@ function ipe({ toast: t, failure: n }) {
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- o.length ? /* @__PURE__ */ (0, U.jsx)(eA, {
+ o.length ? /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: l || null,
onSelectionChange: (e) => {
e !== null && (c(String(e)), g(null), b.reset());
},
- children: o.map((t) => /* @__PURE__ */ (0, U.jsxs)(tA, {
+ children: o.map((t) => /* @__PURE__ */ (0, U.jsxs)(Vk, {
id: t.location,
textValue: M[t.location] || t.location,
- children: [/* @__PURE__ */ (0, U.jsx)(YT, { mark: e[t.location] || "database" }), M[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, U.jsx)(FT, { mark: e[t.location] || "database" }), M[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: p.file,
@@ -37698,7 +37249,7 @@ function ipe({ toast: t, failure: n }) {
m({ file: e }), g(null);
}
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: p.dir,
@@ -37738,56 +37289,56 @@ function ipe({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var ape = "/api/orphan-records", ope = "/api/orphan-records/attach", OM = ["orphan-records"], spe = [
+var Wfe = "/api/orphan-records", Gfe = "/api/orphan-records/attach", vM = ["orphan-records"], Kfe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], cpe = (e) => HC(ape, e), lpe = (e, t) => q(ope, {
+], qfe = (e) => VC(Wfe, e), Jfe = (e, t) => q(Gfe, {
id: e,
target: t
-}), upe = (e) => q(GA, {
+}), Yfe = (e) => q(FA, {
ids: [e],
operation: "delete"
-}), dpe = (e) => [
+}), Xfe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], kM = (e) => [...spe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...dpe(e)].filter(Boolean).join(" · "), fpe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", AM = (e) => [e.name, fpe(e.duration)].filter(Boolean).join(" · "), ppe = jC("play"), jM = () => z.invalidateQueries({
- queryKey: OM,
+], yM = (e) => [...Kfe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Xfe(e)].filter(Boolean).join(" · "), Zfe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", bM = (e) => [e.name, Zfe(e.duration)].filter(Boolean).join(" · "), Qfe = AC("play"), xM = () => z.invalidateQueries({
+ queryKey: vM,
exact: !0
});
-function mpe({ item: e, toast: t }) {
- let [n, i] = (0, B.useState)(e.candidates[0]?.id ?? null), a = Sw({
- mutationFn: () => lpe(e.id, Number(n)),
+function $fe({ item: e, toast: t }) {
+ let [n, i] = (0, B.useState)(e.candidates[0]?.id ?? null), a = xw({
+ mutationFn: () => Jfe(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), jM();
+ t(`记录已接到新文件,批次 ${e.batch}`), xM();
},
onError: (e) => t(K(e))
- }), o = Sw({
- mutationFn: () => upe(e.id),
+ }), o = xw({
+ mutationFn: () => Yfe(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), jM();
+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), xM();
}
}), s = () => {
r({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${kM(e.records)})。此操作不可撤销。`,
+ body: `将删除「${e.name}」这一条和它带的记录(${yM(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => o.mutateAsync()
});
}, c = a.isPending || o.isPending;
- return /* @__PURE__ */ (0, U.jsxs)(k_, {
+ return /* @__PURE__ */ (0, U.jsxs)(O_, {
id: e.id,
children: [
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsxs)("span", {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, U.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, U.jsx)(ppe, {
+ children: [/* @__PURE__ */ (0, U.jsx)(Qfe, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, U.jsx)("img", {
@@ -37809,27 +37360,27 @@ function mpe({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
className: "block min-w-44",
- children: kM(e.records)
+ children: yM(e.records)
}) }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: e.candidates.length ? /* @__PURE__ */ (0, U.jsx)(eA, {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: e.candidates.length ? /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && i(Number(e));
},
- children: e.candidates.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: e.candidates.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e.id,
- textValue: AM(e),
- children: AM(e)
+ textValue: bM(e),
+ children: bM(e)
}, e.id))
}) : /* @__PURE__ */ (0, U.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsxs)("span", {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, U.jsx)(J, {
size: "small",
@@ -37849,23 +37400,23 @@ function mpe({ item: e, toast: t }) {
]
});
}
-function hpe({ toast: e }) {
- let t = yw({
- queryKey: OM,
- queryFn: ({ signal: e }) => cpe(e)
+function epe({ toast: e }) {
+ let t = vw({
+ queryKey: vM,
+ queryFn: ({ signal: e }) => qfe(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, U.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, U.jsx)(wT, {
+ children: [/* @__PURE__ */ (0, U.jsx)(lT, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, U.jsxs)(ET, {
+ }), /* @__PURE__ */ (0, U.jsxs)(dT, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, U.jsx)(TT, {
+ /* @__PURE__ */ (0, U.jsx)(uT, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -37878,28 +37429,28 @@ function hpe({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: K(t.error)
- }) : /* @__PURE__ */ (0, U.jsx)(CM, { children: /* @__PURE__ */ (0, U.jsxs)(xM, {
+ }) : /* @__PURE__ */ (0, U.jsx)(pM, { children: /* @__PURE__ */ (0, U.jsxs)(dM, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, U.jsxs)(C_, { children: [
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(S_, { children: [
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, U.jsx)(E_, { children: n.map((t) => /* @__PURE__ */ (0, U.jsx)(mpe, {
+ ] }), /* @__PURE__ */ (0, U.jsx)(T_, { children: n.map((t) => /* @__PURE__ */ (0, U.jsx)($fe, {
item: t,
toast: e
}, t.id)) })]
@@ -37910,99 +37461,99 @@ function hpe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var gpe = jC("git-compare"), _pe = jC("rotate-cw"), vpe = "暂时无法读取进度,正在重新连接…", MM = "清理失效条目", NM = "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", PM = (e) => Number(e || 0).toLocaleString();
-function ype({ scan: t }) {
+var tpe = AC("git-compare"), npe = AC("rotate-cw"), rpe = "暂时无法读取进度,正在重新连接…", SM = "清理失效条目", CM = "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", wM = (e) => Number(e || 0).toLocaleString();
+function ipe({ scan: t }) {
let n = t.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("div", {
- className: NM,
+ className: CM,
children: (t.sources ?? []).map((t) => /* @__PURE__ */ (0, U.jsx)("article", {
- className: fM(),
- children: /* @__PURE__ */ (0, U.jsx)(pM, {
- label: Efe[t.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, U.jsx)(YT, { mark: e[t.location] ?? "database" }),
+ className: nM(),
+ children: /* @__PURE__ */ (0, U.jsx)(rM, {
+ label: dfe[t.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, U.jsx)(FT, { mark: e[t.location] ?? "database" }),
aside: /* @__PURE__ */ (0, U.jsx)("span", {
className: t.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: t.online ? "可访问" : "离线,已跳过"
}),
- figure: t.online ? `${PM(t.missing)} 项` : "—",
- meta: Afe(t),
+ figure: t.online ? `${wM(t.missing)} 项` : "—",
+ meta: hfe(t),
wrapMeta: !0
})
}, t.location))
}), /* @__PURE__ */ (0, U.jsxs)("div", {
- className: NM,
+ className: CM,
children: [
/* @__PURE__ */ (0, U.jsx)("article", {
- className: fM(),
- children: /* @__PURE__ */ (0, U.jsx)(pM, {
+ className: nM(),
+ children: /* @__PURE__ */ (0, U.jsx)(rM, {
label: "待永久删除",
- figure: `${PM(Qj(t))} 项`,
+ figure: `${wM(Hj(t))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, U.jsx)("article", {
- className: fM(),
- children: /* @__PURE__ */ (0, U.jsx)(pM, {
+ className: nM(),
+ children: /* @__PURE__ */ (0, U.jsx)(rM, {
label: "将标为已消失",
- figure: `${PM(t.vanish)} 项`,
+ figure: `${wM(t.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, U.jsx)("article", {
- className: fM(),
- children: /* @__PURE__ */ (0, U.jsx)(pM, {
+ className: nM(),
+ children: /* @__PURE__ */ (0, U.jsx)(rM, {
label: "空文件夹",
- figure: `${PM(t.empty)} 个`,
+ figure: `${wM(t.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, U.jsx)("article", {
- className: fM(),
- children: /* @__PURE__ */ (0, U.jsx)(pM, {
+ className: nM(),
+ children: /* @__PURE__ */ (0, U.jsx)(rM, {
label: "可清理的缓存",
- figure: `${PM(n.files)} 个`,
+ figure: `${wM(n.files)} 个`,
meta: n.files ? I(n.bytes) : ""
})
})
]
})] });
}
-function bpe({ toast: e }) {
- let t = gM({
- queryKey: qj,
- queryFn: ({ signal: e }) => Yj(e),
- start: Cfe,
+function ape({ toast: e }) {
+ let t = oM({
+ queryKey: Lj,
+ queryFn: ({ signal: e }) => zj(e),
+ start: cfe,
onFinish: (t) => {
if (z.invalidateQueries({
- queryKey: aM,
+ queryKey: Yj,
exact: !0
}), z.invalidateQueries({
- queryKey: Kj,
+ queryKey: Ij,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = tM(t);
- r ? e(`已完成 ${PM(n)} 项,${PM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = Gj(t);
+ r ? e(`已完成 ${wM(n)} 项,${wM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = gM({
- queryKey: Kj,
- queryFn: ({ signal: e }) => Jj(e),
- start: Sfe,
+ }), n = oM({
+ queryKey: Ij,
+ queryFn: ({ signal: e }) => Rj(e),
+ start: sfe,
onStarted: () => t.dismiss()
}), i = n.job, a = n.running || n.start.isPending, o = t.running || t.start.isPending, s = i?.status === "complete" || i?.status === "failed", c = a ? "扫描中" : s ? "重新扫描" : "检查文件", l = (e) => void r({
- title: MM,
- body: kfe(e),
- confirmLabel: MM,
+ title: SM,
+ body: mfe(e),
+ confirmLabel: SM,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = tM(e).left > 0;
+ let t = Gj(e).left > 0;
return /* @__PURE__ */ (0, U.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: jfe(e, I)
+ children: gfe(e, I)
});
}, f = null, p = null;
if (u?.status === "failed") p = /* @__PURE__ */ (0, U.jsx)(Y, {
@@ -38011,7 +37562,7 @@ function bpe({ toast: e }) {
children: u.error || "请查看任务记录,核对已处理的文件。"
});
else if (u) p = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, U.jsx)(PT, {
+ else if (t.running) f = /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -38023,11 +37574,11 @@ function bpe({ toast: e }) {
else if (n.query.isError && i) p = /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: vpe
+ children: rpe
});
else if (i?.status === "running") {
- let e = Dfe(i);
- f = /* @__PURE__ */ (0, U.jsx)(PT, {
+ let e = ffe(i);
+ f = /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
label: e,
value: i.completed_sources,
@@ -38044,13 +37595,13 @@ function bpe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (i?.status === "complete") {
- let e = Tfe(i);
+ let e = ufe(i);
p = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- /* @__PURE__ */ (0, U.jsx)(ype, { scan: i }),
+ /* @__PURE__ */ (0, U.jsx)(ipe, { scan: i }),
e ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "neutral",
title: "清理内容",
- children: Ofe(i)
+ children: pfe(i)
}) : null,
/* @__PURE__ */ (0, U.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -38058,7 +37609,7 @@ function bpe({ toast: e }) {
variant: "danger",
...X(o),
onClick: () => l(i),
- children: o ? "正在复核并清理…" : MM
+ children: o ? "正在复核并清理…" : SM
}) : /* @__PURE__ */ (0, U.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -38075,16 +37626,16 @@ function bpe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, U.jsx)(wT, {
+ /* @__PURE__ */ (0, U.jsx)(lT, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, U.jsxs)(ET, {
+ /* @__PURE__ */ (0, U.jsxs)(dT, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, U.jsx)(J, {
"data-resource-scan": !0,
- leadingIcon: s && !a ? _pe : gpe,
+ leadingIcon: s && !a ? npe : tpe,
...X(a),
onClick: () => {
a || n.start.mutate();
@@ -38092,7 +37643,7 @@ function bpe({ toast: e }) {
children: c
}),
children: [
- /* @__PURE__ */ (0, U.jsx)(TT, {
+ /* @__PURE__ */ (0, U.jsx)(uT, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -38118,16 +37669,16 @@ function bpe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function FM(e, t) {
+function TM(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function IM({ section: e, label: t, icon: n, value: r, open: i }) {
+function EM({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
- className: fM({ interactive: !0 }),
+ className: nM({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, U.jsx)(pM, {
+ children: /* @__PURE__ */ (0, U.jsx)(rM, {
label: t,
icon: n,
figure: r.figure,
@@ -38135,80 +37686,80 @@ function IM({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var xpe = jC("square-check-big"), Spe = jC("sparkles"), Cpe = jC("file-stack"), wpe = jC("file-archive"), LM = jC("trash"), RM = [
- nM,
- nj,
- WA
-], zM = () => {
- for (let e of RM) z.invalidateQueries({
+var ope = AC("square-check-big"), spe = AC("sparkles"), cpe = AC("file-stack"), lpe = AC("file-archive"), upe = AC("trash"), dpe = [
+ Kj,
+ KA,
+ PA
+], fpe = () => {
+ for (let e of dpe) z.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function BM({ toast: e, failure: t, open: n }) {
- let r = yw({
- queryKey: nM,
- queryFn: ({ signal: e }) => oM(e)
- }), i = yw({
- queryKey: nj,
- queryFn: ({ signal: e }) => rj(e)
- }), a = yw({
- queryKey: WA,
- queryFn: ({ signal: e }) => KA(e)
- }), o = yw({
- queryKey: rM,
- queryFn: ({ signal: e }) => sM(e)
- }), s = yw({
- queryKey: aM,
- queryFn: ({ signal: e }) => cM(e)
- }), c = yw({
- queryKey: VA,
- queryFn: ({ signal: e }) => HA(e)
+function ppe({ toast: e, failure: t, open: n }) {
+ let r = vw({
+ queryKey: Kj,
+ queryFn: ({ signal: e }) => Xj(e)
+ }), i = vw({
+ queryKey: KA,
+ queryFn: ({ signal: e }) => qA(e)
+ }), a = vw({
+ queryKey: PA,
+ queryFn: ({ signal: e }) => IA(e)
+ }), o = vw({
+ queryKey: qj,
+ queryFn: ({ signal: e }) => Zj(e)
+ }), s = vw({
+ queryKey: Yj,
+ queryFn: ({ signal: e }) => Qj(e)
+ }), c = vw({
+ queryKey: jA,
+ queryFn: ({ signal: e }) => MA(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, U.jsxs)(qk, { children: [
+ return /* @__PURE__ */ (0, U.jsxs)(Nk, { children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
- className: Hfe,
+ className: Dfe,
children: [
- /* @__PURE__ */ (0, U.jsx)(IM, {
+ /* @__PURE__ */ (0, U.jsx)(EM, {
section: "review",
label: "人工复核",
- icon: xpe,
+ icon: ope,
open: n,
- value: FM(r, Ffe)
+ value: TM(r, bfe)
}),
- /* @__PURE__ */ (0, U.jsx)(IM, {
+ /* @__PURE__ */ (0, U.jsx)(EM, {
section: "quality",
label: "高清版",
- icon: Spe,
+ icon: spe,
open: n,
- value: FM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: TM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, U.jsx)(IM, {
+ /* @__PURE__ */ (0, U.jsx)(EM, {
section: "duplicates",
label: "重复文件",
- icon: Cpe,
+ icon: cpe,
open: n,
- value: FM(a, (e) => Number(e.total || 0) ? {
+ value: TM(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${I(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, U.jsx)(IM, {
+ /* @__PURE__ */ (0, U.jsx)(EM, {
section: "ads",
label: "垃圾文件",
- icon: wpe,
+ icon: lpe,
open: n,
- value: FM(o, (e) => ({
+ value: TM(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: Ife(e)
+ meta: xfe(e)
}))
}),
- /* @__PURE__ */ (0, U.jsx)(IM, {
+ /* @__PURE__ */ (0, U.jsx)(EM, {
section: "trash",
label: "回收站",
- icon: LM,
+ icon: upe,
open: n,
- value: FM(s, (e) => ({
+ value: TM(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${I(e.bytes || 0)}` : ""
}))
@@ -38221,30 +37772,30 @@ function BM({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, U.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, U.jsx)(ZT, {
+ children: /* @__PURE__ */ (0, U.jsx)(LT, {
toast: l,
monitor: !0,
- onComplete: zM
+ onComplete: fpe
})
}),
/* @__PURE__ */ (0, U.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, U.jsx)(Kfe, {})
+ children: /* @__PURE__ */ (0, U.jsx)(jfe, {})
}),
- /* @__PURE__ */ (0, U.jsx)(ipe, {
+ /* @__PURE__ */ (0, U.jsx)(Ufe, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, U.jsx)($fe, {}),
- /* @__PURE__ */ (0, U.jsx)(hpe, { toast: l }),
- Xj(c.data) ? /* @__PURE__ */ (0, U.jsx)(bpe, { toast: e }) : null
+ /* @__PURE__ */ (0, U.jsx)(Rfe, {}),
+ /* @__PURE__ */ (0, U.jsx)(epe, { toast: l }),
+ Bj(c.data) ? /* @__PURE__ */ (0, U.jsx)(ape, { toast: e }) : null
] });
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var VM = [
+var mpe = [
"loc",
"creator",
"tag",
@@ -38254,51 +37805,51 @@ var VM = [
"orient",
"sort",
"dir"
-], HM = {
+], DM = {
media: "videos",
set: 0
-}, UM = (e, t) => [
+}, OM = (e, t) => [
"entity",
e,
t
-], WM = (e, t, n, r) => [
+], hpe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], GM = (e, t, n, r) => [
+], kM = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], KM = (e) => String(e || "").split(",").filter(Boolean), qM = (e, t) => KM(e).includes(t);
-function JM(e, t, n, r, i = 0) {
+], AM = (e) => String(e || "").split(",").filter(Boolean), gpe = (e, t) => AM(e).includes(t);
+function jM(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 VM) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of mpe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function YM(e, t, n, r, i, a) {
- return await N(`/api/items?${JM(e, t, n, r, i)}`, a ? { signal: a } : {});
+async function MM(e, t, n, r, i, a) {
+ return await N(`/api/items?${jM(e, t, n, r, i)}`, a ? { signal: a } : {});
}
-var XM = (e) => {
+var NM = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = JM(e.kind, e.name, e.filters, t).toString();
+ }, n = jM(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: WM(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => YM(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: hpe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => MM(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, ZM = (e, t) => ({
- queryKey: UM(e, t),
+}, PM = (e, t) => ({
+ queryKey: OM(e, t),
queryFn: ({ signal: n }) => N(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function QM(e, t, n, r, i, a) {
+function _pe(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)}` : ""}`;
@@ -38307,10 +37858,10 @@ function QM(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 $M = (e, t, n, r) => ({
- queryKey: GM(e, t, n, r),
+var FM = (e, t, n, r) => ({
+ queryKey: kM(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await N(QM(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await N(_pe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -38323,8 +37874,8 @@ var $M = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), eN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function tN(e) {
+}), IM = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function vpe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -38336,51 +37887,51 @@ async function tN(e) {
n
] });
await Promise.all([
- z.fetchQuery(ZM(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: $C(Number(t.id)) }), z.fetchQuery(ew(Number(t.id), e.helpers.feedRowHtml, !0)))),
- z.fetchQuery(XM(e)),
- z.fetchInfiniteQuery($M(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery($M(t, n, e.media.set, "")) : null
+ z.fetchQuery(PM(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: QC(Number(t.id)) }), z.fetchQuery($C(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ z.fetchQuery(NM(e)),
+ z.fetchInfiniteQuery(FM(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(FM(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var nN = "/api/follow/authors", rN = "/api/follow/tags", iN = (e) => [
+var ype = "/api/follow/authors", bpe = "/api/follow/tags", xpe = (e) => [
"follow",
"authors",
e
-], aN = (e, t) => [
+], Spe = (e, t) => [
"follow",
"tags",
e,
t
];
-function oN(e, t, n) {
+function Cpe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${nN}?${r}`;
+ return e && r.set("q", e), `${ype}?${r}`;
}
-function sN(e, t, n, r) {
+function wpe(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), `${rN}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${bpe}?${i}`;
}
-var cN = (e, t, n, r) => HC(oN(e, t, n), r), lN = (e, t, n, r, i) => HC(sN(e, t, n, r), i), uN = "/api/index", dN = {
+var LM = (e, t, n, r) => VC(Cpe(e, t, n), r), RM = (e, t, n, r, i) => VC(wpe(e, t, n, r), i), zM = "/api/index", BM = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, fN = {
+}, VM = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, pN = [
+}, HM = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -38390,26 +37941,26 @@ var cN = (e, t, n, r) => HC(oN(e, t, n), r), lN = (e, t, n, r, i) => HC(sN(e, t,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], mN = [
+], UM = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], hN = {
+], WM = {
people: 120,
tags: 180
-}, gN = (e) => e !== "tags", _N = (e) => e === "studios" || e === "agencies";
-function vN(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? mN : pN).some(([t]) => t === e.category);
+}, GM = (e) => e !== "tags", KM = (e) => e === "studios" || e === "agencies";
+function qM(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? UM : HM).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function yN(e) {
+function JM(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -38428,50 +37979,50 @@ function yN(e) {
q: n
};
}
-var bN = (e, t, n = "all") => [
+var YM = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function xN(e, t, n, r, i) {
+function XM(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${uN}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${zM}?${a}`;
}
-function SN(e) {
- let t = e.what === "people" || e.what === "online-authors" ? hN.people : hN.tags, n = {
+function ZM(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? WM.people : WM.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: bN(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => HC(xN(e.kind, e.q, "all", t, n), r)
+ queryKey: YM(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => VC(XM(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: bN("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => HC(xN("tags", e.q, e.category, t, n), r)
+ queryKey: YM("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => VC(XM("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: iN(e.q),
- queryFn: ({ pageParam: n, signal: r }) => cN(e.q, t, n, r)
+ queryKey: xpe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => LM(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: aN(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => lN(e.q, e.category, t, n, r)
+ queryKey: Spe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => RM(e.q, e.category, t, n, r)
};
}
}
-async function CN(e, t) {
- let n = SN(yN(vN(e)));
+async function QM(e, t) {
+ let n = ZM(JM(qM(e)));
z.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -38485,13 +38036,13 @@ async function CN(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var wN = (e) => e ? e.pages.flatMap((e) => e.items) : [], TN = (e, t) => `${e}${t ? "+" : ""} 项`, EN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", DN = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), ON = {
+var $M = (e) => e ? e.pages.flatMap((e) => e.items) : [], eN = (e, t) => `${e}${t ? "+" : ""} 项`, tN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", nN = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), rN = {
numeric: !0,
sensitivity: "base"
};
-function Tpe(e, t) {
+function iN(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", ON))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", rN))) {
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]);
}
@@ -38499,7 +38050,7 @@ function Tpe(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function kN({ html: e, face: t, company: n, big: r }) {
+function aN({ 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");
@@ -38511,18 +38062,18 @@ function kN({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Epe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function AN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var oN = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function sN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: bT({
+ className: oT({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Epe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${oN} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -38539,8 +38090,8 @@ function AN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function jN({ kind: e, items: t, layout: n, props: r }) {
- let i = fN[e], a = _N(e), o = n === "big";
+function cN({ kind: e, items: t, layout: n, props: r }) {
+ let i = VM[e], a = KM(e), o = n === "big";
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -38548,14 +38099,14 @@ function jN({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, U.jsx)(AN, {
+ return /* @__PURE__ */ (0, U.jsx)(sN, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: DN(e, t),
+ readout: nN(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, U.jsx)(kN, {
+ children: /* @__PURE__ */ (0, U.jsx)(aN, {
html: n.html,
face: n.face,
company: a,
@@ -38565,21 +38116,21 @@ function jN({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Dpe({ items: e, layout: t, props: n }) {
+function lN({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, U.jsx)(AN, {
+ children: e.map((e) => /* @__PURE__ */ (0, U.jsx)(sN, {
"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, U.jsx)(kN, {
+ children: /* @__PURE__ */ (0, U.jsx)(aN, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -38589,14 +38140,14 @@ function Dpe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function Ope(e) {
+function uN(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 MN = "/vendor/swiper/14.2.0/", NN = null, kpe = () => NN ??= Promise.all([new Promise((e, t) => {
- let n = `${MN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var dN = "/vendor/swiper/14.2.0/", fN = null, pN = () => fN ??= Promise.all([new Promise((e, t) => {
+ let n = `${dN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -38610,11 +38161,11 @@ var MN = "/vendor/swiper/14.2.0/", NN = null, kpe = () => NN ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${MN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${dN}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 NN = null, e;
+ throw fN = null, e;
});
-function Ape(e, t, n) {
+function mN(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);
@@ -38635,48 +38186,48 @@ function Ape(e, t, n) {
}
};
}
-var PN = (e) => {
+var hN = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : I(t)).replace(" ", "\xA0") : "大小未知";
-}, jpe = (e) => e.asset?.name || e.name || "未命名图片";
-function Mpe(e, t) {
+}, gN = (e) => e.asset?.name || e.name || "未命名图片";
+function _N(e, t) {
let n = e.asset;
- if (n) return [M[n.location ?? ""] || n.location || "来源未知", PN(n.size)].join(" · ");
+ if (n) return [M[n.location ?? ""] || n.location || "来源未知", hN(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 ? PN(e.size) : ""
+ e.size ? hN(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var FN = null, IN = null, Npe = 0;
-function Ppe() {
- return (!IN || !FN?.isConnected) && (IN?.unmount(), FN = document.createElement("div"), FN.className = "peach-react", FN.dataset.photoLightboxHost = "", document.body.append(FN), IN = (0, Ot.createRoot)(FN)), IN;
+var vN = null, yN = null, bN = 0;
+function xN() {
+ return (!yN || !vN?.isConnected) && (yN?.unmount(), vN = document.createElement("div"), vN.className = "peach-react", vN.dataset.photoLightboxHost = "", document.body.append(vN), yN = (0, Ot.createRoot)(vN)), yN;
}
-async function LN(e, t, n) {
+async function SN(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await kpe();
+ r = await pN();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Ppe();
- (0, Dt.flushSync)(() => i.render(/* @__PURE__ */ (0, U.jsx)(Fpe, {
+ let i = xN();
+ (0, Dt.flushSync)(() => i.render(/* @__PURE__ */ (0, U.jsx)(wN, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Npe)));
+ }, ++bN)));
}
-function RN() {
- IN && (0, Dt.flushSync)(() => IN.render(null));
+function CN() {
+ yN && (0, Dt.flushSync)(() => yN.render(null));
}
-function Fpe({ slides: e, index: t, Swiper: n, host: r }) {
+function wN({ 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), [S, C] = (0, B.useState)({}), [T, E] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [O, k] = (0, B.useState)(!1), [A, j] = (0, B.useState)({
at: t,
text: ""
@@ -38719,7 +38270,7 @@ function Fpe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Ape(e, a, b);
+ i(t, 0), h.current = mN(e, a, b);
let m = D(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();
};
@@ -38736,13 +38287,13 @@ function Fpe({ 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) : RN());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : CN());
};
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 && Ope(m.current);
+ m.current && uN(m.current);
}, [y]);
let M = e[_], N = M.asset ?? null, ee = async (e) => {
if (!N || !r || e.getAttribute("aria-busy") === "true") return;
@@ -38773,18 +38324,18 @@ function Fpe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), RN();
+ e.preventDefault(), CN();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && RN();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && CN();
},
children: [
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: RN,
+ onClick: CN,
dangerouslySetInnerHTML: { __html: L("x") }
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
@@ -38917,10 +38468,10 @@ function Fpe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: jpe(M)
+ children: gN(M)
}, _), /* @__PURE__ */ (0, U.jsx)("span", {
"data-photo-detail-meta": "",
- children: Mpe(M, S[_])
+ children: _N(M, S[_])
})]
}),
/* @__PURE__ */ (0, U.jsx)("button", {
@@ -38959,33 +38510,33 @@ function Fpe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Ipe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, U.jsx)(Lpe, {
+function TN(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, U.jsx)(EN, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, U.jsx)(Rpe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, U.jsx)(Vpe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, U.jsx)(DN, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, U.jsx)(Epe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function Lpe({ roster: e, props: t }) {
+function EN({ 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, U.jsx)(jN, {
+ return /* @__PURE__ */ (0, U.jsx)(cN, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function Rpe(e) {
- let t = Dw(!e.items, e.skeletonHtml);
+function DN(e) {
+ let t = oA(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, U.jsx)(RA, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, U.jsx)(OA, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -39004,16 +38555,16 @@ function Rpe(e) {
}) : null]
});
}
-var zpe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var ON = (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 || "官方样张"
-})), zN = (e) => e.sample === !0, BN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, VN = (e) => zN(e) ? `/sample-thumb?${BN(e)}` : `/photo-thumb?id=${e.id}`, Bpe = (e) => zN(e) ? {
- src: `/sample-image?${BN(e)}`,
- thumb: VN(e),
+})), kN = (e) => e.sample === !0, AN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, jN = (e) => kN(e) ? `/sample-thumb?${AN(e)}` : `/photo-thumb?id=${e.id}`, Tpe = (e) => kN(e) ? {
+ src: `/sample-image?${AN(e)}`,
+ thumb: jN(e),
name: e.name,
asset: null,
source: e.source,
@@ -39021,18 +38572,18 @@ var zpe = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: VN(e),
+ thumb: jN(e),
name: e.name || "",
asset: e
};
-function Vpe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(zpe), ...e.items], [e]), [s, c] = (0, B.useState)(() => /* @__PURE__ */ new Set()), l = (0, B.useCallback)((e) => c((t) => {
+function Epe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(ON), ...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) => {
- LN(e, o.map(Bpe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, U.jsx)(Hpe, {
+ SN(e, o.map(Tpe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, U.jsx)(Dpe, {
item: e,
index: t,
lost: s.has(t),
@@ -39050,7 +38601,7 @@ function Vpe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, U.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(HN, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, U.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(MN, {
label: e.code,
title: e.name,
meta: [
@@ -39062,7 +38613,7 @@ function Vpe({ 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, U.jsx)(HN, {
+ m.length && e.total ? /* @__PURE__ */ (0, U.jsx)(MN, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -39071,14 +38622,14 @@ function Vpe({ 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, U.jsx)(zA, {
+ e.hasMore ? /* @__PURE__ */ (0, U.jsx)(kA, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function HN({ label: e, title: t, meta: n }) {
+function MN({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -39095,7 +38646,7 @@ function HN({ label: e, title: t, meta: n }) {
]
});
}
-function Hpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function Dpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
@@ -39104,7 +38655,7 @@ function Hpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, U.jsx)("img", {
- src: VN(e),
+ src: jN(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -39113,7 +38664,7 @@ function Hpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
})
});
}
-function UN(e) {
+function NN(e) {
return {
x0: 0,
y0: 0,
@@ -39121,7 +38672,7 @@ function UN(e) {
y1: e.height
};
}
-function WN(e) {
+function PN(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -39129,40 +38680,40 @@ function WN(e) {
y1: Math.round(e.y1)
};
}
-function GN(e) {
+function FN(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function KN(e, t) {
- if (!GN(e)) return {
+function IN(e, t) {
+ if (!FN(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return UN(e);
+ if (t == null || !(t > 0)) return NN(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 WN({
+ return PN({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function Upe(e, t) {
- if (!GN(e) || !(t > 0)) return UN(e);
+function Ope(e, t) {
+ if (!FN(e) || !(t > 0)) return NN(e);
let n = Math.min(e.width, e.height * t);
- return WN({
+ return PN({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function Wpe(e, t, n) {
- if (!GN(t) || !(n > 0)) return UN(t);
- let r = qN(e, t), i = KN({
+function kpe(e, t, n) {
+ if (!FN(t) || !(n > 0)) return NN(t);
+ let r = LN(e, t), i = IN({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -39173,8 +38724,8 @@ function Wpe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function qN(e, t, n = null, r = "width") {
- if (!GN(t)) return {
+function LN(e, t, n = null, r = "width") {
+ if (!FN(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -39183,43 +38734,43 @@ function qN(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 WN({
+ return PN({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function JN(e, t, n, r) {
+function RN(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 WN({
+ return PN({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function YN(e, t, n, r = null) {
- if (!GN(n) || !(t > 0)) return e;
+function zN(e, t, n, r = null) {
+ if (!FN(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 qN({
+ return LN({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function Gpe(e, t, n, r, i = null) {
+function Ape(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 qN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return LN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function Kpe(e, t) {
- return GN(t) ? {
+function jpe(e, t) {
+ return FN(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -39231,8 +38782,8 @@ function Kpe(e, t) {
height: 0
};
}
-function qpe(e, t) {
- if (!GN(t)) return {
+function Mpe(e, t) {
+ if (!FN(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -39242,7 +38793,7 @@ function qpe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function Jpe(e, t) {
+function Npe(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}%`,
@@ -39251,17 +38802,17 @@ function Jpe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function XN(e, t, n) {
+function BN(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var Ype = {
+var Ppe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function ZN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function VN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = Ia();
return /* @__PURE__ */ (0, U.jsx)(ag, {
isOpen: e,
@@ -39272,7 +38823,7 @@ function ZN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
children: /* @__PURE__ */ (0, U.jsx)(oee, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${Ype[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ className: `flex max-h-full w-full ${Ppe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
children: /* @__PURE__ */ (0, U.jsx)(ph, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
@@ -39281,7 +38832,7 @@ function ZN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function QN({ children: e }) {
+function HN({ children: e }) {
return /* @__PURE__ */ (0, U.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",
@@ -39290,8 +38841,8 @@ function QN({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var Xpe = .02, $N = 1.08;
-function eP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var Fpe = .02, UN = 1.08;
+function WN({ 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);
@@ -39302,8 +38853,8 @@ function eP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: XN(e, n.clientWidth, r.width),
- dy: XN(t, n.clientHeight, r.height)
+ dx: BN(e, n.clientWidth, r.width),
+ dy: BN(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -39321,29 +38872,29 @@ function eP({ 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(JN(n.box, o.dx, o.dy, r));
+ i(RN(n.box, o.dx, o.dy, r));
return;
}
- i(Gpe(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(Ape(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) * Xpe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * Fpe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(JN(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(RN(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(YN(n, e.key === "-" ? 1 / $N : $N, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(zN(n, e.key === "-" ? 1 / UN : UN, r, t)));
}
- let g = n && r ? Kpe(qN(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? jpe(LN(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -39362,7 +38913,7 @@ function eP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- GN({
+ FN({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -39401,7 +38952,7 @@ function eP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(YN(n, e.deltaY > 0 ? $N : 1 / $N, r, t));
+ !n || !r || i(zN(n, e.deltaY > 0 ? UN : 1 / UN, 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, U.jsx)("span", {
@@ -39423,61 +38974,61 @@ function eP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Zpe = "/api/avatar-choices", tP = "/api/avatar-pick", Qpe = "/api/avatar-code-cover", $pe = "/avatar-choice", nP = (e, t) => [
+var Ipe = "/api/avatar-choices", GN = "/api/avatar-pick", Lpe = "/api/avatar-code-cover", Rpe = "/avatar-choice", KN = (e, t) => [
"avatar-choices",
e,
t
-], rP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, iP = (e, t, n, r = "") => `${$pe}${rP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), aP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", eme = (e, t, n) => HC(Zpe + rP(e, t), n), tme = (e) => q(Qpe, { code: e });
-function oP(e, t, n) {
+], qN = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, JN = (e, t, n, r = "") => `${Rpe}${qN(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), YN = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", zpe = (e, t, n) => VC(Ipe + qN(e, t), n), Bpe = (e) => q(Lpe, { code: e });
+function XN(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Wpe(e.focus, t, n) : KN(t, n);
+ return e.focus && r ? kpe(e.focus, t, n) : IN(t, n);
}
-var nme = (e) => e.crop && GN({
+var Vpe = (e) => e.crop && FN({
width: e.width,
height: e.height
});
-async function rme(e, t, n) {
+async function Hpe(e, t, n) {
if (!("file" in n)) {
- await q(tP, {
+ await q(GN, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${tP}${rP(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${GN}${qN(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 BC(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new zC(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function ime(e, t) {
+function Upe(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 ame = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function ome(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${ame(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Wpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function Gpe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Wpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var sP = (e) => e.cast > 1, sme = (e) => sP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, cme = {
+var ZN = (e) => e.cast > 1, Kpe = (e) => ZN(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, qpe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function lme(e) {
+function Jpe(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 ume = (e) => `${cme[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (sP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), dme = 8, fme = 3 / 4;
-function pme({ kind: e, entityId: t, name: n, onPicked: r }) {
+var Ype = (e) => `${qpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (ZN(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Xpe = 8, Zpe = 3 / 4;
+function Qpe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -39487,17 +39038,17 @@ function pme({ 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, U.jsx)(soe, {
+ children: /* @__PURE__ */ (0, U.jsx)(Gae, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, U.jsx)(ZN, {
+ }), /* @__PURE__ */ (0, U.jsx)(VN, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, U.jsx)(mme, {
+ children: /* @__PURE__ */ (0, U.jsx)($pe, {
kind: e,
entityId: t,
name: n,
@@ -39506,33 +39057,33 @@ function pme({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, B.useRef)(null), o = Iw(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = nP(e, t), g = (0, B.useRef)(!1), _ = yw({
+function $pe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, B.useRef)(null), o = fT(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = KN(e, t), g = (0, B.useRef)(!1), _ = vw({
queryKey: h,
- queryFn: ({ signal: n }) => eme(e, t, n),
+ queryFn: ({ signal: n }) => zpe(e, t, n),
retryOnMount: !0
});
(0, B.useEffect)(() => () => {
- g.current && z.removeQueries({ queryKey: nP(e, t) });
+ g.current && z.removeQueries({ queryKey: KN(e, t) });
}, [e, t]);
- let v = Sw({
- mutationFn: (n) => rme(e, t, n),
+ let v = xw({
+ mutationFn: (n) => Hpe(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
- }), y = Sw({
- mutationFn: (e) => tme(e),
+ }), y = xw({
+ mutationFn: (e) => Bpe(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 ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : ome(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Gpe(x);
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, U.jsx)(QN, { children: /* @__PURE__ */ (0, U.jsx)(dT, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, U.jsx)(HN, { children: /* @__PURE__ */ (0, U.jsx)(Zw, { className: "size-6" }) }),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -39542,14 +39093,14 @@ function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, U.jsxs)(Kk, {
+ }), !p && S.length ? /* @__PURE__ */ (0, U.jsxs)(jk, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? sme(p) : ime(n, x)
+ children: p ? Kpe(p) : Upe(n, x)
}),
T ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "neutral",
@@ -39561,14 +39112,14 @@ function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, U.jsx)(OT, {
- icon: Qw,
+ /* @__PURE__ */ (0, U.jsx)(mT, {
+ icon: Rw,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, U.jsx)(gme, {
+ }), p ? /* @__PURE__ */ (0, U.jsx)(tme, {
kind: e,
entityId: t,
choice: p,
@@ -39592,7 +39143,7 @@ function mme({ 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: dme }, (e, t) => /* @__PURE__ */ (0, U.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: Xpe }, (e, t) => /* @__PURE__ */ (0, U.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",
@@ -39605,15 +39156,15 @@ function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: ume(n),
+ title: Ype(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, U.jsx)(hme, {
- src: iP(e, t, n.ref, aP(n, n.ref)),
+ /* @__PURE__ */ (0, U.jsx)(eme, {
+ src: JN(e, t, n.ref, YN(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, U.jsx)("span", {
@@ -39622,15 +39173,15 @@ function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, U.jsx)(Kk, {
+ children: /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- sP(n) ? /* @__PURE__ */ (0, U.jsx)("span", {
+ ZN(n) ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, U.jsxs)(Kk, {
+ children: /* @__PURE__ */ (0, U.jsxs)(jk, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -39649,7 +39200,7 @@ function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Rk, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -39684,7 +39235,7 @@ function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Rk, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -39704,7 +39255,7 @@ function mme({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function hme({ src: e, choice: t }) {
+function eme({ 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);
@@ -39712,7 +39263,7 @@ function hme({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = nme(t) ? Jpe(oP(t, a, fme), a) : null, s = r ? !0 : void 0;
+ }, o = Vpe(t) ? Npe(XN(t, a, Zpe), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, U.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, U.jsx)("img", {
@@ -39737,23 +39288,23 @@ function hme({ src: e, choice: t }) {
})]
});
}
-function gme({ 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 = aP(n, s), m = iP(e, t, s, p), h = Iw();
+function tme({ 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 = YN(n, s), m = JN(e, t, s, p), h = fT();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? qpe(d, l) : null;
+ let _ = d && l ? Mpe(d, l) : null;
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.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, U.jsx)(eP, {
+ children: [/* @__PURE__ */ (0, U.jsx)(WN, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), GN(e) && f(s === n.ref ? oP(n, e, 1) : KN(e, 1));
+ u(e), FN(e) && f(s === n.ref ? XN(n, e, 1) : IN(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, U.jsx)("div", {
@@ -39767,7 +39318,7 @@ function gme({ 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: lme(e)
+ children: Jpe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, U.jsxs)("div", {
@@ -39801,12 +39352,12 @@ function gme({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var _me = {
+var nme = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function cP({ name: e }) {
- let t = _me[e];
+function QN({ name: e }) {
+ let t = nme[e];
return /* @__PURE__ */ (0, U.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -39816,19 +39367,19 @@ function cP({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function lP(e, t) {
+function $N(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 eP = (e) => !!e?.isConnected && e.matches(":popover-open");
+function tP(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 && eP(n.current) ? $N(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -39842,17 +39393,17 @@ function dP(e, t, n, r) {
n
]);
}
-function fP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function nP({ 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, eP(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 || eP(s.current)) && (s.current.showPopover(), $N(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 tP(c, o, s, f), (0, B.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -39878,7 +39429,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" && eP(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, U.jsxs)("div", {
@@ -39896,16 +39447,16 @@ function fP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function vme({ following: e, busy: t, onToggle: n, tip: r }) {
+function rme({ 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);
+ eP(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 || eP(o.current) || (o.current.showPopover(), $N(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 tP(s, i, o, () => c(!1)), (0, B.useEffect)(() => {
+ i.current && eP(o.current) && $N(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, U.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -39914,7 +39465,7 @@ function vme({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, U.jsx)(cP, { name: "rss" }),
+ /* @__PURE__ */ (0, U.jsx)(QN, { name: "rss" }),
/* @__PURE__ */ (0, U.jsx)("input", {
ref: a,
type: "checkbox",
@@ -39949,7 +39500,7 @@ function vme({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function yme({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function ime({ 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", "名字与别名");
@@ -39960,12 +39511,12 @@ function yme({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, U.jsx)(cP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, U.jsx)(QN, { name: "chevron-down" })
}), /* @__PURE__ */ (0, U.jsx)(tm, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: _T,
+ className: rT,
"data-namepick-menu": "",
children: /* @__PURE__ */ (0, U.jsxs)(rh, {
"aria-label": "名字与别名",
@@ -39983,7 +39534,7 @@ function yme({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, U.jsx)(cP, { name: "check" }), /* @__PURE__ */ (0, U.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, U.jsx)(QN, { name: "check" }), /* @__PURE__ */ (0, U.jsx)("span", { children: e })]
}, e))
}),
/* @__PURE__ */ (0, U.jsx)(Tu, { "data-namepick-rule": "" }),
@@ -39992,18 +39543,18 @@ function yme({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, U.jsx)(cP, { name: "plus" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, U.jsx)(QN, { name: "plus" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var bme = (e) => e === "studio" || e === "agency", xme = (e) => e === "performer" || e === "creator", Sme = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function Cme(e) {
+var ame = (e) => e === "studio" || e === "agency", ome = (e) => e === "performer" || e === "creator", sme = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function cme(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function pP(e) {
+function rP(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -40014,13 +39565,13 @@ function pP(e) {
linked: !1
} : null;
}
-function mP(e, t) {
+function iP(e, t) {
let n = oe(e, "performer"), r = re(t);
return r && [e.label, n].map(re).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var hP = (e) => ({ site: ie(e) });
-function wme(e, t) {
- let n = pP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var aP = (e) => ({ site: ie(e) });
+function lme(e, t) {
+ let n = rP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -40030,7 +39581,7 @@ function wme(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${mP(e, n)} · ${t}`
+ title: `${iP(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -40041,8 +39592,8 @@ function wme(e, t) {
if (t === "performer" && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: mP(e, n),
- mark: hP(e)
+ title: iP(e, n),
+ mark: aP(e)
};
if (e.link_kind === "social") {
let t = ee(r);
@@ -40050,7 +39601,7 @@ function wme(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : hP(e)
+ mark: t ? { brand: t } : aP(e)
};
}
return {
@@ -40058,13 +39609,13 @@ function wme(e, t) {
url: r,
title: e.label || "",
text: oe(e, t, i),
- mark: hP(e)
+ mark: aP(e)
};
});
return [...r, ...a];
}
-var gP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Tme(e) {
+var oP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function ume(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -40121,14 +39672,14 @@ function Tme(e) {
tags: e.tags
}), t;
}
-function Eme(e) {
+function dme(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function Dme(e) {
+function fme(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 ? {
@@ -40139,7 +39690,7 @@ function Dme(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function Ome(e) {
+function pme(e) {
return ge({
id: e.id,
hasImage: e.has_image,
@@ -40149,8 +39700,8 @@ function Ome(e) {
focus: e.avatar_focus
});
}
-function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = xme(e), c = bme(e), l = e === "performer" ? Tme(n.profile) : [], u = wme(n, e), d = gP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);
+function mme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = ome(e), c = ame(e), l = e === "performer" ? ume(n.profile) : [], u = lme(n, e), d = oP(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)(() => {
@@ -40163,7 +39714,7 @@ function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, U.jsx)(Ame, {
+ children: [/* @__PURE__ */ (0, U.jsx)(hme, {
kind: e,
name: t,
helpers: o,
@@ -40171,7 +39722,7 @@ function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, U.jsx)(pme, {
+ children: /* @__PURE__ */ (0, U.jsx)(Qpe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -40184,14 +39735,14 @@ function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, U.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, U.jsx)(yme, {
+ children: [/* @__PURE__ */ (0, U.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, U.jsx)(ime, {
current: n.canonical_name,
- choices: Cme(n),
+ choices: cme(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
})]
}),
- /* @__PURE__ */ (0, U.jsx)(jme, {
+ /* @__PURE__ */ (0, U.jsx)(gme, {
kind: e,
entity: n,
actions: a
@@ -40199,9 +39750,9 @@ function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
u.length ? /* @__PURE__ */ (0, U.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, U.jsx)(Fme, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, U.jsx)(bme, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, U.jsx)(Ime, {
+ d.length || n.feed ? /* @__PURE__ */ (0, U.jsx)(xme, {
entity: n,
actions: a,
helpers: o
@@ -40210,11 +39761,11 @@ function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, U.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, U.jsx)(Nme, {
+ children: l.map((e) => /* @__PURE__ */ (0, U.jsx)(vme, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, U.jsx)(Pme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, U.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, U.jsx)(yme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, U.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -40233,7 +39784,7 @@ function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, U.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${P(e.k.slice(0, 1))}</span>${Ome(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${P(e.k.slice(0, 1))}</span>${pme(e)}` }
}), /* @__PURE__ */ (0, U.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -40241,14 +39792,14 @@ function kme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(Tw, {
+ }), i ? (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(ww, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function Ame({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function hme({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, B.useState)(() => `${n.portraitImg()}<span>${P(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -40257,8 +39808,8 @@ function Ame({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function jme({ kind: e, entity: t, actions: n }) {
- let r = pP(t), i = (e, t) => (r) => {
+function gme({ kind: e, entity: t, actions: n }) {
+ let r = rP(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, U.jsx)("a", {
href: te("agency", r.name),
@@ -40267,36 +39818,36 @@ function jme({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = Dme(t.name_groups);
+ let e = fme(t.name_groups);
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, U.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, U.jsx)(cP, { name: "film" }), /* @__PURE__ */ (0, U.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, U.jsx)(QN, { name: "film" }), /* @__PURE__ */ (0, U.jsx)("span", { children: o })]
}),
a ? /* @__PURE__ */ (0, U.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, U.jsx)(cP, { name: "briefcase" }), /* @__PURE__ */ (0, U.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, U.jsx)(QN, { name: "briefcase" }), /* @__PURE__ */ (0, U.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, U.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, U.jsx)(cP, { name: "id-card" }),
+ /* @__PURE__ */ (0, U.jsx)(QN, { name: "id-card" }),
/* @__PURE__ */ (0, U.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, U.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, U.jsx)(fP, {
+ e.rest > 0 ? /* @__PURE__ */ (0, U.jsx)(nP, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, U.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, U.jsx)(Mme, {
+ children: /* @__PURE__ */ (0, U.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, U.jsx)(_me, {
label: e.label,
names: e.names
}, t)) })
@@ -40331,25 +39882,25 @@ function jme({ kind: e, entity: t, actions: n }) {
]
});
}
-function Mme({ label: e, names: t }) {
+function _me({ label: e, names: t }) {
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [e ? /* @__PURE__ */ (0, U.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, U.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, U.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, U.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function Nme({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("dt", { children: [/* @__PURE__ */ (0, U.jsx)(cP, { name: e }), t] }), /* @__PURE__ */ (0, U.jsx)("dd", {
+function vme({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("dt", { children: [/* @__PURE__ */ (0, U.jsx)(QN, { name: e }), t] }), /* @__PURE__ */ (0, U.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function Pme({ tags: e }) {
- let { shown: t, rest: n } = Eme(e);
+function yme({ tags: e }) {
+ let { shown: t, rest: n } = dme(e);
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, U.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, U.jsx)(fP, {
+ }, e)), n ? /* @__PURE__ */ (0, U.jsx)(nP, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -40364,10 +39915,10 @@ function Pme({ tags: e }) {
})
}) : null] });
}
-function _P({ mark: e }) {
+function sP({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, U.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, U.jsx)(cP, { name: e.brand })
+ children: /* @__PURE__ */ (0, U.jsx)(QN, { name: e.brand })
});
let t = L("globe") + ("site" in e ? `<img src="${P(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, U.jsx)("span", {
@@ -40375,7 +39926,7 @@ function _P({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function Fme({ link: e }) {
+function bme({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, U.jsx)("a", {
"data-link": "icon",
@@ -40384,19 +39935,19 @@ function Fme({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, U.jsx)(_P, { mark: e.mark })
+ children: /* @__PURE__ */ (0, U.jsx)(sP, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, U.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, U.jsx)(_P, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, U.jsx)(sP, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, U.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, U.jsx)(_P, { mark: { globe: !0 } }), /* @__PURE__ */ (0, U.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, U.jsx)(sP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, U.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -40407,14 +39958,14 @@ function Fme({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, U.jsx)(_P, { mark: e.mark }), /* @__PURE__ */ (0, U.jsx)("span", {
+ children: [/* @__PURE__ */ (0, U.jsx)(sP, { mark: e.mark }), /* @__PURE__ */ (0, U.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function Ime({ entity: e, actions: t, helpers: n }) {
+function xme({ 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);
@@ -40432,47 +39983,47 @@ function Ime({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-entry-marks": "",
- children: [gP(e).map((e, t) => /* @__PURE__ */ (0, U.jsxs)("a", {
+ children: [oP(e).map((e, t) => /* @__PURE__ */ (0, U.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, U.jsx)(cP, { name: e.mark }) : /* @__PURE__ */ (0, U.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, U.jsx)(QN, { name: e.mark }) : /* @__PURE__ */ (0, U.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, U.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, U.jsx)(vme, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, U.jsx)(rme, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Sme(r)
+ tip: sme(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function Lme(e) {
- let { kind: t, name: n } = e, r = yw(ZM(t, n)), i = !!r.data?.error, { actions: a } = e;
+function Sme(e) {
+ let { kind: t, name: n } = e, r = vw(PM(t, n)), i = !!r.data?.error, { actions: a } = e;
return (0, B.useLayoutEffect)(() => {
i && a.missing();
- }, [a, i]), r.isError ? /* @__PURE__ */ (0, U.jsx)(Ow, {
+ }, [a, i]), r.isError ? /* @__PURE__ */ (0, U.jsx)(sA, {
message: K(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i ? null : /* @__PURE__ */ (0, U.jsx)(Bme, {
+ }) : !r.data || i ? null : /* @__PURE__ */ (0, U.jsx)(Tme, {
...e,
entity: r.data
});
}
-function vP(e) {
+function cP(e) {
let [t, n] = (0, B.useState)({
key: e,
n: 1
@@ -40484,14 +40035,14 @@ function vP(e) {
};
return n(r), r.n;
}
-var Rme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function zme(e, t) {
+var Cme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function wme(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function Bme(e) {
- let { kind: t, name: n, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = t === "agency" || t === "studio", d = t === "agency" ? i.related_performers || [] : t === "studio" && i.labels || [], f = Number(i.id) || 0, p = Cw($M(t, n, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || eN(m).length > 0, _ = o.media === "photos" && g ? o : HM, [v, y] = (0, B.useState)("people"), b = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [x, S] = (0, B.useState)(b);
+function Tme(e) {
+ let { kind: t, name: n, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = t === "agency" || t === "studio", d = t === "agency" ? i.related_performers || [] : t === "studio" && i.labels || [], f = Number(i.id) || 0, p = Sw(FM(t, n, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || IM(m).length > 0, _ = o.media === "photos" && g ? o : DM, [v, y] = (0, B.useState)("people"), b = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [x, S] = (0, B.useState)(b);
x !== b && (S(b), y("videos"));
- let C = u && v === "people" && d.length ? "people" : _.media, [w, T] = (0, B.useState)(0), E = XM(e), D = yw(E), O = vP(JSON.stringify([E.queryKey, w])), [k] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
+ let C = u && v === "people" && d.length ? "people" : _.media, [w, T] = (0, B.useState)(0), E = NM(e), D = vw(E), O = cP(JSON.stringify([E.queryKey, w])), [k] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
(0, B.useLayoutEffect)(() => {
c.javContext(k);
}, [c, k]);
@@ -40501,26 +40052,26 @@ function Bme(e) {
}, [e.layout, k]), j = {
jav: e.jav,
seed: e.seed
- }, M = (0, B.useCallback)((e, r) => YM(t, n, a, j, e, r), [O]), [ee, te] = (0, B.useState)({}), P = _.set, F = ee[P] || "", ne = Cw({
- ...$M(t, n, P, F),
+ }, M = (0, B.useCallback)((e, r) => MM(t, n, a, j, e, r), [O]), [ee, te] = (0, B.useState)({}), P = _.set, F = ee[P] || "", ne = Sw({
+ ...FM(t, n, P, F),
enabled: C === "photos"
- }), I = ne.data?.pages[0], re = vP(JSON.stringify(GM(t, n, P, F))), L = (0, B.useMemo)(() => {
+ }), I = ne.data?.pages[0], re = cP(JSON.stringify(kM(t, n, P, F))), L = (0, B.useMemo)(() => {
let e = ne.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: re,
- codeSets: t.id ? [] : eN(t),
+ codeSets: t.id ? [] : IM(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [ne.data, re]), ie = ne.refetch, ae = ne.fetchNextPage, oe = yw({
- ...ew(f, s.feedRowHtml),
+ }, [ne.data, re]), ie = ne.refetch, ae = ne.fetchNextPage, oe = vw({
+ ...$C(f, s.feedRowHtml),
enabled: !!f
}), se = (0, B.useRef)(e.feedRevision);
(0, B.useEffect)(() => {
- se.current !== e.feedRevision && (se.current = e.feedRevision, z.invalidateQueries({ queryKey: $C(f) }));
+ se.current !== e.feedRevision && (se.current = e.feedRevision, z.invalidateQueries({ queryKey: QC(f) }));
}, [f, e.feedRevision]);
let ce = !!D.data;
(0, B.useEffect)(() => {
@@ -40537,12 +40088,12 @@ function Bme(e) {
le.current = !1;
}, []);
let R = (0, B.useCallback)(async () => {
- await z.invalidateQueries({ queryKey: UM(t, n) }), await z.invalidateQueries({ queryKey: [
+ await z.invalidateQueries({ queryKey: OM(t, n) }), await z.invalidateQueries({ queryKey: [
"entity-items",
t,
n
] });
- }, [t, n]), ue = Sw({
+ }, [t, n]), ue = xw({
mutationFn: (e) => N("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
@@ -40552,14 +40103,14 @@ function Bme(e) {
})
}),
onSuccess: () => R()
- }), de = Sw({ mutationFn: ({ from: e, to: n }) => N("/api/entity-name", {
+ }), de = xw({ mutationFn: ({ from: e, to: n }) => N("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: t,
name: e,
canonical: n
})
- }) }), fe = Sw({
+ }) }), fe = xw({
mutationFn: (e) => N("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
@@ -40568,7 +40119,7 @@ function Bme(e) {
enabled: e
})
}),
- onSuccess: (e, r) => z.setQueryData(UM(t, n), (e) => e && {
+ onSuccess: (e, r) => z.setQueryData(OM(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -40616,10 +40167,10 @@ function Bme(e) {
let e = await N("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- le.current && await z.invalidateQueries({ queryKey: $C(f) });
+ le.current && await z.invalidateQueries({ queryKey: QC(f) });
})();
},
- feedAction: tw,
+ feedAction: ew,
avatarPicked: () => {
c.avatarChanged(), R().then(() => {
le.current && T((e) => e + 1);
@@ -40650,19 +40201,19 @@ function Bme(e) {
e === C && !_.set || (y(e === "people" ? "people" : "videos"), c.route(a, e === "photos" ? {
media: "photos",
set: 0
- } : HM));
+ } : DM));
},
setState: (e) => c.route({
...a,
state: e
- }, HM),
+ }, DM),
toggleTag: c.toggleTag,
clearFilter: c.clearFilter,
clearAll: c.clearAll,
setSort: c.setSort,
reshuffle: async () => {
if (C !== "photos") {
- let r = c.reshuffleVideos(), i = XM({
+ let r = c.reshuffleVideos(), i = NM({
kind: t,
name: n,
filters: {
@@ -40676,7 +40227,7 @@ function Bme(e) {
await z.fetchQuery(i).catch(() => null);
return;
}
- let r = Rme(), i = await z.fetchInfiniteQuery($M(t, n, P, r)).catch(() => null);
+ let r = Cme(), i = await z.fetchInfiniteQuery(FM(t, n, P, r)).catch(() => null);
!le.current || !i?.pages[0] || i.pages[0].error || te((e) => ({
...e,
[P]: r
@@ -40709,7 +40260,7 @@ function Bme(e) {
k: e.k,
label: Je(e.k),
n: e.n,
- selected: qM(a.tag, e.k)
+ selected: gpe(a.tag, e.k)
})), ve = h || d.length ? {
label: d.length ? "页面视图" : "媒体类型",
people: d.length ? {
@@ -40735,9 +40286,9 @@ function Bme(e) {
if (C === "people") Se = `${t === "studio" ? "厂牌" : "艺人"} · ${d.length.toLocaleString()}`;
else if (C === "videos") {
Ce = !D.data;
- let e = KM(a.tag).map((e) => Je(e));
+ let e = AM(a.tag).map((e) => Je(e));
Se = `视频 · ${(D.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else I && !I.error ? Se = be ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : zme(I, eN(I).length) : Ce = ne.isPending;
+ } else I && !I.error ? Se = be ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : wme(I, IM(I).length) : Ce = ne.isPending;
let we = (0, B.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -40754,7 +40305,7 @@ function Bme(e) {
d
]);
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- /* @__PURE__ */ (0, U.jsx)(kme, {
+ /* @__PURE__ */ (0, U.jsx)(mme, {
kind: t,
name: n,
entity: i,
@@ -40764,7 +40315,7 @@ function Bme(e) {
actions: pe,
helpers: me
}, w),
- (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(qie, {
+ (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(Jie, {
kind: t,
name: n,
view: C,
@@ -40780,12 +40331,12 @@ function Bme(e) {
actions: he,
helpers: ge
}), l.filter),
- (0, Dt.createPortal)(C === "videos" && D.isError ? /* @__PURE__ */ (0, U.jsx)(Ow, {
+ (0, Dt.createPortal)(C === "videos" && D.isError ? /* @__PURE__ */ (0, U.jsx)(sA, {
message: K(D.error),
onRetry: () => {
D.refetch();
}
- }) : /* @__PURE__ */ (0, U.jsx)(Ipe, {
+ }) : /* @__PURE__ */ (0, U.jsx)(TN, {
kind: t,
name: n,
view: C,
@@ -40810,30 +40361,57 @@ function Bme(e) {
] });
}
//#endregion
+//#region src/react/components/collection-summary.tsx
+function lP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+ return /* @__PURE__ */ (0, U.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
+ max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4
+ dark:bg-background-primary-default`,
+ children: [/* @__PURE__ */ (0, U.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-2",
+ children: [/* @__PURE__ */ (0, U.jsx)("span", {
+ className: "text-body-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, U.jsx)("strong", {
+ className: "text-display-4-medium tabular-nums text-text-primary",
+ children: r ? /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-skeleton": "count",
+ "aria-hidden": !0,
+ className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"
+ }) : t
+ })]
+ }), n ? /* @__PURE__ */ (0, U.jsx)("p", {
+ className: "text-body-regular text-text-secondary",
+ children: n
+ }) : null]
+ });
+}
+//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var Vme = jC("play"), Hme = jC("file-stack"), Ume = bT({
+var Eme = AC("play"), Dme = AC("file-stack"), Ome = oT({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), yP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", bP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", xP = "font-mono text-caption-1-regular leading-5 text-text-secondary", SP = () => {
+}), uP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", dP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", fP = "font-mono text-caption-1-regular leading-5 text-text-secondary", pP = () => {
z.invalidateQueries({
- queryKey: WA,
+ queryKey: PA,
exact: !0
}), z.invalidateQueries({
- queryKey: aM,
+ queryKey: Yj,
exact: !0
});
};
-function Wme(e) {
+function kme(e) {
return e.identical ? /* @__PURE__ */ (0, U.jsx)("span", {
- className: `${bP} text-(--keep)`,
+ className: `${dP} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, U.jsx)("span", {
- className: `${bP} text-text-secondary`,
+ className: `${dP} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function Gme({ file: t, openItem: n }) {
+function Ame({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -40843,7 +40421,7 @@ function Gme({ file: t, openItem: n }) {
onClick: r,
"aria-label": `预览 ${t.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, U.jsx)(Vme, {
+ children: [/* @__PURE__ */ (0, U.jsx)(Eme, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, U.jsx)("img", {
@@ -40867,55 +40445,55 @@ function Gme({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, U.jsx)("i", {
- className: `${yP} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${uP} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, U.jsx)("i", {
- className: `${yP} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${uP} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, U.jsxs)("span", {
- className: `${xP} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, U.jsx)(YT, { mark: e[t.location] || "database" }), /* @__PURE__ */ (0, U.jsx)("span", {
+ className: `${fP} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, U.jsx)(FT, { mark: e[t.location] || "database" }), /* @__PURE__ */ (0, U.jsx)("span", {
className: "whitespace-nowrap",
children: M[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, U.jsx)("span", {
- className: xP,
+ className: fP,
children: I(t.size || 0)
}),
/* @__PURE__ */ (0, U.jsx)("span", {
- className: xP,
+ className: fP,
children: ne(t.duration)
}),
/* @__PURE__ */ (0, U.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${xP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${fP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function Kme({ openItem: e, toast: t, failure: n }) {
- let i = yw({
- queryKey: WA,
- queryFn: ({ signal: e }) => KA(e)
- }), a = yw({
- queryKey: VA,
- queryFn: ({ signal: e }) => HA(e)
- }), [o, s] = (0, B.useState)(""), c = Sw({
- mutationFn: (e) => YA(e, "dispose"),
+function jme({ openItem: e, toast: t, failure: n }) {
+ let i = vw({
+ queryKey: PA,
+ queryFn: ({ signal: e }) => IA(e)
+ }), a = vw({
+ queryKey: jA,
+ queryFn: ({ signal: e }) => MA(e)
+ }), [o, s] = (0, B.useState)(""), c = xw({
+ mutationFn: (e) => zA(e, "dispose"),
onSuccess: (e, r) => {
- SP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
+ pP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await YA(r, "restore");
+ await zA(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- SP();
+ pP();
}
} });
},
@@ -40929,12 +40507,12 @@ function Kme({ openItem: e, toast: t, failure: n }) {
children: i.error ? K(i.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let u = l.groups ?? [], d = vde(a.data), f = ({ groups: e, keep: t, key: n }) => {
+ let u = l.groups ?? [], d = rde(a.data), f = ({ groups: e, keep: t, key: n }) => {
if (c.isPending) return;
- let i = Cde(e, t);
+ let i = cde(e, t);
i.length && r({
title: "移入回收站",
- body: `将把 ${i.length} 个重复文件的馆藏记录移入回收站,每组保留${qA[t] ?? qA.largest}。文件共 ${I(wde(e, i))},记录可从回收站还原。`,
+ body: `将把 ${i.length} 个重复文件的馆藏记录移入回收站,每组保留${LA[t] ?? LA.largest}。文件共 ${I(lde(e, i))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (s(n), c.mutateAsync(i))
});
@@ -40942,7 +40520,7 @@ function Kme({ openItem: e, toast: t, failure: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, U.jsx)(Fw, {
+ /* @__PURE__ */ (0, U.jsx)(lP, {
label: "重复内容",
figure: `${Number(l.total || 0).toLocaleString()} 组`,
detail: `${l.files} 个文件 · 可回收 ${I(l.reclaimable)}`
@@ -40968,7 +40546,7 @@ function Kme({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- Sde(u, d).map((e) => /* @__PURE__ */ (0, U.jsx)(yr, {
+ sde(u, d).map((e) => /* @__PURE__ */ (0, U.jsx)(yr, {
busy: o === `all:${e}`,
onPress: () => f({
groups: u,
@@ -40991,7 +40569,7 @@ function Kme({ openItem: e, toast: t, failure: n }) {
let r = [t], i = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, U.jsxs)("section", {
"aria-label": t.code,
- className: Ume,
+ className: Ome,
children: [/* @__PURE__ */ (0, U.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: [
@@ -41003,9 +40581,9 @@ function Kme({ openItem: e, toast: t, failure: n }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${t.count} 个 · 可回收 ${I(t.reclaimable)}`
}),
- Wme(t),
+ kme(t),
t.cross_drive ? /* @__PURE__ */ (0, U.jsx)("span", {
- className: `${bP} text-text-secondary`,
+ className: `${dP} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, U.jsxs)("span", {
@@ -41033,7 +40611,7 @@ function Kme({ openItem: e, toast: t, failure: n }) {
}),
children: "留最长"
}),
- JA(t.files, d).map((e) => /* @__PURE__ */ (0, U.jsx)(J, {
+ RA(t.files, d).map((e) => /* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
size: "small",
...p(i(e)),
@@ -41058,13 +40636,13 @@ function Kme({ openItem: e, toast: t, failure: n }) {
]
})
]
- }), /* @__PURE__ */ (0, U.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, U.jsx)(Gme, {
+ }), /* @__PURE__ */ (0, U.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, U.jsx)(Ame, {
file: t,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: Hme,
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: Dme,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -41073,7 +40651,7 @@ function Kme({ openItem: e, toast: t, failure: n }) {
}
//#endregion
//#region src/follow-sort.ts
-var CP = [
+var mP = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -41081,7 +40659,7 @@ var CP = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], qme = "checked", wP = {
+], Mme = "checked", hP = {
checked: "desc",
added: "desc",
name: "asc",
@@ -41089,32 +40667,32 @@ var CP = [
source: "asc",
provider: "asc",
status: "asc"
-}, Jme = (e) => CP.some(([t]) => t === e);
-function TP(e, t) {
- let n = Jme(e) ? e : qme;
+}, Nme = (e) => mP.some(([t]) => t === e);
+function gP(e, t) {
+ let n = Nme(e) ? e : Mme;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : wP[n]
+ dir: t === "asc" || t === "desc" ? t : hP[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var EP = "/api/follow", DP = "/api/follow/credentials", OP = "/api/follow/check", kP = "/api/follow/source", AP = "/api/follow/resolve", Yme = "/api/follow/suggest", jP = "/api/follow/author-alias", Xme = "/api/follow/credential", MP = "/api/follow/status", Zme = "/api/feeds", NP = "/api/feeds/source", Qme = "/api/feeds/check", $me = "/api/feeds/lookup", PP = ["follow-manage"], FP = ["follow-manage", "credentials"], ehe = ["follow-manage", "check"], the = ["follow-manage", "resolve"], IP = ["follow-manage", "feeds"], nhe = (e) => [
+var _P = "/api/follow", vP = "/api/follow/credentials", yP = "/api/follow/check", bP = "/api/follow/source", xP = "/api/follow/resolve", Pme = "/api/follow/suggest", SP = "/api/follow/author-alias", Fme = "/api/follow/credential", CP = "/api/follow/status", Ime = "/api/feeds", wP = "/api/feeds/source", Lme = "/api/feeds/check", Rme = "/api/feeds/lookup", TP = ["follow-manage"], EP = ["follow-manage", "credentials"], zme = ["follow-manage", "check"], Bme = ["follow-manage", "resolve"], DP = ["follow-manage", "feeds"], Vme = (e) => [
"follow-manage",
"suggest",
e
-], LP = [["default", "默认视图"], ["table", "表格视图"]], RP = [
+], OP = [["default", "默认视图"], ["table", "表格视图"]], kP = [
10,
20,
50,
100
-], rhe = Object.fromEntries(CP), zP = {
+], Hme = Object.fromEntries(mP), AP = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, ihe = (e) => LP.some(([t]) => t === e), ahe = (e) => RP.includes(Number(e)) ? Number(e) : 20, ohe = {
+}, Ume = (e) => OP.some(([t]) => t === e), Wme = (e) => kP.includes(Number(e)) ? Number(e) : 20, Gme = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -41122,25 +40700,25 @@ var EP = "/api/follow", DP = "/api/follow/credentials", OP = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, she = (e, t) => `按${rhe[e]}${ohe[e][t === "asc" ? 0 : 1]}排序`;
-function BP(e) {
+}, Kme = (e, t) => `按${Hme[e]}${Gme[e][t === "asc" ? 0 : 1]}排序`;
+function jP(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function che(e) {
+function qme(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var VP = (e) => e.last_status === "error" || e.last_status === "unauthorized", HP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), UP = {
- source: HP,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || HP(e, t),
- status: (e, t) => BP(e) - BP(t) || HP(e, t)
-}, WP = (e) => Date.parse(e || "") || 0, GP = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function KP(e, t = []) {
+var MP = (e) => e.last_status === "error" || e.last_status === "unauthorized", NP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), PP = {
+ source: NP,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || NP(e, t),
+ status: (e, t) => jP(e) - jP(t) || NP(e, t)
+}, FP = (e) => Date.parse(e || "") || 0, IP = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function LP(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || GP(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || IP(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 GP(i.canonical_name);
+ if (i) return IP(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);
@@ -41148,18 +40726,18 @@ function KP(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 qP(e) {
+function RP(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function JP(e) {
+function zP(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 YP(e) {
+function BP(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -41167,32 +40745,32 @@ function YP(e) {
}
return t.map((e) => n.get(e));
}
-function lhe(e, t, n, r = []) {
- let i = YP(e), a = n === wP[t] ? 1 : -1, o = (e) => KP(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = UP[t];
+function Jme(e, t, n, r = []) {
+ let i = BP(e), a = n === hP[t] ? 1 : -1, o = (e) => LP(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = PP[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) => WP(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => WP(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => FP(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => FP(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 uhe(e, t, n, r = []) {
+function Yme(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = KP(e, r);
+ let t = LP(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = UP[t];
+ }), a = PP[t];
if (a) {
- let e = n === wP[t] ? 1 : -1;
+ let e = n === hP[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function XP(e, t, n) {
- let r = aj(e, t), i = oj(n, r), a = (i - 1) * t;
+function VP(e, t, n) {
+ let r = YA(e, t), i = XA(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -41201,91 +40779,91 @@ function XP(e, t, n) {
end: Math.min(a + t, e)
};
}
-function dhe(e, t) {
+function Xme(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function ZP(e, t) {
+function HP(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 QP(e, t, n) {
+function UP(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var $P = (e) => HC(`${EP}?summary=1`, e), eF = (e) => HC(DP, e), fhe = (e) => HC(OP, e), phe = (e) => HC(AP, e), mhe = (e, t) => HC(`${Yme}?q=${encodeURIComponent(e)}`, t), tF = (e) => q(OP, {
+var WP = (e) => VC(`${_P}?summary=1`, e), GP = (e) => VC(vP, e), Zme = (e) => VC(yP, e), Qme = (e) => VC(xP, e), $me = (e, t) => VC(`${Pme}?q=${encodeURIComponent(e)}`, t), KP = (e) => q(yP, {
...e?.length ? { sources: e } : {},
background: !0
-}), hhe = (e) => q(AP, {
+}), ehe = (e) => q(xP, {
lines: e,
background: !0
-}), nF = (e, t) => q(kP, {
+}), qP = (e, t) => q(bP, {
action: "enabled",
id: e,
enabled: t
-}), rF = (e) => q(kP, {
+}), JP = (e) => q(bP, {
action: "remove",
id: e
-}), ghe = (e) => q(kP, {
+}), the = (e) => q(bP, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), iF = (e, t) => q(jP, {
+}), YP = (e, t) => q(SP, {
action: "add",
canonical: e,
alias: t
-}), _he = (e) => q(jP, {
+}), nhe = (e) => q(SP, {
action: "remove",
alias: e
-}), vhe = (e, t) => q(Xme, {
+}), rhe = (e, t) => q(Fme, {
provider: e,
values: t
-}), yhe = (e, t) => q(MP, {
+}), ihe = (e, t) => q(CP, {
item: e,
to: t
-}), bhe = () => HC(`${EP}?status=new&limit=1000`);
-async function aF(e) {
- let t = await HC(Zme, e);
+}), ahe = () => VC(`${_P}?status=new&limit=1000`);
+async function XP(e) {
+ let t = await VC(Ime, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var oF = (e, t, n) => q(NP, {
+var ZP = (e, t, n) => q(wP, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), sF = (e, t) => q(NP, {
+}, "POST", n), QP = (e, t) => q(wP, {
action: "remove",
id: e
-}, "POST", t), cF = (e, t) => q(Qme, t?.length ? { sources: t } : { all: !0 }, "POST", e), xhe = (e, t) => HC(`${$me}?q=${encodeURIComponent(e)}`, t), She = (e, t, n) => q(NP, {
+}, "POST", t), $P = (e, t) => q(Lme, t?.length ? { sources: t } : { all: !0 }, "POST", e), ohe = (e, t) => VC(`${Rme}?q=${encodeURIComponent(e)}`, t), she = (e, t, n) => q(wP, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Che(e, t = "") {
+async function che(e, t = "") {
await Promise.all([
z.fetchQuery({
- queryKey: PP,
- queryFn: () => $P(e)
+ queryKey: TP,
+ queryFn: () => WP(e)
}),
z.fetchQuery({
- queryKey: FP,
- queryFn: () => eF(e)
+ queryKey: EP,
+ queryFn: () => GP(e)
}),
t === "feeds" ? z.fetchQuery({
- queryKey: IP,
- queryFn: () => aF(e)
+ queryKey: DP,
+ queryFn: () => XP(e)
}) : null
]);
}
-function lF(e, t) {
- z.setQueryData(PP, (n) => n && {
+function eF(e, t) {
+ z.setQueryData(TP, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -41293,24 +40871,24 @@ function lF(e, t) {
} : n)
});
}
-function uF(e) {
+function tF(e) {
let t = new Set(e);
- z.setQueryData(PP, (e) => e && {
+ z.setQueryData(TP, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var dF = () => z.invalidateQueries({
- queryKey: PP,
+var nF = () => z.invalidateQueries({
+ queryKey: TP,
exact: !0
});
-function whe(e) {
+function lhe(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 The = (e) => (e?.results || []).filter((e) => !e.ok), Ehe = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", fF = (e) => e.last_checked_at ? sj(e.last_checked_at) : "未检查", Dhe = /* @__PURE__ */ new Set([
+var uhe = (e) => (e?.results || []).filter((e) => !e.ok), dhe = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", rF = (e) => e.last_checked_at ? ZA(e.last_checked_at) : "未检查", fhe = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -41323,50 +40901,50 @@ var The = (e) => (e?.results || []).filter((e) => !e.ok), Ehe = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), pF = (e) => Dhe.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Ohe = {
+]), iF = (e) => fhe.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", phe = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, mF = (e) => !!e.present && !e.missing.length, khe = [
+}, aF = (e) => !!e.present && !e.missing.length, mhe = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], Ahe = [
+], hhe = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], hF = {
+], oF = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function gF(e, t) {
+function sF(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 _F(e, t) {
+function cF(e, t) {
return {
queryKey: [
"follow-feed",
- gF(e, 0),
+ sF(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => HC(gF(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => VC(sF(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: ww.keepPreviousData
+ placeholderData: Cw.keepPreviousData
};
}
-var vF = ["follow-feed", "credentials"], yF = (e) => HC(DP, e).catch(() => ({ providers: [] }));
-async function jhe(e, t) {
- let n = _F(e.view, e.revision);
+var lF = ["follow-feed", "credentials"], uF = (e) => VC(vP, e).catch(() => ({ providers: [] }));
+async function ghe(e, t) {
+ let n = cF(e.view, e.revision);
z.removeQueries({
queryKey: n.queryKey,
exact: !0
}), z.removeQueries({
- queryKey: vF,
+ queryKey: lF,
exact: !0
}), await Promise.all([z.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -41377,11 +40955,11 @@ async function jhe(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), z.fetchQuery({
- queryKey: vF,
- queryFn: () => yF(t)
+ queryKey: lF,
+ queryFn: () => uF(t)
})]);
}
-function bF(e) {
+function dF(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -41390,10 +40968,10 @@ function bF(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function xF(e, t, n) {
+function fF(e, t, n) {
return [...e].sort((e, r) => le(n, t(e)) - le(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function SF(e) {
+function pF(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -41401,14 +40979,14 @@ function SF(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function Mhe(e) {
+function _he(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 = SF(t).find((t) => t.id === e);
+ let n = pF(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -41419,7 +40997,7 @@ function Mhe(e) {
}
return null;
}
-function Nhe(e) {
+function vhe(e) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -41429,7 +41007,7 @@ function Nhe(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return SF(t).some((t) => t.id === e.id) ? {
+ return pF(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -41439,39 +41017,39 @@ function Nhe(e) {
}))
});
}
-function Phe(e, t) {
+function yhe(e, t) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && AF(n, null, e, t));
+ }, (n) => n && xF(n, null, e, t));
}
-function CF(e) {
- return SF(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 pF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function wF(e) {
+function hF(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 TF(e) {
+function gF(e) {
let t = /* @__PURE__ */ new Set();
- return SF(e).forEach((e) => wF(e).forEach((e) => t.add(e))), t;
+ return pF(e).forEach((e) => hF(e).forEach((e) => t.add(e))), t;
}
-function EF(e, t) {
+function _F(e, t) {
let n = t === "images" ? "image" : "video";
- return CF(e).find((e) => wF(e).has(n)) || e.primary;
+ return mF(e).find((e) => hF(e).has(n)) || e.primary;
}
-function DF(e) {
- return CF(e).filter((e) => e.playable && e.media_kind === "video");
+function vF(e) {
+ return mF(e).filter((e) => e.playable && e.media_kind === "video");
}
-var OF = {
+var yF = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function Fhe({ 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} ${OF[s] || OF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function bhe({ 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} ${yF[s] || yF.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,
@@ -41480,14 +41058,14 @@ function Fhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function Ihe(e) {
+function xhe(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 kF(e, t, n) {
- return e === t ? hF[e] ? {
+function bF(e, t, n) {
+ return e === t ? oF[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -41495,13 +41073,13 @@ function kF(e, t, n) {
dir: "desc"
};
}
-function Lhe(e, t, n, r) {
- let i = kF(e, n, r);
+function She(e, t, n, r) {
+ let i = bF(e, n, r);
if (!i) return "";
- let a = hF[i.sort];
+ let a = oF[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function AF(e, t, n, r) {
+function xF(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -41531,7 +41109,7 @@ function AF(e, t, n, r) {
})
};
}
-function Rhe(e, t) {
+function Che(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -41551,7 +41129,7 @@ function Rhe(e, t) {
label: e
})), n;
}
-function zhe(e, t) {
+function whe(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -41566,7 +41144,7 @@ function zhe(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function Bhe(e, t) {
+function The(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -41575,7 +41153,7 @@ function Bhe(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var Vhe = [
+var Ehe = [
"",
"follow",
"jav",
@@ -41584,7 +41162,7 @@ var Vhe = [
"studios",
"flagged",
"manage"
-], Hhe = [
+], Dhe = [
"playlists",
"immerse",
"stats",
@@ -41594,77 +41172,77 @@ var Vhe = [
"follow-manage",
"quality"
];
-[...Vhe, ...Hhe];
-function Uhe(e) {
+[...Ehe, ...Dhe];
+function Ohe(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 jF = (e) => typeof e == "string" ? e : "", MF = (e) => e.aliases;
-function NF(e, t = "") {
- let n = pF(e);
+var SF = (e) => typeof e == "string" ? e : "", CF = (e) => e.aliases;
+function wF(e, t = "") {
+ let n = iF(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${P(t)}"${t ? ` title="${P(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var PF = (e, t) => KP(e, MF(t));
-function FF(e, t) {
- let { src: n, fallback: r } = JP(e), i = qP(t);
+var TF = (e, t) => LP(e, CF(t));
+function EF(e, t) {
+ let { src: n, fallback: r } = zP(e), i = RP(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${P(i)}</span>`;
let a = r ? ` data-fallbacks="${P(r)}"` : "";
return `<img class="favatar" src="${P(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${P(i)}" data-drop-class="favatar none">`;
}
-function IF(e, t, n) {
- let r = MF(n), i = e.credit, a = i?.poster;
+function DF(e, t, n) {
+ let r = CF(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = KP(t, r);
+ let n = LP(t, r);
return {
- author: n || jF(e.author) || jF(e.source_label) || "创作者未取得",
- avatar: FF(t, n),
+ author: n || SF(e.author) || SF(e.source_label) || "创作者未取得",
+ avatar: EF(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 && KP(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 && LP(c, r) || a;
return {
author: l,
- avatar: FF(c, l),
+ avatar: EF(c, l),
credited: i.credited || ""
};
}
-function LF(e, t = e.primary) {
+function OF(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 = jF(e.primary.version);
+ let i = SF(e.primary.version);
i && n.push(r("version", P(i)));
- let a = jF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = SF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function RF(e, t = e.primary) {
+function kF(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]) => NF(e, t) || `<span>${P(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => wF(e, t) || `<span>${P(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${P([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function zF(e, t) {
- let n = jF(e.media_error);
+function AF(e, t) {
+ let n = SF(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var BF = (e) => e.published_at ? sj(e.published_at) : "时间未取得", VF = /* @__PURE__ */ new Set(), HF = [], UF = null;
-function WF() {
- if (UF = null, !HF.length) return;
- let e = HF.splice(0, 200);
+var jF = (e) => e.published_at ? ZA(e.published_at) : "时间未取得", MF = /* @__PURE__ */ new Set(), NF = [], PF = null;
+function FF() {
+ if (PF = null, !NF.length) return;
+ let e = NF.splice(0, 200);
N("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), HF.length && (UF = setTimeout(WF, 800));
+ }).catch(() => {}), NF.length && (PF = setTimeout(FF, 800));
}
-function Whe(e, t, n, r) {
+function khe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- VF.has(i) || (VF.add(i), HF.push(t === null ? {
+ MF.has(i) || (MF.add(i), NF.push(t === null ? {
item: e,
width: n,
height: r
@@ -41673,15 +41251,15 @@ function Whe(e, t, n, r) {
width: n,
height: r,
media: t
- }), UF ||= setTimeout(WF, 800));
+ }), PF ||= setTimeout(FF, 800));
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var Ghe = (e) => Number(e) > 0;
-function Khe(e) {
+var Ahe = (e) => Number(e) > 0;
+function jhe(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function qhe({ src: e, width: t, height: n, onLearn: r }) {
+function Mhe({ src: e, width: t, height: n, onLearn: r }) {
let [i, a] = (0, B.useState)(!1);
return i ? null : /* @__PURE__ */ (0, U.jsx)("img", {
src: e,
@@ -41697,8 +41275,8 @@ function qhe({ src: e, width: t, height: n, onLearn: r }) {
} : void 0
});
}
-function Jhe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = EF(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 = f && f.thumb_url === p ? f : null, h = !m || p === u.thumb_url, g = d ? [m, h ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, _ = d && !g && p ? (e, t) => Whe(u.id, m ? m.index : null, e, t) : void 0, v = r === "videos" ? DF(t) : [], y = (u.media_items || []).length > 1 ? u.id : v[0]?.id || u.id, b = Fhe({
+function Nhe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = _F(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 = f && f.thumb_url === p ? f : null, h = !m || p === u.thumb_url, g = d ? [m, h ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, _ = d && !g && p ? (e, t) => khe(u.id, m ? m.index : null, e, t) : void 0, v = r === "videos" ? vF(t) : [], y = (u.media_items || []).length > 1 ? u.id : v[0]?.id || u.id, b = bhe({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -41706,7 +41284,7 @@ function Jhe(e) {
limit: 9
}), x = (0, B.useRef)(b.faces);
x.current = b.faces;
- let S = PA({
+ let S = wA({
load: async () => x.current,
canFlip: () => x.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -41714,7 +41292,7 @@ function Jhe(e) {
C.current = S.onPointerLeave;
let w = (0, B.useCallback)((e) => {
e && (e._stopHover = () => C.current());
- }, []), T = IF(u, n, i), E = BF(u), D = (u.tags || []).slice(0, 3), O = zF(u, i), k = RF(t, u), A = u.status === "saved", j = (e) => {
+ }, []), T = DF(u, n, i), E = jF(u), D = (u.tags || []).slice(0, 3), O = AF(u, i), k = kF(t, u), A = u.status === "saved", j = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (o || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), l.toggleSelection(u.id, e.shiftKey);
@@ -41748,14 +41326,14 @@ function Jhe(e) {
"data-follow-open": "",
"aria-label": `打开 ${u.title} 详情`
}),
- p ? /* @__PURE__ */ (0, U.jsx)(qhe, {
+ p ? /* @__PURE__ */ (0, U.jsx)(Mhe, {
src: p,
width: g?.width,
height: g?.height,
onLearn: _
}, p) : /* @__PURE__ */ (0, U.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: NF(u.resource_provider || u.provider) }
+ dangerouslySetInnerHTML: { __html: wF(u.resource_provider || u.provider) }
}),
b.faces.length > 1 ? /* @__PURE__ */ (0, U.jsx)("div", {
"data-mix-faces": "",
@@ -41774,7 +41352,7 @@ function Jhe(e) {
"data-media-badge": "",
title: u.provider_label,
"aria-label": `来源:${u.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: NF(u.provider) }
+ dangerouslySetInnerHTML: { __html: wF(u.provider) }
}),
/* @__PURE__ */ (0, U.jsx)("span", {
"data-media-check": "",
@@ -41783,7 +41361,7 @@ function Jhe(e) {
},
dangerouslySetInnerHTML: { __html: L("check") }
}),
- Ghe(u.duration) ? /* @__PURE__ */ (0, U.jsx)("span", {
+ Ahe(u.duration) ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-media-duration": "",
children: ne(u.duration)
}) : null,
@@ -41865,7 +41443,7 @@ function Jhe(e) {
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: LF(t, u) + P(u.title) }
+ dangerouslySetInnerHTML: { __html: OF(t, u) + P(u.title) }
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
"data-follow-byline": "",
@@ -41876,7 +41454,7 @@ function Jhe(e) {
}), /* @__PURE__ */ (0, U.jsx)("time", {
dateTime: u.published_at || "",
title: E,
- children: Khe(E)
+ children: jhe(E)
})]
}),
T.credited ? /* @__PURE__ */ (0, U.jsx)("div", {
@@ -41912,10 +41490,10 @@ function Jhe(e) {
]
});
}
-var Yhe = (0, B.memo)(Jhe), GF = () => /* @__PURE__ */ (0, U.jsx)("span", {
+var Phe = (0, B.memo)(Nhe), IF = () => /* @__PURE__ */ (0, U.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Xhe = jC("settings"), Zhe = jC("chevron-down"), Qhe = jC("history"), $he = [[
+}), Fhe = AC("settings"), Ihe = AC("chevron-down"), Lhe = AC("history"), Rhe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -41924,19 +41502,19 @@ var Yhe = (0, B.memo)(Jhe), GF = () => /* @__PURE__ */ (0, U.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function ege(e, t, n) {
+function zhe(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 = xF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = xF(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = fF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = fF(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 = xF([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = fF([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -41944,7 +41522,7 @@ function ege(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => TF(e).forEach((e) => {
+ r.forEach((e) => gF(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -41959,7 +41537,7 @@ function ege(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => TF(e).has(_)),
+ visible: r.filter((e) => gF(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]])),
@@ -41972,15 +41550,15 @@ function ege(e, t, n) {
n
]);
}
-function tge(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = _F(t, r), o = Cw(a), s = yw({
- queryKey: vF,
- queryFn: ({ signal: e }) => yF(e)
- }), c = (0, B.useMemo)(() => bF(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 Bhe(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = cF(t, r), o = Sw(a), s = vw({
+ queryKey: lF,
+ queryFn: ({ signal: e }) => uF(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)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = ege(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => Uhe(d.visible.flatMap(SF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = zhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => Ohe(d.visible.flatMap(pF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
(0, B.useEffect)(() => {
p && i.loaded(m);
}, [
@@ -41988,20 +41566,20 @@ function tge(e) {
m,
i
]);
- let h = nge(e, !!c);
- if (!c) return o.isError ? /* @__PURE__ */ (0, U.jsx)(Ow, {
+ let h = Vhe(e, !!c);
+ if (!c) return o.isError ? /* @__PURE__ */ (0, U.jsx)(sA, {
message: ce(o.error),
onRetry: () => void o.refetch()
}) : null;
let g = (e) => i.route({
...t,
...e
- }), _ = Rhe({
+ }), _ = Che({
...t,
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, PF(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, TF(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);
@@ -42021,7 +41599,7 @@ function tge(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
- leadingIcon: Xhe,
+ leadingIcon: Fhe,
"data-follow-manage": "",
onClick: i.openManage,
children: "管理关注"
@@ -42038,20 +41616,20 @@ function tge(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, U.jsx)(rge, {
+ /* @__PURE__ */ (0, U.jsx)(Hhe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, U.jsx)(ige, {
+ /* @__PURE__ */ (0, U.jsx)(Uhe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, U.jsx)(age, {
+ /* @__PURE__ */ (0, U.jsx)(Whe, {
facets: d,
view: t,
total: v,
@@ -42059,9 +41637,9 @@ function tge(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, U.jsx)(oge, {
+ /* @__PURE__ */ (0, U.jsx)(Ghe, {
conditions: _,
- onDrop: (e) => i.route(zhe(t, e)),
+ onDrop: (e) => i.route(whe(t, e)),
onClear: () => g({
author: "",
provider: "",
@@ -42069,11 +41647,11 @@ function tge(e) {
tags: []
})
}),
- d.broken.length ? /* @__PURE__ */ (0, U.jsx)(sge, {
+ d.broken.length ? /* @__PURE__ */ (0, U.jsx)(Khe, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, U.jsx)(cge, {
+ /* @__PURE__ */ (0, U.jsx)(qhe, {
pending: f,
facets: d,
data: c,
@@ -42084,19 +41662,19 @@ function tge(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, U.jsxs)(zA, {
+ children: /* @__PURE__ */ (0, U.jsxs)(kA, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, U.jsx)(Zhe, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, U.jsx)(Ihe, { className: "size-3.5" }), "加载更多"]
}, o.data?.pages.length)
}) : null, y ? /* @__PURE__ */ (0, U.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : Qhe,
+ leadingIcon: h.olderBusy ? void 0 : Lhe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -42106,14 +41684,14 @@ function tge(e) {
}), /* @__PURE__ */ (0, U.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, U.jsx)("span", {
"data-follow-backfill": "",
- children: Ihe(d.sources)
+ children: xhe(d.sources)
})]
}) : null]
}) : null
]
})] });
}
-function nge(e, t) {
+function Vhe(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
@@ -42128,7 +41706,7 @@ function nge(e, t) {
return m.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => HC(OP, e),
+ read: (e) => VC(yP, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -42153,7 +41731,7 @@ function nge(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await q(OP, e ? {
+ let n = await q(yP, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -42171,7 +41749,7 @@ function nge(e, t) {
olderBusy: c === "older" || u && o
};
}
-function rge({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function Hhe({ 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);
@@ -42188,16 +41766,16 @@ function rge({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
onClick: () => i(r),
children: [/* @__PURE__ */ (0, U.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: FF(a, PF(a, n)) }
+ dangerouslySetInnerHTML: { __html: EF(a, TF(a, n)) }
}), /* @__PURE__ */ (0, U.jsx)("span", {
"data-follow-name": "",
- children: PF(a, n)
+ children: TF(a, n)
})]
}, r);
})
}) : null;
}
-function ige({ rows: e, pressed: t, props: n, onPick: r }) {
+function Uhe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -42218,7 +41796,7 @@ function ige({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function age({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+function Whe({ 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 = xr(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = xr(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);
@@ -42276,7 +41854,7 @@ function age({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: L(i) }
}, e);
})
- }), /* @__PURE__ */ (0, U.jsx)(GF, {})] }) : null, /* @__PURE__ */ (0, U.jsxs)("div", {
+ }), /* @__PURE__ */ (0, U.jsx)(IF, {})] }) : null, /* @__PURE__ */ (0, U.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
@@ -42285,7 +41863,7 @@ function age({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [khe.map(([e, n]) => /* @__PURE__ */ (0, U.jsx)("button", {
+ children: [mhe.map(([e, n]) => /* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -42296,7 +41874,7 @@ function age({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, U.jsx)(GF, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, U.jsx)(IF, {}) : null]
}), /* @__PURE__ */ (0, U.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -42309,13 +41887,13 @@ function age({ 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: NF(t) }
+ dangerouslySetInnerHTML: { __html: wF(t) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, U.jsx)(GF, {}) : null,
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, U.jsx)(IF, {}) : null,
e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, U.jsxs)(_r, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${Bhe(e.groups, n)}`,
+ "data-tag-cat": `r34-${The(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: [Je(n), r ? /* @__PURE__ */ (0, U.jsx)("span", {
@@ -42333,11 +41911,11 @@ function age({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, U.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, U.jsx)(FC, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(PC, {
+ /* @__PURE__ */ (0, U.jsx)(PC, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(NC, {
label: "图片布局",
value: i.photoLayout,
- options: $he,
+ options: Rhe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
@@ -42354,17 +41932,17 @@ function age({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: L("captions-off") }
})]
})] }) : null,
- Ahe.map(([e, n]) => {
- let r = t.sort === e, i = jC(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ hhe.map(([e, n]) => {
+ let r = t.sort === e, i = AC(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
"data-entity-sort": e,
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": Lhe(e, n, t.sort, t.dir) || void 0,
+ "aria-label": She(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = kF(e, t.sort, t.dir);
+ let n = bF(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, U.jsx)(i, { className: "size-3.5" }) : null]
@@ -42374,7 +41952,7 @@ function age({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function oge({ conditions: e, onDrop: t, onClear: n }) {
+function Ghe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -42399,7 +41977,7 @@ function oge({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function sge({ count: e, onManage: t }) {
+function Khe({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -42408,12 +41986,12 @@ function sge({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${L("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function cge({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = Dw(e, () => o.listSkeletonHtml(a.media));
+function qhe({ pending: e, facets: t, data: n, context: r, props: i }) {
+ let { view: a, helpers: o } = i, s = a.media === "images", c = oA(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, U.jsx)(lge, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, U.jsx)(Jhe, {
facets: t,
data: n,
context: r,
@@ -42422,38 +42000,38 @@ function cge({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function lge({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, actions: o } = r, s = fge(r), c = i ? {
+function Jhe({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, actions: o } = r, s = Zhe(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, U.jsx)(Yhe, {
+ return /* @__PURE__ */ (0, U.jsx)(Phe, {
group: t,
authorSources: c,
media: a.media,
context: n,
- selected: r.selected.has(KF(t, a)),
+ selected: r.selected.has(LF(t, a)),
selectMode: r.selectMode,
- busy: s.busy.get(KF(t, a)) || "",
- failure: s.failures.get(KF(t, a)) || "",
+ busy: s.busy.get(LF(t, a)) || "",
+ failure: s.failures.get(LF(t, a)) || "",
actions: o,
onStatus: s.status,
onSave: s.save
}, `${l}:${a.media}`);
- }) : /* @__PURE__ */ (0, U.jsx)(uge, { data: t }), /* @__PURE__ */ (0, U.jsx)("div", {
+ }) : /* @__PURE__ */ (0, U.jsx)(Yhe, { data: t }), /* @__PURE__ */ (0, U.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...c,
children: l
});
}
-function KF(e, t) {
- return EF(e, t.media).id;
+function LF(e, t) {
+ return _F(e, t.media).id;
}
-function uge({ data: e }) {
+function Yhe({ data: e }) {
let t = (e.groups || []).length ? o("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? o("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : o("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-follow-empty": "",
@@ -42461,36 +42039,36 @@ function uge({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var dge = {
+var Xhe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function fge(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 = _F(t, n).queryKey, l = (e, t, n) => n((n) => {
+function Zhe(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 = cF(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 && AF(r, t, e, n));
+ z.setQueryData(c, (r) => r && xF(r, t, e, n));
}, d = () => void z.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = bF(z.getQueryData(c));
+ let t = dF(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 = Sw({
- mutationFn: ({ id: e, to: t }) => q(MP, {
+ }, p = xw({
+ mutationFn: ({ id: e, to: t }) => q(CP, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(dge[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await q(MP, {
+ u(t, n), d(), r.toast(Xhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await q(CP, {
item: t,
to: i
}), u(t, i), d();
@@ -42500,7 +42078,7 @@ function fge(e) {
l(t, ce(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), m = Sw({
+ }), m = xw({
mutationFn: (e) => q("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
@@ -42535,8 +42113,8 @@ function fge(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function qF({ provider: e, label: t }) {
- let n = pF(e), [r, i] = (0, B.useState)(!1);
+function RF({ provider: e, label: t }) {
+ let n = iF(e), [r, i] = (0, B.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, U.jsx)(U.Fragment, { children: t }) : null : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("img", {
src: n,
alt: "",
@@ -42547,8 +42125,8 @@ function qF({ provider: e, label: t }) {
className: "size-3.5 shrink-0 rounded-sm object-contain"
}), t ? /* @__PURE__ */ (0, U.jsx)(qc, { children: t }) : null] });
}
-function JF({ group: e, name: t }) {
- let { src: n, fallback: r } = JP(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];
+function zF({ group: e, name: t }) {
+ let { src: n, fallback: r } = zP(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, U.jsx)("img", {
src: o,
alt: "",
@@ -42561,18 +42139,18 @@ function JF({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, U.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: qP(t)
+ children: RP(t)
});
}
-function YF({ source: e }) {
- let t = VP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, U.jsx)(Kk, {
+function BF({ source: e }) {
+ let t = MP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: t,
- children: che(e)
+ children: qme(e)
});
}
-function XF({ source: e }) {
+function VF({ source: e }) {
return /* @__PURE__ */ (0, U.jsx)("a", {
href: e.url,
target: "_blank",
@@ -42584,8 +42162,8 @@ function XF({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var ZF = ur(vT, yT, "text-body-2-medium"), pge = "粘贴来源链接,或输入创作者名、id…", mge = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", hge = "识别中…", gge = "站内没有查到来源", QF = (e, t) => `${e}:${t.url}`;
-function _ge({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var HF = ur(iT, aT, "text-body-2-medium"), Qhe = "粘贴来源链接,或输入创作者名、id…", $he = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", ege = "识别中…", tge = "站内没有查到来源", UF = (e, t) => `${e}:${t.url}`;
+function nge({ 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, U.jsxs)(tm, {
@@ -42600,17 +42178,17 @@ function _ge({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: ur(_T, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: ur(rT, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, U.jsx)(jT, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, U.jsx)(_T, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, U.jsxs)(B.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, U.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? ur(ZF, "bg-background-secondary-default") : ZF,
+ className: t === r ? ur(HF, "bg-background-secondary-default") : HF,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -42630,7 +42208,7 @@ function _ge({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function vge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function rge({ 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);
@@ -42638,7 +42216,7 @@ function vge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(J, {
ref: i,
variant: "secondary",
- leadingIcon: foe,
+ leadingIcon: Xae,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
@@ -42650,7 +42228,7 @@ function vge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: _T,
+ className: rT,
children: /* @__PURE__ */ (0, U.jsxs)(ph, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
@@ -42667,16 +42245,16 @@ function vge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, U.jsx)(HT, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, U.jsx)(OT, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)(bM, {
+ children: [/* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, U.jsx)(qF, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, U.jsx)(RF, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, U.jsx)(J, {
variant: "ghost",
@@ -42692,7 +42270,7 @@ function vge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function yge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function ige({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: e.line,
@@ -42700,7 +42278,7 @@ function yge({ 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, U.jsxs)("div", {
- className: bT({
+ className: oT({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -42711,15 +42289,15 @@ function yge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = QF(t, e);
- return /* @__PURE__ */ (0, U.jsx)(bM, {
+ let n = UF(t, e);
+ return /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, U.jsx)(qF, { provider: e.provider }),
+ /* @__PURE__ */ (0, U.jsx)(RF, { provider: e.provider }),
/* @__PURE__ */ (0, U.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -42735,22 +42313,22 @@ function yge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, U.jsx)(HT, { children: gge }),
+ }) : /* @__PURE__ */ (0, U.jsx)(OT, { children: tge }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, U.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, U.jsx)(GT, {
+ }), /* @__PURE__ */ (0, U.jsx)(jT, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, U.jsx)(HT, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, U.jsx)(OT, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function age({ 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();
@@ -42761,19 +42339,19 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = yw({
- queryKey: nhe(l),
- queryFn: ({ signal: e }) => mhe(l, e),
+ let D = vw({
+ queryKey: Vme(l),
+ queryFn: ({ signal: e }) => $me(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 } = gM({
- queryKey: the,
- queryFn: ({ signal: e }) => phe(e),
- start: (e) => hhe([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = oM({
+ queryKey: Bme,
+ queryFn: ({ signal: e }) => Qme(e),
+ start: (e) => ehe([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(K(e)),
onFinish: (e) => {
@@ -42807,14 +42385,14 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, I = j?.results || [], re = I.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: QF(t, e)
- })).filter((e) => !x.has(e.key))), L = Sw({
+ key: UF(t, e)
+ })).filter((e) => !x.has(e.key))), L = xw({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await ghe(r.candidate);
+ let e = await the(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${K(e)}`);
@@ -42822,7 +42400,7 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await tF(n);
+ await KP(n);
} catch (e) {
t.push(K(e));
}
@@ -42832,7 +42410,7 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (dF(), e.failures.length) {
+ if (nF(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -42841,7 +42419,7 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => w(K(e))
}), ie = e.suggestions || [], ae = !s.includes("/");
return /* @__PURE__ */ (0, U.jsxs)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42861,15 +42439,15 @@ function bge({ 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, U.jsx)(Qk, {
+ children: [/* @__PURE__ */ (0, U.jsx)(Rk, {
"aria-label": "来源链接、名字或 id",
- placeholder: pge,
+ placeholder: Qhe,
value: a,
- leadingIcon: lT,
+ leadingIcon: Yw,
isDisabled: n,
onChange: o,
onKeyDown: ne
- }), P ? /* @__PURE__ */ (0, U.jsx)(_ge, {
+ }), P ? /* @__PURE__ */ (0, U.jsx)(nge, {
field: _,
menu: v,
options: O,
@@ -42879,7 +42457,7 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: F
}) : null]
}),
- /* @__PURE__ */ (0, U.jsx)(vge, {
+ /* @__PURE__ */ (0, U.jsx)(rge, {
credentials: t,
hidden: y,
onHidden: b,
@@ -42897,9 +42475,9 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, U.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, U.jsx)(PT, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : ae ? mge : hge),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : ae ? $he : ege),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, U.jsx)(Y, {
@@ -42911,8 +42489,8 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
I.length ? /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, U.jsx)(WT, { children: "查找结果" }),
- I.map((e, t) => /* @__PURE__ */ (0, U.jsx)(yge, {
+ /* @__PURE__ */ (0, U.jsx)(AT, { children: "查找结果" }),
+ I.map((e, t) => /* @__PURE__ */ (0, U.jsx)(ige, {
row: e,
at: t,
hidden: y,
@@ -42967,16 +42545,16 @@ function bge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var xge = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, $F = (e) => e.alias;
-function Sge(e, t, n) {
+var oge = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, WF = (e) => e.alias;
+function sge(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 eI({ sources: e, name: t, canonicalKey: n }) {
+function GF({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)(JF, {
- group: Sge(e, t, n),
+ children: [/* @__PURE__ */ (0, U.jsx)(zF, {
+ group: sge(e, t, n),
name: t
}), /* @__PURE__ */ (0, U.jsx)("b", {
className: "text-body-medium",
@@ -42984,15 +42562,15 @@ function eI({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a }) {
- let [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = Sw({
+function cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a }) {
+ let [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = xw({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await iF(n.canonical, n.alias);
+ await YP(n.canonical, n.alias);
} catch (n) {
- throw t && dF(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && nF(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -43002,19 +42580,19 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
};
},
onSuccess: (e) => {
- l(""), s(/* @__PURE__ */ new Set()), dF(), a(`已合并 ${e.done} 组创作者别名`);
+ l(""), s(/* @__PURE__ */ new Set()), nF(), a(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => l(K(e))
- }), h = Sw({
- mutationFn: (e) => iF(e.canonical, e.alias),
+ }), h = xw({
+ mutationFn: (e) => YP(e.canonical, e.alias),
onSuccess: () => {
- l(""), d(""), p(""), dF(), a("已保存创作者别名");
+ l(""), d(""), p(""), nF(), a("已保存创作者别名");
},
onError: (e) => l(K(e))
- }), g = Sw({
- mutationFn: (e) => _he(e),
+ }), g = xw({
+ mutationFn: (e) => nhe(e),
onSuccess: () => {
- l(""), dF(), a("已移除创作者别名");
+ l(""), nF(), a("已移除创作者别名");
},
onError: (e) => l(K(e))
}), _ = (e, t) => {
@@ -43024,9 +42602,9 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => m.mutateAsync(e)
});
- }, v = t.filter((e) => o.has($F(e))), y = t.length > 0 && v.length === t.length, b = X(m.isPending);
+ }, v = t.filter((e) => o.has(WF(e))), y = t.length > 0 && v.length === t.length, b = X(m.isPending);
return /* @__PURE__ */ (0, U.jsxs)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -43037,10 +42615,10 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)(WT, { children: "手动添加别名" }), /* @__PURE__ */ (0, U.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, U.jsx)(AT, { children: "手动添加别名" }), /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: u,
@@ -43048,7 +42626,7 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
isDisabled: i,
className: "w-56"
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: f,
@@ -43069,13 +42647,13 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
]
})]
}),
- c ? /* @__PURE__ */ (0, U.jsx)(UT, { children: c }) : null,
+ c ? /* @__PURE__ */ (0, U.jsx)(kT, { children: c }) : null,
t.length ? /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(WT, { children: "待合并" }),
+ /* @__PURE__ */ (0, U.jsx)(AT, { children: "待合并" }),
/* @__PURE__ */ (0, U.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -43097,44 +42675,44 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, U.jsx)(CM, { children: /* @__PURE__ */ (0, U.jsxs)(xM, {
+ }), /* @__PURE__ */ (0, U.jsx)(pM, { children: /* @__PURE__ */ (0, U.jsxs)(dM, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, U.jsxs)(C_, { children: [
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(S_, { children: [
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "select",
- children: /* @__PURE__ */ (0, U.jsx)(bM, {
+ children: /* @__PURE__ */ (0, U.jsx)(uM, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => s(e ? new Set(t.map($F)) : /* @__PURE__ */ new Set())
+ onChange: (e) => s(e ? new Set(t.map(WF)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, U.jsx)(w_, {
+ /* @__PURE__ */ (0, U.jsx)(C_, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, U.jsx)(E_, { children: t.map((e) => {
- let t = $F(e);
- return /* @__PURE__ */ (0, U.jsxs)(k_, {
+ ] }), /* @__PURE__ */ (0, U.jsx)(T_, { children: t.map((e) => {
+ let t = WF(e);
+ return /* @__PURE__ */ (0, U.jsxs)(O_, {
id: t,
"data-board-selected": o.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)(bM, {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)(uM, {
slot: null,
isSelected: o.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -43143,16 +42721,16 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
e ? n.add(t) : n.delete(t), s(n);
}
}) }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)(eI, {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)(GF, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: e.alias }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: e.alias }),
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)(J, {
+ /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
size: "small",
disabled: i,
@@ -43169,27 +42747,27 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)(WT, { children: "已保存别名" }), /* @__PURE__ */ (0, U.jsx)("span", {
+ children: [/* @__PURE__ */ (0, U.jsx)(AT, { children: "已保存别名" }), /* @__PURE__ */ (0, U.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, U.jsx)(CM, { children: /* @__PURE__ */ (0, U.jsxs)(xM, {
+ }), e.length ? /* @__PURE__ */ (0, U.jsx)(pM, { children: /* @__PURE__ */ (0, U.jsxs)(dM, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, U.jsxs)(C_, { children: [/* @__PURE__ */ (0, U.jsx)(w_, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(S_, { children: [/* @__PURE__ */ (0, U.jsx)(C_, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, U.jsx)(w_, {
+ }), /* @__PURE__ */ (0, U.jsx)(C_, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, U.jsx)(E_, { children: e.map((e) => /* @__PURE__ */ (0, U.jsxs)(k_, {
+ })] }), /* @__PURE__ */ (0, U.jsx)(T_, { children: e.map((e) => /* @__PURE__ */ (0, U.jsxs)(O_, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)(eI, {
+ children: [/* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)(GF, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, U.jsx)(j_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, U.jsx)(A_, { children: /* @__PURE__ */ (0, U.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, U.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",
@@ -43197,13 +42775,13 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: Qw,
+ leadingIcon: Rw,
"aria-label": `移除别名 ${e.name}`,
disabled: i,
...X(g.isPending),
onClick: () => void r({
title: "移除创作者别名",
- body: xge(e.name),
+ body: oge(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => g.mutateAsync(e.name)
})
@@ -43211,9 +42789,9 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: dT,
+ icon: Zw,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -43223,33 +42801,33 @@ function Cge({ groups: e, suggestions: t, sources: n = [], readOnly: i, toast: a
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var wge = "这些账号信息存在哪里", Tge = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Ege = "将清除这个来源在本机和共享副本中的登录凭据。", Dge = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function Oge(e, t) {
+var lge = "这些账号信息存在哪里", uge = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", dge = "将清除这个来源在本机和共享副本中的登录凭据。", fge = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function pge(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function kge({ row: e }) {
- if (mF(e)) return /* @__PURE__ */ (0, U.jsx)(Kk, {
+function mge({ row: e }) {
+ if (aF(e)) return /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, U.jsx)(Kk, {
+ return /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: t,
- children: Ohe[e.requirement] || ""
+ children: phe[e.requirement] || ""
});
}
-function Age({ row: e, readOnly: t, toast: n }) {
- let [i, a] = (0, B.useState)({}), [o, s] = (0, B.useState)(""), c = mF(e), l = Sw({
- mutationFn: (t) => vhe(e.provider, t),
+function hge({ row: e, readOnly: t, toast: n }) {
+ let [i, a] = (0, B.useState)({}), [o, s] = (0, B.useState)(""), c = aF(e), l = xw({
+ mutationFn: (t) => rhe(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
s(e.note);
return;
}
s(""), a({}), z.invalidateQueries({
- queryKey: FP,
+ queryKey: EP,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -43265,17 +42843,17 @@ function Age({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, U.jsxs)(HT, { children: [e.why, e.where ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [" ", /* @__PURE__ */ (0, U.jsx)(GT, {
+ /* @__PURE__ */ (0, U.jsxs)(OT, { children: [e.why, e.where ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [" ", /* @__PURE__ */ (0, U.jsx)(jT, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, U.jsx)(HT, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, U.jsx)(OT, { children: e.howto }) : null,
/* @__PURE__ */ (0, U.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, U.jsx)(Rk, {
type: "password",
label: n,
- placeholder: Oge(e, n),
+ placeholder: pge(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -43303,7 +42881,7 @@ function Age({ row: e, readOnly: t, toast: n }) {
...X(l.isPending),
onClick: () => void r({
title: "清除来源凭据",
- body: Ege,
+ body: dge,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => l.mutateAsync({})
@@ -43311,9 +42889,9 @@ function Age({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- o ? /* @__PURE__ */ (0, U.jsx)(UT, { children: o }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, U.jsx)(HT, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, U.jsx)(AT, {
+ o ? /* @__PURE__ */ (0, U.jsx)(kT, { children: o }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, U.jsx)(OT, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, U.jsx)(gT, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -43321,25 +42899,25 @@ function Age({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: Dge
+ children: fge
}) : null
]
});
}
-function jge({ row: e, readOnly: t, toast: n }) {
+function gge({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, U.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, U.jsx)(qF, { provider: e.provider })
+ children: /* @__PURE__ */ (0, U.jsx)(RF, { provider: e.provider })
}),
/* @__PURE__ */ (0, U.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, U.jsx)(kge, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, U.jsx)(Kk, {
+ /* @__PURE__ */ (0, U.jsx)(mge, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -43348,13 +42926,13 @@ function jge({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, U.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, U.jsx)(HT, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, U.jsx)(OT, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, U.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, U.jsx)(JT, {
- summary: mF(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !mF(e),
- children: /* @__PURE__ */ (0, U.jsx)(Age, {
+ children: [r, /* @__PURE__ */ (0, U.jsx)(PT, {
+ summary: aF(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !aF(e),
+ children: /* @__PURE__ */ (0, U.jsx)(hge, {
row: e,
readOnly: t,
toast: n
@@ -43362,10 +42940,10 @@ function jge({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function Mge({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !mF(e));
+function _ge({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !aF(e));
return r.length ? /* @__PURE__ */ (0, U.jsxs)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -43400,12 +42978,12 @@ function Mge({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, U.jsx)("div", {
- className: bT({
+ className: oT({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, U.jsx)(jge, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, U.jsx)(gge, {
row: e,
readOnly: t,
toast: n
@@ -43417,13 +42995,13 @@ function Mge({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, U.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: wge
+ children: lge
}),
/* @__PURE__ */ (0, U.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Tge
+ children: uge
}),
- /* @__PURE__ */ (0, U.jsx)(AT, {
+ /* @__PURE__ */ (0, U.jsx)(gT, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -43432,16 +43010,16 @@ function Mge({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: _oe,
+ icon: toe,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function tI() {
+function KF() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -43454,24 +43032,24 @@ function tI() {
group: (e) => e
};
}
-function nI(e, t) {
+function qF(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function rI(e, t) {
+function JF(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: nI(n, t[e])
+ [e]: qF(n, t[e])
}));
};
}
-function iI(e) {
+function YF(e) {
return e instanceof Function;
}
-function Nge(e) {
+function vge(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function Pge(e, t) {
+function yge(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -43481,7 +43059,7 @@ function Pge(e, t) {
};
return r(e), n;
}
-function aI(e, t, n) {
+function XF(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -43503,21 +43081,21 @@ function aI(e, t, n) {
return i;
};
}
-function oI(e, t, n, r) {
+function ZF(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function Fge(e, t, n, r) {
+function bge(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: aI(() => [
+ getContext: XF(() => [
e,
n,
t,
@@ -43529,13 +43107,13 @@ function Fge(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), oI(e.options, "debugCells", "cell.getContext"))
+ }), ZF(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function Ige(e, t, n, r) {
+function xge(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -43552,17 +43130,17 @@ function Ige(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: aI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], oI(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: aI(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: XF(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], ZF(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: XF(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, oI(e.options, "debugColumns", "column.getLeafColumns"))
+ }, ZF(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var sI = "debugHeaders";
-function cI(e, t, n) {
+var QF = "debugHeaders";
+function $F(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -43590,42 +43168,42 @@ function cI(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var Lge = { createTable: (e) => {
- e.getHeaderGroups = aI(() => [
+var Sge = { createTable: (e) => {
+ e.getHeaderGroups = XF(() => [
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 lI(t, [
+ return eI(t, [
...a,
...s,
...o
], e);
- }, oI(e.options, sI, "getHeaderGroups")), e.getCenterHeaderGroups = aI(() => [
+ }, ZF(e.options, QF, "getHeaderGroups")), e.getCenterHeaderGroups = XF(() => [
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))), lI(t, n, e, "center")), oI(e.options, sI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = aI(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), eI(t, n, e, "center")), ZF(e.options, QF, "getCenterHeaderGroups")), e.getLeftHeaderGroups = XF(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => lI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), oI(e.options, sI, "getLeftHeaderGroups")), e.getRightHeaderGroups = aI(() => [
+ ], (t, n, r) => eI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), ZF(e.options, QF, "getLeftHeaderGroups")), e.getRightHeaderGroups = XF(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => lI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), oI(e.options, sI, "getRightHeaderGroups")), e.getFooterGroups = aI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), oI(e.options, sI, "getFooterGroups")), e.getLeftFooterGroups = aI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), oI(e.options, sI, "getLeftFooterGroups")), e.getCenterFooterGroups = aI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), oI(e.options, sI, "getCenterFooterGroups")), e.getRightFooterGroups = aI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), oI(e.options, sI, "getRightFooterGroups")), e.getFlatHeaders = aI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), oI(e.options, sI, "getFlatHeaders")), e.getLeftFlatHeaders = aI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), oI(e.options, sI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = aI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), oI(e.options, sI, "getCenterFlatHeaders")), e.getRightFlatHeaders = aI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), oI(e.options, sI, "getRightFlatHeaders")), e.getCenterLeafHeaders = aI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => eI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), ZF(e.options, QF, "getRightHeaderGroups")), e.getFooterGroups = XF(() => [e.getHeaderGroups()], (e) => [...e].reverse(), ZF(e.options, QF, "getFooterGroups")), e.getLeftFooterGroups = XF(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), ZF(e.options, QF, "getLeftFooterGroups")), e.getCenterFooterGroups = XF(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), ZF(e.options, QF, "getCenterFooterGroups")), e.getRightFooterGroups = XF(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), ZF(e.options, QF, "getRightFooterGroups")), e.getFlatHeaders = XF(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), ZF(e.options, QF, "getFlatHeaders")), e.getLeftFlatHeaders = XF(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), ZF(e.options, QF, "getLeftFlatHeaders")), e.getCenterFlatHeaders = XF(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), ZF(e.options, QF, "getCenterFlatHeaders")), e.getRightFlatHeaders = XF(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), ZF(e.options, QF, "getRightFlatHeaders")), e.getCenterLeafHeaders = XF(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), oI(e.options, sI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = aI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), ZF(e.options, QF, "getCenterLeafHeaders")), e.getLeftLeafHeaders = XF(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), oI(e.options, sI, "getLeftLeafHeaders")), e.getRightLeafHeaders = aI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), ZF(e.options, QF, "getLeftLeafHeaders")), e.getRightLeafHeaders = XF(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), oI(e.options, sI, "getRightLeafHeaders")), e.getLeafHeaders = aI(() => [
+ }), ZF(e.options, QF, "getRightLeafHeaders")), e.getLeafHeaders = XF(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -43633,9 +43211,9 @@ var Lge = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), oI(e.options, sI, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), ZF(e.options, QF, "getLeafHeaders"));
} };
-function lI(e, t, n, r) {
+function eI(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;
@@ -43653,7 +43231,7 @@ function lI(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 = cI(n, c, {
+ let i = $F(n, c, {
id: [
r,
t,
@@ -43670,7 +43248,7 @@ function lI(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) => cI(n, e, {
+ s(t.map((e, t) => $F(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -43688,7 +43266,7 @@ function lI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var Rge = (e, t, n, r, i, a, o) => {
+var Cge = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -43709,7 +43287,7 @@ var Rge = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => Pge(s.subRows, (e) => e.subRows),
+ getLeafRows: () => yge(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -43720,95 +43298,95 @@ var Rge = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: aI(() => [e.getAllLeafColumns()], (t) => t.map((t) => Fge(e, s, t, t.id)), oI(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: aI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), oI(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: XF(() => [e.getAllLeafColumns()], (t) => t.map((t) => bge(e, s, t, t.id)), ZF(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: XF(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), ZF(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;
-}, zge = { createColumn: (e, t) => {
+}, wge = { 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();
};
-} }, uI = (e, t, n) => {
+} }, tI = (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));
};
-uI.autoRemove = (e) => bI(e);
-var dI = (e, t, n) => {
+tI.autoRemove = (e) => dI(e);
+var nI = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-dI.autoRemove = (e) => bI(e);
-var fI = (e, t, n) => {
+nI.autoRemove = (e) => dI(e);
+var rI = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-fI.autoRemove = (e) => bI(e);
-var pI = (e, t, n) => e.getValue(t)?.includes(n);
-pI.autoRemove = (e) => bI(e);
-var mI = (e, t, n) => !n.some((n) => {
+rI.autoRemove = (e) => dI(e);
+var iI = (e, t, n) => e.getValue(t)?.includes(n);
+iI.autoRemove = (e) => dI(e);
+var aI = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-mI.autoRemove = (e) => bI(e) || !(e != null && e.length);
-var hI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-hI.autoRemove = (e) => bI(e) || !(e != null && e.length);
-var gI = (e, t, n) => e.getValue(t) === n;
-gI.autoRemove = (e) => bI(e);
-var _I = (e, t, n) => e.getValue(t) == n;
-_I.autoRemove = (e) => bI(e);
-var vI = (e, t, n) => {
+aI.autoRemove = (e) => dI(e) || !(e != null && e.length);
+var oI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+oI.autoRemove = (e) => dI(e) || !(e != null && e.length);
+var sI = (e, t, n) => e.getValue(t) === n;
+sI.autoRemove = (e) => dI(e);
+var cI = (e, t, n) => e.getValue(t) == n;
+cI.autoRemove = (e) => dI(e);
+var lI = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-vI.resolveFilterValue = (e) => {
+lI.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];
-}, vI.autoRemove = (e) => bI(e) || bI(e[0]) && bI(e[1]);
-var yI = {
- includesString: uI,
- includesStringSensitive: dI,
- equalsString: fI,
- arrIncludes: pI,
- arrIncludesAll: mI,
- arrIncludesSome: hI,
- equals: gI,
- weakEquals: _I,
- inNumberRange: vI
+}, lI.autoRemove = (e) => dI(e) || dI(e[0]) && dI(e[1]);
+var uI = {
+ includesString: tI,
+ includesStringSensitive: nI,
+ equalsString: rI,
+ arrIncludes: iI,
+ arrIncludesAll: aI,
+ arrIncludesSome: oI,
+ equals: sI,
+ weakEquals: cI,
+ inNumberRange: lI
};
-function bI(e) {
+function dI(e) {
return e == null || e === "";
}
-var Bge = {
+var Tge = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: rI("columnFilters", e),
+ onColumnFiltersChange: JF("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? yI.includesString : typeof n == "number" ? yI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? yI.equals : Array.isArray(n) ? yI.arrIncludes : yI.weakEquals;
- }, e.getFilterFn = () => iI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? yI[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" ? uI.includesString : typeof n == "number" ? uI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? uI.equals : Array.isArray(n) ? uI.arrIncludes : uI.weakEquals;
+ }, e.getFilterFn = () => YF(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? uI[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 = nI(n, i ? i.value : void 0);
- if (xI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = qF(n, i ? i.value : void 0);
+ if (fI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -43823,19 +43401,19 @@ var Bge = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => nI(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => qF(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && xI(t.getFilterFn(), e.value, t));
+ return !(t && fI(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 xI(e, t, n) {
+function fI(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var SI = {
+var pI = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -43871,7 +43449,7 @@ var SI = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!Nge(n)) return;
+ if (!vge(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];
@@ -43879,7 +43457,7 @@ var SI = {
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
-}, Vge = {
+}, Ege = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -43892,7 +43470,7 @@ var SI = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: rI("grouping", e),
+ onGroupingChange: JF("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -43905,11 +43483,11 @@ var SI = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return SI.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return SI.extent;
+ if (typeof n == "number") return pI.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return pI.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return iI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? SI[e.columnDef.aggregationFn];
+ return YF(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? pI[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -43931,27 +43509,27 @@ var SI = {
};
}
};
-function Hge(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 Uge = {
+var Oge = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: rI("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: JF("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = aI((e) => [OI(t, e)], (t) => t.findIndex((t) => t.id === e.id), oI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => OI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = OI(t, n);
+ e.getIndex = XF((e) => [yI(t, e)], (t) => t.findIndex((t) => t.id === e.id), ZF(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => yI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = yI(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 = aI(() => [
+ }, e._getOrderColumnsFn = XF(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -43966,18 +43544,18 @@ var Uge = {
}
i = [...i, ...n];
}
- return Hge(i, t, n);
- }, oI(e.options, "debugTable", "_getOrderColumnsFn"));
+ return Dge(i, t, n);
+ }, ZF(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, CI = () => ({
+}, mI = () => ({
left: [],
right: []
-}), Wge = {
+}), kge = {
getInitialState: (e) => ({
- columnPinning: CI(),
+ columnPinning: mI(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: rI("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: JF("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -44001,75 +43579,75 @@ var Uge = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = aI(() => [
+ e.getCenterVisibleCells = XF(() => [
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));
- }, oI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = aI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, ZF(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = XF(() => [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"
- })), oI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = aI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), ZF(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = XF(() => [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"
- })), oI(t.options, "debugRows", "getRightVisibleCells"));
+ })), ZF(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 ? CI() : e.initialState?.columnPinning ?? CI()), 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 = aI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), oI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = aI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), oI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = aI(() => [
+ }, e.getLeftLeafColumns = XF(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), ZF(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = XF(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), ZF(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = XF(() => [
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));
- }, oI(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, ZF(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function Gge(e) {
+function Age(e) {
return e || (typeof document < "u" ? document : null);
}
-var wI = {
+var hI = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, TI = () => ({
+}, gI = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), Kge = {
- getDefaultColumnDef: () => wI,
+}), jge = {
+ getDefaultColumnDef: () => hI,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: TI(),
+ columnSizingInfo: gI(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: rI("columnSizing", e),
- onColumnSizingInfoChange: rI("columnSizingInfo", e)
+ onColumnSizingChange: JF("columnSizing", e),
+ onColumnSizingInfoChange: JF("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? wI.minSize, n ?? e.columnDef.size ?? wI.size), e.columnDef.maxSize ?? wI.maxSize);
- }, e.getStart = aI((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? hI.minSize, n ?? e.columnDef.size ?? hI.size), e.columnDef.maxSize ?? hI.maxSize);
+ }, e.getStart = XF((e) => [
e,
- OI(t, e),
+ yI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), oI(t.options, "debugColumns", "getStart")), e.getAfter = aI((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), ZF(t.options, "debugColumns", "getStart")), e.getAfter = XF((e) => [
e,
- OI(t, e),
+ yI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), oI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), ZF(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -44091,8 +43669,8 @@ var wI = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), DI(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 = DI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), vI(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 = vI(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) => {
@@ -44117,7 +43695,7 @@ var wI = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = Gge(n), m = {
+ }, p = Age(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -44127,8 +43705,8 @@ var wI = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = qge() ? { passive: !1 } : !1;
- DI(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 = Mge() ? { passive: !1 } : !1;
+ vI(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,
@@ -44144,12 +43722,12 @@ var wI = {
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 ? TI() : e.initialState.columnSizingInfo ?? TI());
+ e.setColumnSizingInfo(t ? gI() : e.initialState.columnSizingInfo ?? gI());
}, 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;
}
-}, EI = null;
-function qge() {
- if (typeof EI == "boolean") return EI;
+}, _I = null;
+function Mge() {
+ if (typeof _I == "boolean") return _I;
let e = !1;
try {
let t = { get passive() {
@@ -44159,17 +43737,17 @@ function qge() {
} catch {
e = !1;
}
- return EI = e, EI;
+ return _I = e, _I;
}
-function DI(e) {
+function vI(e) {
return e.type === "touchstart";
}
-var Jge = {
+var Nge = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: rI("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: JF("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -44184,7 +43762,7 @@ var Jge = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = aI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), oI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = aI(() => [
+ e._getAllVisibleCells = XF(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), ZF(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = XF(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -44192,10 +43770,10 @@ var Jge = {
...e,
...t,
...n
- ], oI(t.options, "debugRows", "getVisibleCells"));
+ ], ZF(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => aI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), oI(e.options, "debugColumns", t));
+ let t = (t, n) => XF(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), ZF(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) => {
@@ -44208,20 +43786,20 @@ var Jge = {
};
}
};
-function OI(e, t) {
+function yI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var Yge = { createTable: (e) => {
+var Pge = { 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 = {
+} }, Fge = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: rI("globalFilter", e),
+ onGlobalFilterChange: JF("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -44233,22 +43811,22 @@ var Yge = { 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 = () => yI.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => uI.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return iI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? yI[t];
+ return YF(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? uI[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, Zge = {
+}, Ige = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: rI("expanded", e),
+ onExpandedChange: JF("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -44319,18 +43897,18 @@ var Yge = { createTable: (e) => {
};
};
}
-}, kI = 0, AI = 10, jI = () => ({
- pageIndex: kI,
- pageSize: AI
-}), Qge = {
+}, bI = 0, xI = 10, SI = () => ({
+ pageIndex: bI,
+ pageSize: xI
+}), Lge = {
getInitialState: (e) => ({
...e,
pagination: {
- ...jI(),
+ ...SI(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: rI("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: JF("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -44346,11 +43924,11 @@ var Yge = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => nI(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? jI() : e.initialState.pagination ?? jI());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => qF(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? SI() : e.initialState.pagination ?? SI());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = nI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = qF(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
@@ -44358,13 +43936,13 @@ var Yge = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? kI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? kI);
+ e.setPageIndex(t ? bI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? bI);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? AI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? AI);
+ e.setPageSize(t ? xI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? xI);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, nI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, qF(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -44372,28 +43950,28 @@ var Yge = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = nI(t, e.options.pageCount ?? -1);
+ let r = qF(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = aI(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = XF(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, oI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, ZF(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;
}
-}, MI = () => ({
+}, CI = () => ({
top: [],
bottom: []
-}), $ge = {
+}), Rge = {
getInitialState: (e) => ({
- rowPinning: MI(),
+ rowPinning: CI(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: rI("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: JF("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -44432,7 +44010,7 @@ var Yge = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? MI() : e.initialState?.rowPinning ?? MI()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? CI() : e.initialState?.rowPinning ?? CI()), 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) => {
@@ -44441,22 +44019,22 @@ var Yge = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = aI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), oI(e.options, "debugRows", "getTopRows")), e.getBottomRows = aI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), oI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = aI(() => [
+ })), e.getTopRows = XF(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), ZF(e.options, "debugRows", "getTopRows")), e.getBottomRows = XF(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), ZF(e.options, "debugRows", "getBottomRows")), e.getCenterRows = XF(() => [
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));
- }, oI(e.options, "debugRows", "getCenterRows"));
+ }, ZF(e.options, "debugRows", "getCenterRows"));
}
-}, e_e = {
+}, zge = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: rI("rowSelection", e),
+ onRowSelectionChange: JF("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -44475,21 +44053,21 @@ var Yge = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- NI(i, t.id, r, !0, e);
+ wI(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = aI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? PI(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = XF(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? TI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, oI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = aI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? PI(e, n) : {
+ }, ZF(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = XF(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? TI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, oI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = aI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? PI(e, n) : {
+ }, ZF(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = XF(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? TI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, oI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, ZF(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 = () => {
@@ -44513,17 +44091,17 @@ var Yge = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return NI(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return wI(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return FI(e, n);
+ return EI(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return II(e, n) === "some";
+ return DI(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return II(e, n) === "all";
+ return DI(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) => {
@@ -44531,16 +44109,16 @@ var Yge = { createTable: (e) => {
};
};
}
-}, NI = (e, t, n, r, i) => {
+}, wI = (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) => NI(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) => wI(e, t.id, n, r, i));
};
-function PI(e, t) {
+function TI(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = FI(e, n);
+ let o = EI(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -44553,32 +44131,32 @@ function PI(e, t) {
rowsById: i
};
}
-function FI(e, t) {
+function EI(e, t) {
return t[e.id] ?? !1;
}
-function II(e, t, n) {
+function DI(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() && (FI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = II(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (EI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = DI(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var LI = /([0-9]+)/gm, t_e = (e, t, n) => BI(zI(e.getValue(n)).toLowerCase(), zI(t.getValue(n)).toLowerCase()), n_e = (e, t, n) => BI(zI(e.getValue(n)), zI(t.getValue(n))), r_e = (e, t, n) => RI(zI(e.getValue(n)).toLowerCase(), zI(t.getValue(n)).toLowerCase()), i_e = (e, t, n) => RI(zI(e.getValue(n)), zI(t.getValue(n))), a_e = (e, t, n) => {
+var OI = /([0-9]+)/gm, Bge = (e, t, n) => jI(AI(e.getValue(n)).toLowerCase(), AI(t.getValue(n)).toLowerCase()), Vge = (e, t, n) => jI(AI(e.getValue(n)), AI(t.getValue(n))), Hge = (e, t, n) => kI(AI(e.getValue(n)).toLowerCase(), AI(t.getValue(n)).toLowerCase()), Uge = (e, t, n) => kI(AI(e.getValue(n)), AI(t.getValue(n))), Wge = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, o_e = (e, t, n) => RI(e.getValue(n), t.getValue(n));
-function RI(e, t) {
+}, Gge = (e, t, n) => kI(e.getValue(n), t.getValue(n));
+function kI(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function zI(e) {
+function AI(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function BI(e, t) {
- let n = e.split(LI).filter(Boolean), r = t.split(LI).filter(Boolean);
+function jI(e, t) {
+ let n = e.split(OI).filter(Boolean), r = t.split(OI).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])) {
@@ -44592,22 +44170,22 @@ function BI(e, t) {
}
return n.length - r.length;
}
-var VI = {
- alphanumeric: t_e,
- alphanumericCaseSensitive: n_e,
- text: r_e,
- textCaseSensitive: i_e,
- datetime: a_e,
- basic: o_e
-}, s_e = [
- Lge,
- Jge,
- Uge,
- Wge,
- zge,
- Bge,
- Yge,
- Xge,
+var MI = {
+ alphanumeric: Bge,
+ alphanumericCaseSensitive: Vge,
+ text: Hge,
+ textCaseSensitive: Uge,
+ datetime: Wge,
+ basic: Gge
+}, Kge = [
+ Sge,
+ Nge,
+ Oge,
+ kge,
+ wge,
+ Tge,
+ Pge,
+ Fge,
{
getInitialState: (e) => ({
sorting: [],
@@ -44618,7 +44196,7 @@ var VI = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: rI("sorting", e),
+ onSortingChange: JF("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -44626,13 +44204,13 @@ var VI = {
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 VI.datetime;
- if (typeof n == "string" && (r = !0, n.split(LI).length > 1)) return VI.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return MI.datetime;
+ if (typeof n == "string" && (r = !0, n.split(OI).length > 1)) return MI.alphanumeric;
}
- return r ? VI.text : VI.basic;
+ return r ? MI.text : MI.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return iI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? VI[e.columnDef.sortingFn];
+ return YF(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? MI[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -44669,15 +44247,15 @@ var VI = {
}, 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());
}
},
- Vge,
- Zge,
- Qge,
- $ge,
- e_e,
- Kge
+ Ege,
+ Ige,
+ Lge,
+ Rge,
+ zge,
+ jge
];
-function c_e(e) {
- let t = [...s_e, ...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 qge(e) {
+ let t = [...Kge, ...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 ?? {} };
@@ -44703,7 +44281,7 @@ function c_e(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = nI(e, n.options);
+ let t = qF(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -44718,7 +44296,7 @@ function c_e(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: aI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: XF(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -44729,20 +44307,20 @@ function c_e(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), oI(e, "debugColumns", "_getDefaultColumnDef")),
+ }), ZF(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: aI(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: XF(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = Ige(n, e, i, r), o = e;
+ let a = xge(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, oI(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: aI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), oI(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: aI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), oI(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: aI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), oI(e, "debugColumns", "getAllLeafColumns")),
+ }, ZF(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: XF(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), ZF(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: XF(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), ZF(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: XF(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), ZF(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -44752,8 +44330,8 @@ function c_e(e) {
}
return n;
}
-function HI() {
- return (e) => aI(() => [e.options.data], (t) => {
+function NI() {
+ return (e) => XF(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -44762,7 +44340,7 @@ function HI() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = Rge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = Cge(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));
@@ -44771,9 +44349,9 @@ function HI() {
return o;
};
return n.rows = r(t), n;
- }, oI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, ZF(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function l_e(e) {
+function Jge(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -44784,8 +44362,8 @@ function l_e(e) {
rowsById: e.rowsById
};
}
-function UI(e) {
- return (e) => aI(() => [
+function PI(e) {
+ return (e) => XF(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -44798,7 +44376,7 @@ function UI(e) {
rows: a,
flatRows: o,
rowsById: s
- } : l_e({
+ } : Jge({
rows: a,
flatRows: o,
rowsById: s
@@ -44807,32 +44385,32 @@ function UI(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, oI(e.options, "debugTable", "getPaginationRowModel"));
+ }, ZF(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function WI(e, t) {
- return e ? u_e(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
+function FI(e, t) {
+ return e ? Yge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
}
-function u_e(e) {
- return d_e(e) || typeof e == "function" || f_e(e);
+function Yge(e) {
+ return Xge(e) || typeof e == "function" || Zge(e);
}
-function d_e(e) {
+function Xge(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function f_e(e) {
+function Zge(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function GI(e) {
+function II(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = B.useState(() => ({ current: c_e(t) })), [r, i] = B.useState(() => n.current.initialState);
+ }, [n] = B.useState(() => ({ current: qge(t) })), [r, i] = B.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -44847,7 +44425,7 @@ function GI(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var p_e = dr({
+var Qge = dr({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -44909,8 +44487,8 @@ var p_e = dr({
}
}
});
-function m_e({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = p_e[t];
+function $ge({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Qge[t];
return /* @__PURE__ */ (0, U.jsx)("span", {
"aria-hidden": !0,
className: ur("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? ur("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"),
@@ -44920,12 +44498,12 @@ function m_e({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function KI({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, U.jsx)(vg, {
+function LI({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, U.jsx)(Oee, {
ref: i,
...a,
className: (t) => ur("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, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(m_e, {
+ children: (e) => /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)($ge, {
state: e,
size: n,
shape: r
@@ -44937,8 +44515,8 @@ function KI({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var qI = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", h_e = "输入女优名,到 JavDB 找她的演员页";
-function g_e(e, t) {
+var RI = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", e_e = "输入女优名,到 JavDB 找她的演员页";
+function t_e(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 {
@@ -44957,10 +44535,10 @@ function g_e(e, t) {
blocked: !1
};
}
-function __e({ card: e, picked: t, onPick: n }) {
+function n_e({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)(bM, {
+ children: [/* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, U.jsxs)("span", {
@@ -44970,7 +44548,7 @@ function __e({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, U.jsx)(Kk, {
+ e.record ? /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "neutral",
children: e.record
@@ -44981,16 +44559,16 @@ function __e({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, U.jsx)(GT, {
+ }), /* @__PURE__ */ (0, U.jsx)(jT, {
href: e.url,
children: e.id
})]
});
}
-function v_e({ 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 = kT(), u = () => {
+function r_e({ 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 = hT(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => xhe(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => ohe(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -44998,12 +44576,12 @@ function v_e({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => She(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => she(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? g_e(a, s) : null;
+ }, m = a ? t_e(a, s) : null;
return /* @__PURE__ */ (0, U.jsxs)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45016,11 +44594,11 @@ function v_e({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Rk, {
"aria-label": "女优名",
- placeholder: h_e,
+ placeholder: e_e,
value: r,
- leadingIcon: lT,
+ leadingIcon: Yw,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -45041,16 +44619,16 @@ function v_e({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, U.jsx)(WT, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, U.jsx)(__e, {
+ /* @__PURE__ */ (0, U.jsx)(AT, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, U.jsx)(n_e, {
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, U.jsx)(HT, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, U.jsx)(HT, {
+ }, e.id)) : /* @__PURE__ */ (0, U.jsx)(OT, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, U.jsx)(OT, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -45077,19 +44655,19 @@ function v_e({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var y_e = Object.fromEntries(Object.entries(zP).map(([e, t]) => [t, e])), JI = 740;
-function b_e() {
+var i_e = Object.fromEntries(Object.entries(AP).map(([e, t]) => [t, e])), zI = 740;
+function a_e() {
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 < JI));
- r.observe(e), n.current = r, t(e.clientWidth < JI);
+ let r = new ResizeObserver(() => t(e.clientWidth < zI));
+ r.observe(e), n.current = r, t(e.clientWidth < zI);
}, []);
return (0, B.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var x_e = {
+var o_e = {
select: "选择",
author: "创作者",
source: "来源",
@@ -45098,7 +44676,7 @@ var x_e = {
checked: "上次检查",
actions: "操作"
};
-function YI({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function BI({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, U.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -45112,7 +44690,7 @@ function YI({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, U.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: ij(e, t).map((t, r) => /* @__PURE__ */ (0, U.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, U.jsx)("span", {
+ children: JA(e, t).map((t, r) => /* @__PURE__ */ (0, U.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, U.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -45135,22 +44713,22 @@ function YI({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function S_e({ source: e, selected: t, onToggle: n, handlers: r }) {
+function s_e({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- SM(e, e.currentTarget) && n(!t);
+ fM(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, U.jsx)(bM, {
+ /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, U.jsx)(XF, { source: e }), e.last_error ? /* @__PURE__ */ (0, U.jsx)("small", {
+ children: [/* @__PURE__ */ (0, U.jsx)(VF, { source: e }), e.last_error ? /* @__PURE__ */ (0, U.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -45158,17 +44736,17 @@ function S_e({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, U.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, U.jsx)(qF, {
+ children: /* @__PURE__ */ (0, U.jsx)(RF, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, U.jsx)(YF, { source: e }),
+ /* @__PURE__ */ (0, U.jsx)(BF, { source: e }),
/* @__PURE__ */ (0, U.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: fF(e)
+ children: rF(e)
}),
- /* @__PURE__ */ (0, U.jsx)(KI, {
+ /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -45180,7 +44758,7 @@ function S_e({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: sT,
+ leadingIcon: qw,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
@@ -45189,7 +44767,7 @@ function S_e({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: tT,
+ leadingIcon: Vw,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -45198,11 +44776,11 @@ function S_e({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function C_e({ 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(VP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = ZP(r, c);
+function c_e({ 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(MP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = HP(r, c);
return /* @__PURE__ */ (0, U.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: bT({
+ className: oT({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -45212,7 +44790,7 @@ function C_e({ 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, U.jsx)(JF, {
+ /* @__PURE__ */ (0, U.jsx)(zF, {
group: e,
name: t
}),
@@ -45224,7 +44802,7 @@ function C_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: sT,
+ leadingIcon: qw,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
@@ -45233,7 +44811,7 @@ function C_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, U.jsx)(qF, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, U.jsx)(qc, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, U.jsx)(RF, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, U.jsx)(qc, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -45242,7 +44820,7 @@ function C_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Zw,
+ leadingIcon: Lw,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -45253,7 +44831,7 @@ function C_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? Xw : qw,
+ leadingIcon: n ? Iw : Nw,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -45263,7 +44841,7 @@ function C_e({ 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, U.jsx)(S_e, {
+ children: e.map((e) => /* @__PURE__ */ (0, U.jsx)(s_e, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -45272,37 +44850,37 @@ function C_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function w_e(e) {
- let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: s, selected: c, readOnly: l, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), [S, C] = b_e(), [w, T] = (0, B.useState)(""), E = (0, B.useMemo)(() => lhe(_, n, i, v), [
+function l_e(e) {
+ let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: s, selected: c, readOnly: l, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), [S, C] = a_e(), [w, T] = (0, B.useState)(""), E = (0, B.useMemo)(() => Jme(_, n, i, v), [
_,
n,
i,
v
- ]), D = (0, B.useMemo)(() => uhe(E, n, i, v), [
+ ]), D = (0, B.useMemo)(() => Yme(E, n, i, v), [
E,
n,
i,
v
- ]), { job: O, running: k, outcome: A, start: j } = gM({
- queryKey: ehe,
- queryFn: ({ signal: e }) => fhe(e),
- start: (e) => tF(e),
+ ]), { job: O, running: k, outcome: A, start: j } = oM({
+ queryKey: zme,
+ queryFn: ({ signal: e }) => Zme(e),
+ start: (e) => KP(e),
onError: (e) => T(K(e)),
onFinish: (e) => {
- dF(), h(e.status === "failed" ? e.error || "检查失败" : whe(e));
+ nF(), h(e.status === "failed" ? e.error || "检查失败" : lhe(e));
}
}), M = (e) => {
k || j.isPending || (T(""), j.mutate(e));
- }, N = (e, t) => m(QP(c, [e], t)), ee = (e, t) => m(QP(c, e, t)), te = Sw({
- mutationFn: (e) => rF(e),
+ }, N = (e, t) => m(UP(c, [e], t)), ee = (e, t) => m(UP(c, e, t)), te = xw({
+ mutationFn: (e) => JP(e),
onSuccess: (e, t) => {
- uF([t]), m(QP(c, [t], !1)), h("已取消关注来源");
+ tF([t]), m(UP(c, [t], !1)), h("已取消关注来源");
},
onError: (e) => T(K(e))
- }), P = Sw({
- mutationFn: (e) => nF(e.id, e.enabled),
+ }), P = xw({
+ mutationFn: (e) => qP(e.id, e.enabled),
onSuccess: (e, t) => {
- lF(t.id, { enabled: t.enabled }), T("");
+ eF(t.id, { enabled: t.enabled }), T("");
},
onError: (e) => T(K(e))
}), F = (e) => void r({
@@ -45311,10 +44889,10 @@ function w_e(e) {
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => te.mutateAsync(e.id)
- }), ne = Sw({
+ }), ne = xw({
mutationFn: async (e) => {
let t = await ae(e.ids, 4, async (t) => {
- e.action === "remove" ? await rF(t) : await nF(t, e.action === "enabled");
+ e.action === "remove" ? await JP(t) : await qP(t, e.action === "enabled");
});
return {
...e,
@@ -45323,9 +44901,9 @@ function w_e(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") uF(e.done);
- else for (let t of e.done) lF(t, { enabled: e.action === "enabled" });
- m(QP(c, e.done, !1));
+ if (e.action === "remove") tF(e.done);
+ else for (let t of e.done) eF(t, { enabled: e.action === "enabled" });
+ m(UP(c, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
T(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);
@@ -45336,20 +44914,20 @@ function w_e(e) {
h(`已${n} ${e.done.length} 个关注来源`);
},
onError: (e) => T(K(e))
- }), I = Sw({
+ }), I = xw({
mutationFn: async (e) => {
- let t = ((await bhe()).groups || []).flatMap((e) => [
+ let t = ((await ahe()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await ae(t, 6, (t) => yhe(t, e))).filter((e) => !e.ok)
+ failed: (await ae(t, 6, (t) => ihe(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (dF(), e.failed.length) {
+ if (nF(), e.failed.length) {
T(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -45374,12 +44952,12 @@ function w_e(e) {
readOnly: l
};
let ie = L.current, oe = (0, B.useMemo)(() => {
- let e = tI(), t = (e) => () => x_e[e] || e;
+ let e = KF(), t = (e) => () => o_e[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, U.jsx)(bM, {
+ cell: (e) => /* @__PURE__ */ (0, U.jsx)(uM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -45391,7 +44969,7 @@ function w_e(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)(JF, {
+ children: [/* @__PURE__ */ (0, U.jsx)(zF, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, U.jsx)("span", {
@@ -45405,7 +44983,7 @@ function w_e(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, U.jsx)(XF, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, U.jsx)("small", {
+ children: [/* @__PURE__ */ (0, U.jsx)(VF, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, U.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -45416,18 +44994,18 @@ function w_e(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, U.jsx)(qF, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, U.jsx)(RF, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, U.jsx)(YF, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, U.jsx)(BF, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => fF(e.row.original.source)
+ cell: (e) => rF(e.row.original.source)
}),
e.display({
id: "actions",
@@ -45435,7 +45013,7 @@ function w_e(e) {
cell: (e) => /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, U.jsx)(KI, {
+ /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ie.readOnly,
@@ -45445,7 +45023,7 @@ function w_e(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: sT,
+ leadingIcon: qw,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ie.readOnly,
...X(ie.busy),
@@ -45455,7 +45033,7 @@ function w_e(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: tT,
+ leadingIcon: Vw,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ie.readOnly,
onClick: () => L.current.remove(e.row.original.source)
@@ -45465,12 +45043,12 @@ function w_e(e) {
})
];
}, [ie]), se = (0, B.useMemo)(() => {
- let e = y_e[n];
+ let e = i_e[n];
return e ? [{
id: e,
desc: i === "desc"
}] : [];
- }, [n, i]), ce = (0, B.useMemo)(() => Object.fromEntries([...c].map((e) => [String(e), !0])), [c]), le = o === "table", R = XP(le ? D.length : E.length, s, a), ue = GI({
+ }, [n, i]), ce = (0, B.useMemo)(() => Object.fromEntries([...c].map((e) => [String(e), !0])), [c]), le = o === "table", R = VP(le ? D.length : E.length, s, a), ue = II({
data: D,
columns: oe,
getRowId: (e) => String(e.source.id),
@@ -45487,7 +45065,7 @@ function w_e(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(se) : e)[0];
if (!t) return;
- let n = zP[t.id];
+ let n = AP[t.id];
n && u(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -45501,11 +45079,11 @@ function w_e(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === s ? n.pageIndex !== t.pageIndex && d(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: HI(),
- getPaginationRowModel: UI()
- }), de = ue.getRowModel().rows, fe = le ? de.map((e) => e.original.source.id) : E.slice(R.start, R.end).flatMap((e) => e.map((e) => e.id)), pe = ZP(c, fe), me = [...c], he = The(A), ge = Ehe(A), _e = E.length > 0 && b.size >= E.length;
+ getCoreRowModel: NI(),
+ getPaginationRowModel: PI()
+ }), de = ue.getRowModel().rows, fe = le ? de.map((e) => e.original.source.id) : E.slice(R.start, R.end).flatMap((e) => e.map((e) => e.id)), pe = HP(c, fe), me = [...c], he = uhe(A), ge = dhe(A), _e = E.length > 0 && b.size >= E.length;
return _.length ? /* @__PURE__ */ (0, U.jsxs)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45524,7 +45102,7 @@ function w_e(e) {
}),
/* @__PURE__ */ (0, U.jsx)(J, {
variant: "primary",
- leadingIcon: sT,
+ leadingIcon: qw,
disabled: l,
"aria-label": "检查全部",
iconOnly: C,
@@ -45539,28 +45117,28 @@ function w_e(e) {
children: [/* @__PURE__ */ (0, U.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: voe,
- "aria-label": LP[0][1],
+ leadingIcon: noe,
+ "aria-label": OP[0][1],
"aria-pressed": !le,
onClick: () => f("default")
}), /* @__PURE__ */ (0, U.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: xoe,
- "aria-label": LP[1][1],
+ leadingIcon: aoe,
+ "aria-label": OP[1][1],
"aria-pressed": le,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, U.jsx)(eA, {
+ /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- u(t, wP[t]);
+ u(t, hP[t]);
},
- children: CP.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: mP.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: t
}, e))
@@ -45568,14 +45146,14 @@ function w_e(e) {
/* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: i === "asc" ? loe : coe,
- "aria-label": she(n, i),
+ leadingIcon: i === "asc" ? qae : Kae,
+ "aria-label": Kme(n, i),
onClick: () => u(n, i === "asc" ? "desc" : "asc")
}),
le ? null : /* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
iconOnly: C,
- leadingIcon: _e ? qw : Xw,
+ leadingIcon: _e ? Nw : Iw,
"aria-label": _e ? "全部展开" : "全部收起",
onClick: () => x(_e ? /* @__PURE__ */ new Set() : new Set(E.map((e) => String(e[0].author_key || e[0].id)))),
children: _e ? "全部展开" : "全部收起"
@@ -45586,7 +45164,7 @@ function w_e(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- k ? /* @__PURE__ */ (0, U.jsx)(PT, {
+ k ? /* @__PURE__ */ (0, U.jsx)(bT, {
embedded: !0,
label: O?.message || (O?.total ? `${O.older ? "抓取历史" : "检查更新"}:已完成 ${O.checked || 0}/${O.total} 个来源` : "正在准备检查任务"),
value: O?.checked,
@@ -45612,7 +45190,7 @@ function w_e(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, U.jsxs)(oD, {
+ /* @__PURE__ */ (0, U.jsxs)(KE, {
label: "关注来源批量操作",
visible: me.length > 0,
count: `已选 ${me.length} 个来源`,
@@ -45672,10 +45250,10 @@ function w_e(e) {
})
]
}),
- le ? /* @__PURE__ */ (0, U.jsx)(CM, {
+ le ? /* @__PURE__ */ (0, U.jsx)(pM, {
follow: !0,
onRowClick: (e) => N(Number(e), !c.has(Number(e))),
- children: /* @__PURE__ */ (0, U.jsxs)(xM, {
+ children: /* @__PURE__ */ (0, U.jsxs)(dM, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: se[0] ? {
@@ -45686,9 +45264,9 @@ function w_e(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, U.jsx)(C_, { children: ue.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in zP, n = WI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, U.jsx)(w_, {
+ children: [/* @__PURE__ */ (0, U.jsx)(S_, { children: ue.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in AP, n = FI(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, U.jsx)(C_, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -45697,20 +45275,20 @@ function w_e(e) {
children: [n, /* @__PURE__ */ (0, U.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, U.jsx)(jue, {})
+ children: /* @__PURE__ */ (0, U.jsx)(vue, {})
})]
}) : /* @__PURE__ */ (0, U.jsx)(qc, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, U.jsx)(E_, {
+ }) }), /* @__PURE__ */ (0, U.jsx)(T_, {
renderEmptyState: () => "这一页没有来源",
- children: de.map((e) => /* @__PURE__ */ (0, U.jsx)(k_, {
+ children: de.map((e) => /* @__PURE__ */ (0, U.jsx)(O_, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, U.jsx)(j_, { children: WI(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, U.jsx)(A_, { children: FI(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(bM, {
+ }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: pe.all,
isIndeterminate: pe.some,
onChange: (e) => ee(fe, e),
@@ -45720,9 +45298,9 @@ function w_e(e) {
className: "flex flex-col gap-3",
children: E.slice(R.start, R.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, U.jsx)(C_e, {
+ return /* @__PURE__ */ (0, U.jsx)(c_e, {
group: e,
- name: KP(e, v),
+ name: LP(e, v),
handlers: ie,
selected: c,
open: !b.has(t),
@@ -45742,19 +45320,19 @@ function w_e(e) {
className: "text-body-2-regular text-text-secondary",
children: `${R.start + 1}–${R.end} / ${R.total} ${le ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, U.jsx)(eA, {
+ /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(s),
onSelectionChange: (e) => {
e !== null && ue.setPageSize(Number(e));
},
- children: RP.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: kP.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: String(e),
children: `每页 ${e} ${le ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, U.jsx)(YI, {
+ /* @__PURE__ */ (0, U.jsx)(BI, {
page: R.page,
pages: R.pages,
onPage: (e) => ue.setPageIndex(e - 1)
@@ -45803,11 +45381,11 @@ function w_e(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: cT,
+ icon: Jw,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, U.jsx)(mT, {
+ actions: /* @__PURE__ */ (0, U.jsx)(eT, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -45818,7 +45396,7 @@ function w_e(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var T_e = {
+var u_e = {
select: "选择",
name: "名称",
kind: "类型",
@@ -45828,33 +45406,33 @@ var T_e = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, E_e = /* @__PURE__ */ new Set(["select", "actions"]), XI = () => z.invalidateQueries({
- queryKey: IP,
+}, d_e = /* @__PURE__ */ new Set(["select", "actions"]), VI = () => z.invalidateQueries({
+ queryKey: DP,
exact: !0
-}), ZI = (e) => e.name || e.url, D_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function O_e(e) {
+}), HI = (e) => e.name || e.url, f_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function p_e(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function k_e({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, U.jsx)(Kk, {
+function m_e({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, U.jsx)(Kk, {
+ }) : e.enabled ? /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, U.jsx)(Kk, {
+ }) : /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function A_e({ source: e }) {
+function h_e({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -45863,31 +45441,31 @@ function A_e({ source: e }) {
} : null;
return /* @__PURE__ */ (0, U.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 ${qI}`,
- dangerouslySetInnerHTML: { __html: ue(ZI(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 ${RI}`,
+ dangerouslySetInnerHTML: { __html: ue(HI(e), t, null, "performer") }
});
}
-var j_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function M_e(e) {
+var g_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function __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 QI(e, t) {
+function UI(e, t) {
let n = e.length === 1 ? e[0] : null;
return r({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${ZI(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${HI(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function N_e({ readOnly: e, toast: t }) {
- let n = yw({
- queryKey: IP,
- queryFn: ({ signal: e }) => aF(e)
- }), r = kT(), 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 = XP(a.length, u, c);
+function v_e({ readOnly: e, toast: t }) {
+ let n = vw({
+ queryKey: DP,
+ queryFn: ({ signal: e }) => XP(e)
+ }), r = hT(), 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 = VP(a.length, u, c);
(0, B.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, B.useEffect)(() => {
@@ -45896,10 +45474,10 @@ function N_e({ readOnly: e, toast: t }) {
return n.size === e.size ? e : n;
});
}, [a]);
- let p = Sw({
+ let p = xw({
mutationFn: async (e) => {
let t = await ae(e.ids, 4, async (t) => {
- e.action === "remove" ? await sF(t) : await oF(t, e.action === "enabled");
+ e.action === "remove" ? await QP(t) : await ZP(t, e.action === "enabled");
});
return {
...e,
@@ -45908,13 +45486,13 @@ function N_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()), XI(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ if (s(/* @__PURE__ */ new Set()), VI(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : K(e.error)}`);
}
},
onError: (e) => r.setError(K(e))
- }), m = (0, B.useMemo)(() => M_e(a), [a]), h = (0, B.useRef)({
+ }), m = (0, B.useMemo)(() => __e(a), [a]), h = (0, B.useRef)({
readOnly: e,
shared: m,
busy: null,
@@ -45926,34 +45504,34 @@ function N_e({ readOnly: e, toast: t }) {
readOnly: e,
shared: m,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => oF(e.id, t, n), () => void XI()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => cF(t, [e.id]), () => void XI()),
- remove: (e) => void QI([e], async () => {
- await sF(e.id), t(`已移除订阅源「${ZI(e)}」`), XI();
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => ZP(e.id, t, n), () => void VI()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => $P(t, [e.id]), () => void VI()),
+ remove: (e) => void UI([e], async () => {
+ await QP(e.id), t(`已移除订阅源「${HI(e)}」`), VI();
})
};
let g = (0, B.useMemo)(() => {
- let e = tI(), t = (e) => () => T_e[e] || e;
+ let e = KF(), t = (e) => () => u_e[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, U.jsx)(bM, {
+ cell: (e) => /* @__PURE__ */ (0, U.jsx)(uM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${ZI(e.row.original)}`
+ "aria-label": `选择 ${HI(e.row.original)}`
})
}),
- e.accessor(ZI, {
+ e.accessor(HI, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = j_e(e.row.original, h.current.shared);
+ let t = g_e(e.row.original, h.current.shared);
return /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, U.jsx)(A_e, { source: e.row.original }),
+ /* @__PURE__ */ (0, U.jsx)(h_e, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -45981,15 +45559,15 @@ function N_e({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: O_e(e.getValue())
+ children: p_e(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, U.jsx)(k_e, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, U.jsx)(m_e, { source: e.row.original })
}),
- e.accessor((e) => D_e(e.interval_minutes), {
+ e.accessor((e) => f_e(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, U.jsx)("span", {
@@ -45997,7 +45575,7 @@ function N_e({ readOnly: e, toast: t }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? sj(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? ZA(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, U.jsx)("span", {
@@ -46019,8 +45597,8 @@ function N_e({ readOnly: e, toast: t }) {
cell: (e) => /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, U.jsx)(KI, {
- "aria-label": `启用 ${ZI(e.row.original)}`,
+ /* @__PURE__ */ (0, U.jsx)(LI, {
+ "aria-label": `启用 ${HI(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: h.current.readOnly,
onChange: (t) => h.current.toggle(e.row.original, t)
@@ -46029,8 +45607,8 @@ function N_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: sT,
- "aria-label": `拉取 ${ZI(e.row.original)}`,
+ leadingIcon: qw,
+ "aria-label": `拉取 ${HI(e.row.original)}`,
disabled: h.current.readOnly,
...X(h.current.busy === `check-${e.row.original.id}`),
onClick: () => h.current.fetch(e.row.original)
@@ -46039,8 +45617,8 @@ function N_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: tT,
- "aria-label": `移除 ${ZI(e.row.original)}`,
+ leadingIcon: Vw,
+ "aria-label": `移除 ${HI(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
})
@@ -46048,7 +45626,7 @@ function N_e({ readOnly: e, toast: t }) {
})
})
];
- }, []), _ = (0, B.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = GI({
+ }, []), _ = (0, B.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = II({
data: a,
columns: g,
getRowId: (e) => String(e.id),
@@ -46064,27 +45642,27 @@ function N_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: HI(),
- getPaginationRowModel: UI()
+ getCoreRowModel: NI(),
+ getPaginationRowModel: PI()
});
if (!i) return n.error ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "打不开订阅源",
children: K(n.error)
- }) : /* @__PURE__ */ (0, U.jsx)(HT, { children: "正在读订阅源。" });
- let y = () => void r.run("check", (e) => cF(e), () => void XI()), b = (e) => s((t) => {
+ }) : /* @__PURE__ */ (0, U.jsx)(OT, { children: "正在读订阅源。" });
+ let y = () => void r.run("check", (e) => $P(e), () => void VI()), 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, U.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, U.jsx)(v_e, {
+ children: [/* @__PURE__ */ (0, U.jsx)(r_e, {
readOnly: e,
toast: t,
- onAdded: () => void XI()
+ onAdded: () => void VI()
}), /* @__PURE__ */ (0, U.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46112,11 +45690,11 @@ function N_e({ readOnly: e, toast: t }) {
className: "flex flex-col gap-3",
children: [S.map((e) => /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
- title: `${ZI(e)} 拉取失败`,
+ title: `${HI(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, U.jsxs)(oD, {
+ /* @__PURE__ */ (0, U.jsxs)(KE, {
visible: x.length > 0,
label: "订阅源批量操作",
count: `已选 ${x.length} 条订阅源`,
@@ -46148,7 +45726,7 @@ function N_e({ readOnly: e, toast: t }) {
size: "small",
disabled: e,
...X(p.isPending),
- onClick: () => void QI(x, () => p.mutateAsync({
+ onClick: () => void UI(x, () => p.mutateAsync({
ids: x.map((e) => e.id),
action: "remove"
})),
@@ -46162,26 +45740,26 @@ function N_e({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, U.jsx)(CM, {
+ a.length ? /* @__PURE__ */ (0, U.jsx)(pM, {
onRowClick: (e) => b(Number(e)),
- children: /* @__PURE__ */ (0, U.jsxs)(xM, {
+ children: /* @__PURE__ */ (0, U.jsxs)(dM, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, U.jsx)(C_, { children: v.getHeaderGroups()[0].headers.map((e) => {
- let t = WI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, U.jsx)(w_, {
+ children: [/* @__PURE__ */ (0, U.jsx)(S_, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ let t = FI(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, U.jsx)(C_, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: E_e.has(e.column.id) ? /* @__PURE__ */ (0, U.jsx)(qc, { children: t }) : t
+ children: d_e.has(e.column.id) ? /* @__PURE__ */ (0, U.jsx)(qc, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, U.jsx)(E_, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, U.jsx)(k_, {
+ }) }), /* @__PURE__ */ (0, U.jsx)(T_, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, U.jsx)(O_, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, U.jsx)(j_, { children: WI(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, U.jsx)(A_, { children: FI(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: cT,
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: Jw,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -46193,19 +45771,19 @@ function N_e({ readOnly: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`
}),
- /* @__PURE__ */ (0, U.jsx)(eA, {
+ /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(u),
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: RP.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: kP.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, U.jsx)(YI, {
+ /* @__PURE__ */ (0, U.jsx)(BI, {
label: "JAV 订阅分页",
page: f.page,
pages: f.pages,
@@ -46227,41 +45805,41 @@ function N_e({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/wants/wants.ts
-var $I = "/api/wants", eL = ["wants"], P_e = (e) => [
+var WI = "/api/wants", GI = ["wants"], y_e = (e) => [
"wants",
"follow",
e
-], F_e = [
+], b_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], I_e = (e) => HC($I, e), L_e = (e, t) => HC(`${$I}?follow=${encodeURIComponent(e)}`, t), tL = (e, t) => q($I, {
+], x_e = (e) => VC(WI, e), S_e = (e, t) => VC(`${WI}?follow=${encodeURIComponent(e)}`, t), KI = (e, t) => q(WI, {
action: "add",
...e
-}, "POST", t), nL = (e, t) => q($I, {
+}, "POST", t), qI = (e, t) => q(WI, {
action: "remove",
ids: e
-}, "POST", t), R_e = (e, t) => q($I, {
+}, "POST", t), C_e = (e, t) => q(WI, {
action: "reset",
ids: e
-}, "POST", t), rL = () => z.invalidateQueries({ queryKey: eL }), iL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function z_e(e) {
+}, "POST", t), JI = () => z.invalidateQueries({ queryKey: GI }), YI = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function w_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 B_e = {
+var T_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
-}, aL = (e) => [
+}, XI = (e) => [
e.release_date,
e.studio,
e.performers,
- B_e[e.origin]
+ T_e[e.origin]
].filter(Boolean).join(" · ");
-function V_e({ want: e }) {
+function E_e({ want: e }) {
return /* @__PURE__ */ (0, U.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, U.jsx)("span", {
@@ -46277,36 +45855,36 @@ function V_e({ want: e }) {
}) : null]
});
}
-function H_e({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a, onCloudDownload: o }) {
+function D_e({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a, onCloudDownload: o }) {
return /* @__PURE__ */ (0, U.jsxs)("li", {
"data-want-id": e.id,
className: `flex min-w-0 items-start gap-4 py-4 max-sm:gap-3 ${t ? "" : "border-t border-separator-border"}`,
- children: [/* @__PURE__ */ (0, U.jsx)(V_e, { want: e }), /* @__PURE__ */ (0, U.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, U.jsx)(E_e, { want: e }), /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, U.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, U.jsx)("b", {
className: "text-headline-medium text-text-primary",
- children: iL(e)
+ children: YI(e)
}), e.code && e.title ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- aL(e) ? /* @__PURE__ */ (0, U.jsx)("p", {
+ XI(e) ? /* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: aL(e)
+ children: XI(e)
}) : null,
/* @__PURE__ */ (0, U.jsxs)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: [z_e(e), e.scrape_error ? `;资料没取到:${e.scrape_error}` : ""]
+ children: [w_e(e), e.scrape_error ? `;资料没取到:${e.scrape_error}` : ""]
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "mt-1 flex flex-wrap items-center gap-2",
children: [
- e.link ? /* @__PURE__ */ (0, U.jsx)(GT, {
+ e.link ? /* @__PURE__ */ (0, U.jsx)(jT, {
href: e.link,
children: "来源页"
}) : null,
@@ -46339,32 +45917,32 @@ function H_e({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a,
})]
});
}
-function U_e({ readOnly: e, toast: t, cloudDownload: n }) {
- let [r, i] = (0, B.useState)(""), a = kT(), o = yw({
- queryKey: eL,
- queryFn: ({ signal: e }) => I_e(e),
+function O_e({ readOnly: e, toast: t, cloudDownload: n }) {
+ let [r, i] = (0, B.useState)(""), a = hT(), o = vw({
+ queryKey: GI,
+ queryFn: ({ signal: e }) => x_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), s = () => {
let n = r.trim();
- !n || e || a.run("add", (e) => tL({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${iL(e.want)}` : `${iL(e.want)} 已经在想要里`), i(""), rL();
+ !n || e || a.run("add", (e) => KI({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${YI(e.want)}` : `${YI(e.want)} 已经在想要里`), i(""), JI();
});
}, c = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), s());
}, l = (e) => {
- a.run(`remove:${e.id}`, (t) => nL([e.id], t), () => {
- t(`已移除:${iL(e)}`), rL();
+ a.run(`remove:${e.id}`, (t) => qI([e.id], t), () => {
+ t(`已移除:${YI(e)}`), JI();
});
}, u = (e) => {
- a.run(`reset:${e.id}`, (t) => R_e([e.id], t), () => {
- t(`${iL(e)} 回到待找`), rL();
+ a.run(`reset:${e.id}`, (t) => C_e([e.id], t), () => {
+ t(`${YI(e)} 回到待找`), JI();
});
}, d = o.data, f = d?.items || [];
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46377,7 +45955,7 @@ function U_e({ readOnly: e, toast: t, cloudDownload: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Rk, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: r,
@@ -46393,7 +45971,7 @@ function U_e({ readOnly: e, toast: t, cloudDownload: n }) {
children: "添加"
})]
}),
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
a.error ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "这一次没有完成",
@@ -46406,17 +45984,17 @@ function U_e({ readOnly: e, toast: t, cloudDownload: n }) {
title: "想要清单读取失败",
children: K(o.error)
}) : null,
- d?.scraping ? /* @__PURE__ */ (0, U.jsx)(HT, {
+ d?.scraping ? /* @__PURE__ */ (0, U.jsx)(OT, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
- d && !f.length ? /* @__PURE__ */ (0, U.jsx)(Ew, {
+ d && !f.length ? /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: boe,
+ icon: ioe,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
- F_e.map(([t, r]) => {
+ b_e.map(([t, r]) => {
let i = f.filter((e) => e.phase === t);
return i.length ? /* @__PURE__ */ (0, U.jsxs)("section", {
"aria-label": r,
@@ -46430,7 +46008,7 @@ function U_e({ readOnly: e, toast: t, cloudDownload: n }) {
})]
}), /* @__PURE__ */ (0, U.jsx)("ul", {
className: "flex flex-col",
- children: i.map((t, r) => /* @__PURE__ */ (0, U.jsx)(H_e, {
+ children: i.map((t, r) => /* @__PURE__ */ (0, U.jsx)(D_e, {
want: t,
first: r === 0,
readOnly: e,
@@ -46451,16 +46029,16 @@ function U_e({ readOnly: e, toast: t, cloudDownload: n }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var oL = [
+var ZI = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["wants", "想要"],
["source", "来源和凭证"]
-], sL = (e) => oL.some(([t]) => t === e);
-function cL({ term: e, figure: t, unit: n }) {
+], QI = (e) => ZI.some(([t]) => t === e);
+function $I({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -46476,23 +46054,23 @@ function cL({ term: e, figure: t, unit: n }) {
})]
});
}
-function W_e(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, B.useState)(sL(e.tab) ? e.tab : "list"), [d, f] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, B.useState)(() => TP(e.sort, e.dir).sort), [h, g] = (0, B.useState)(() => TP(e.sort, e.dir).dir), [_, v] = (0, B.useState)(ihe(e.layout) ? e.layout : "default"), [y, b] = (0, B.useState)(ahe(e.pageSize)), [x, S] = (0, B.useState)(/* @__PURE__ */ new Set()), C = yw({
- queryKey: PP,
- queryFn: ({ signal: e }) => $P(e)
- }), w = yw({
- queryKey: FP,
- queryFn: ({ signal: e }) => eF(e)
- }), T = yw({
- queryKey: IP,
- queryFn: ({ signal: e }) => aF(e)
+function k_e(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, B.useState)(QI(e.tab) ? e.tab : "list"), [d, f] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, B.useState)(() => gP(e.sort, e.dir).sort), [h, g] = (0, B.useState)(() => gP(e.sort, e.dir).dir), [_, v] = (0, B.useState)(Ume(e.layout) ? e.layout : "default"), [y, b] = (0, B.useState)(Wme(e.pageSize)), [x, S] = (0, B.useState)(/* @__PURE__ */ new Set()), C = vw({
+ queryKey: TP,
+ queryFn: ({ signal: e }) => WP(e)
+ }), w = vw({
+ queryKey: EP,
+ queryFn: ({ signal: e }) => GP(e)
+ }), T = vw({
+ queryKey: DP,
+ queryFn: ({ signal: e }) => XP(e)
}), E = C.data || { sources: [] }, D = w.data || {
root: "",
providers: []
}, O = E.sources;
(0, B.useEffect)(() => {
S((e) => {
- let t = dhe(e, O);
+ let t = Xme(e, O);
return t.size === e.size ? e : t;
});
}, [O]);
@@ -46502,10 +46080,10 @@ function W_e(e) {
tab: e.tab ?? l,
page: e.page ?? d,
sort: n === "checked" ? "" : n,
- dir: r === wP[n] ? "" : r
+ dir: r === hP[n] ? "" : r
});
- }, A = YP(O), j = O.filter(VP).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !mF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, U.jsxs)(qk, { children: [
+ }, A = BP(O), j = O.filter(MP).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !aF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, U.jsxs)(Nk, { children: [
o ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
@@ -46520,64 +46098,64 @@ function W_e(e) {
children: s
}) : null,
/* @__PURE__ */ (0, U.jsxs)("div", {
- className: Vfe,
+ className: Efe,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, U.jsx)(cL, {
+ /* @__PURE__ */ (0, U.jsx)($I, {
term: "关注创作者",
figure: A.length,
unit: "位"
}),
- /* @__PURE__ */ (0, U.jsx)(cL, {
+ /* @__PURE__ */ (0, U.jsx)($I, {
term: "启用来源",
figure: M,
unit: `/ ${O.length}`
}),
- /* @__PURE__ */ (0, U.jsx)(cL, {
+ /* @__PURE__ */ (0, U.jsx)($I, {
term: "检查失败",
figure: j,
unit: "个来源"
}),
- /* @__PURE__ */ (0, U.jsx)(cL, {
+ /* @__PURE__ */ (0, U.jsx)($I, {
term: "未看更新",
figure: E.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, U.jsx)(cL, {
+ /* @__PURE__ */ (0, U.jsx)($I, {
term: "JAV 订阅",
figure: ee,
unit: "位"
}),
- /* @__PURE__ */ (0, U.jsx)(cL, {
+ /* @__PURE__ */ (0, U.jsx)($I, {
term: "未看新作",
figure: T.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, U.jsxs)(L_, {
+ /* @__PURE__ */ (0, U.jsxs)(I_, {
selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
- sL(t) && (u(t), k({ tab: t }));
+ QI(t) && (u(t), k({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, U.jsx)(R_, {
+ /* @__PURE__ */ (0, U.jsx)(L_, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: oL.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(z_, {
+ children: ZI.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(R_, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && N ? `${t}(${N})` : t
}, e))
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, U.jsx)(w_e, {
+ children: /* @__PURE__ */ (0, U.jsx)(l_e, {
data: E,
sort: p,
dir: h,
@@ -46607,10 +46185,10 @@ function W_e(e) {
}
})
}),
- /* @__PURE__ */ (0, U.jsxs)(B_, {
+ /* @__PURE__ */ (0, U.jsxs)(z_, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, U.jsx)(bge, {
+ children: [/* @__PURE__ */ (0, U.jsx)(age, {
data: E,
credentials: D,
readOnly: o,
@@ -46618,7 +46196,7 @@ function W_e(e) {
openCredentials: () => {
u("source"), k({ tab: "source" });
}
- }), /* @__PURE__ */ (0, U.jsx)(Cge, {
+ }), /* @__PURE__ */ (0, U.jsx)(cge, {
groups: E.author_aliases || [],
readOnly: o,
toast: r,
@@ -46626,27 +46204,27 @@ function W_e(e) {
sources: E.sources
})]
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, U.jsx)(N_e, {
+ children: /* @__PURE__ */ (0, U.jsx)(v_e, {
readOnly: o,
toast: r
})
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "wants",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, U.jsx)(U_e, {
+ children: /* @__PURE__ */ (0, U.jsx)(O_e, {
readOnly: o,
toast: r,
cloudDownload: a
})
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, U.jsx)(Mge, {
+ children: /* @__PURE__ */ (0, U.jsx)(_ge, {
data: D,
readOnly: o,
toast: r
@@ -46658,23 +46236,23 @@ function W_e(e) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var lL = () => /* @__PURE__ */ (0, U.jsx)("span", {
+var eL = () => /* @__PURE__ */ (0, U.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function G_e({ tag: e, actions: t }) {
+function A_e({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, U.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, U.jsx)(lL, {}),
+ /* @__PURE__ */ (0, U.jsx)(eL, {}),
/* @__PURE__ */ (0, U.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -46686,23 +46264,23 @@ function G_e({ tag: e, actions: t }) {
]
});
}
-function K_e({ groups: e, actions: t }) {
+function j_e({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, U.jsxs)("section", {
"data-alpha-group": r,
- className: bT({
+ className: oT({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, U.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, U.jsx)(UC, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, U.jsx)(HC, { value: n.length })]
}), /* @__PURE__ */ (0, U.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, U.jsx)(G_e, {
+ children: n.map((e) => /* @__PURE__ */ (0, U.jsx)(A_e, {
tag: e,
actions: t
}, e.k))
@@ -46710,8 +46288,8 @@ function K_e({ groups: e, actions: t }) {
}, e))
});
}
-var q_e = "\xA0";
-function J_e({ tags: e, actions: t }) {
+var M_e = "\xA0";
+function N_e({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -46719,11 +46297,11 @@ function J_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 + q_e, /* @__PURE__ */ (0, U.jsx)("span", {
+ children: [e.label + M_e, /* @__PURE__ */ (0, U.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -46731,7 +46309,7 @@ function J_e({ tags: e, actions: t }) {
}, e.k))
});
}
-var Y_e = [[
+var P_e = [[
"cloud",
"标签云",
"tags"
@@ -46740,16 +46318,16 @@ var Y_e = [[
"字母表",
"text-aa"
]];
-function X_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+function F_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
return /* @__PURE__ */ (0, U.jsx)(hr, {
label: "标签筛选",
topLabel: "标签类型",
top: e.map(([e, r]) => /* @__PURE__ */ (0, U.jsxs)(_r, {
"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, U.jsx)(lL, {}), r]
+ children: [/* @__PURE__ */ (0, U.jsx)(eL, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
/* @__PURE__ */ (0, U.jsx)("span", {
@@ -46773,14 +46351,14 @@ function X_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${OC}`,
- children: Y_e.map(([e, t, n]) => {
- let r = jC(n);
+ className: `ml-auto ${DC}`,
+ children: P_e.map(([e, t, n]) => {
+ let r = AC(n);
return /* @__PURE__ */ (0, U.jsx)(ug, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: kC,
+ className: OC,
children: /* @__PURE__ */ (0, U.jsx)("span", {
title: t,
className: "contents",
@@ -46792,13 +46370,13 @@ function X_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function Z_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, U.jsxs)(oD, {
+function I_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, U.jsxs)(KE, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, U.jsx)(bM, {
+ /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, U.jsxs)("span", {
@@ -46830,7 +46408,7 @@ function Z_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var Q_e = [{
+var L_e = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -46838,7 +46416,7 @@ var Q_e = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], uL = [{
+}], tL = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -46846,7 +46424,7 @@ var Q_e = [{
value: "online",
label: "在线",
symbol: "rss"
-}], $_e = {
+}], R_e = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -46866,20 +46444,20 @@ var Q_e = [{
"layout-grid"
]]
};
-function eve({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, U.jsx)(TC, {
- "aria-label": `${dN[e]}索引版式`,
+function z_e({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, U.jsx)(wC, {
+ "aria-label": `${BM[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${EC}`,
- children: $_e[_N(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = jC(n);
+ className: `flex-none max-board-narrow:order-3 ${TC}`,
+ children: R_e[KM(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = AC(n);
return /* @__PURE__ */ (0, U.jsx)(ug, {
value: e,
"aria-label": t,
- className: Wie,
+ className: Gie,
children: /* @__PURE__ */ (0, U.jsx)("span", {
title: t,
className: "contents",
@@ -46889,8 +46467,8 @@ function eve({ kind: e, layout: t, onChange: n }) {
})
});
}
-var tve = jC("search");
-function nve({ label: e, value: t, onQuery: n }) {
+var B_e = AC("search");
+function V_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) => {
@@ -46905,15 +46483,15 @@ function nve({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, U.jsx)(Yk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Fk, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, U.jsx)(Zk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Lk, {
type: "search",
- leadingIcon: tve,
+ leadingIcon: B_e,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -46923,14 +46501,14 @@ function nve({ label: e, value: t, onQuery: n }) {
})
});
}
-function rve(e) {
- let [t, n] = (0, B.useState)(() => vN({
+function H_e(e) {
+ let [t, n] = (0, B.useState)(() => qM({
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: f, scope: p, view: m, category: h } = t, g = dN[u], _ = u === "tags" && p === "online", v = u === "performers" && p === "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: f, scope: p, view: m, category: h } = t, g = BM[u], _ = u === "tags" && p === "online", v = u === "performers" && p === "online";
(0, B.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -46940,7 +46518,7 @@ function rve(e) {
...r
};
b(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, S = SN(yN(t)), C = Cw({
+ }, S = ZM(JM(t)), C = Sw({
queryKey: S.queryKey,
queryFn: ({ pageParam: e, signal: t }) => S.queryFn({
pageParam: e,
@@ -46948,22 +46526,22 @@ function rve(e) {
}),
initialPageParam: 0,
getNextPageParam: S.getNextPageParam,
- placeholderData: y ? ww.keepPreviousData : void 0
- }), w = wN(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = TN(w.length, !!C.hasNextPage);
+ placeholderData: y ? Cw.keepPreviousData : void 0
+ }), w = $M(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = eN(w.length, !!C.hasNextPage);
(0, B.useLayoutEffect)(() => {
l.current && we(l.current);
}, [r]);
let D = (0, B.useMemo)(() => u === "tags" ? w.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [w, u]), O = (0, B.useMemo)(() => u === "tags" && m === "alphabet" ? Tpe(D, (t) => e.tagLabel(t)) : [], [
+ })) : [], [w, u]), O = (0, B.useMemo)(() => u === "tags" && m === "alphabet" ? iN(D, (t) => e.tagLabel(t)) : [], [
D,
m,
u
]), k = (t) => {
i(t), e.savePreference({ layout: t });
- }, A = u === "tags" ? /* @__PURE__ */ (0, U.jsx)(WC, {
- tabs: uL,
+ }, A = u === "tags" ? /* @__PURE__ */ (0, U.jsx)(UC, {
+ tabs: tL,
value: p,
label: "词表",
onChange: (e) => {
@@ -46973,15 +46551,15 @@ function rve(e) {
view: e === "online" ? "alphabet" : m
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, U.jsx)(WC, {
- tabs: uL,
+ }) : u === "performers" ? /* @__PURE__ */ (0, U.jsx)(UC, {
+ tabs: tL,
value: p,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), x({ scope: t });
}
- }) : _N(u) ? /* @__PURE__ */ (0, U.jsx)(WC, {
- tabs: Q_e,
+ }) : KM(u) ? /* @__PURE__ */ (0, U.jsx)(UC, {
+ tabs: L_e,
value: u,
label: "公司类型",
onChange: (e) => x({ kind: e })
@@ -46998,7 +46576,7 @@ function rve(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, M = (_ ? mN : pN).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, M = (_ ? UM : HM).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, U.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -47013,12 +46591,12 @@ function rve(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- gN(u) ? /* @__PURE__ */ (0, U.jsx)("span", {
+ GM(u) ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: C.isPending ? "" : E
}) : null,
- gN(u) ? /* @__PURE__ */ (0, U.jsx)(eve, {
+ GM(u) ? /* @__PURE__ */ (0, U.jsx)(z_e, {
kind: u,
layout: r,
onChange: k
@@ -47027,7 +46605,7 @@ function rve(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, U.jsx)(nve, {
+ /* @__PURE__ */ (0, U.jsx)(V_e, {
label: `过滤${g}`,
value: f,
onQuery: (e) => {
@@ -47037,7 +46615,7 @@ function rve(e) {
]
}),
A,
- u === "tags" ? /* @__PURE__ */ (0, U.jsx)(X_e, {
+ u === "tags" ? /* @__PURE__ */ (0, U.jsx)(F_e, {
categories: M,
category: h,
online: _,
@@ -47062,8 +46640,8 @@ function rve(e) {
mode: m
}) }
});
- if (C.isError) return /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: jC("search"),
+ if (C.isError) return /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: AC("search"),
title: `没能读取${g}`,
actions: /* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
@@ -47072,18 +46650,18 @@ function rve(e) {
}),
children: ce(C.error)
});
- if (!w.length) return /* @__PURE__ */ (0, U.jsx)(ave, {
+ if (!w.length) return /* @__PURE__ */ (0, U.jsx)(W_e, {
kind: u,
filtered: !!f || u === "tags" && h !== "all",
online: _ || v,
configurable: e.configurable
});
- if (v) return /* @__PURE__ */ (0, U.jsx)(Dpe, {
+ if (v) return /* @__PURE__ */ (0, U.jsx)(lN, {
items: w,
layout: r,
props: e
});
- if (gN(u)) return /* @__PURE__ */ (0, U.jsx)(jN, {
+ if (GM(u)) return /* @__PURE__ */ (0, U.jsx)(cN, {
kind: u,
items: w,
layout: r,
@@ -47094,10 +46672,10 @@ function rve(e) {
picked: a,
press: j
};
- return m === "alphabet" ? /* @__PURE__ */ (0, U.jsx)(K_e, {
+ return m === "alphabet" ? /* @__PURE__ */ (0, U.jsx)(j_e, {
groups: O,
actions: t
- }) : /* @__PURE__ */ (0, U.jsx)(J_e, {
+ }) : /* @__PURE__ */ (0, U.jsx)(N_e, {
tags: D,
actions: t
});
@@ -47112,13 +46690,13 @@ function rve(e) {
disabled: C.isFetchingNextPage,
"aria-busy": C.isFetchingNextPage || void 0,
onClick: () => void C.fetchNextPage(),
- children: C.isFetchingNextPage ? /* @__PURE__ */ (0, U.jsx)(jT, {
+ children: C.isFetchingNextPage ? /* @__PURE__ */ (0, U.jsx)(_T, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, U.jsx)(Z_e, {
+ u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, U.jsx)(I_e, {
count: a.size,
match: s,
onMatch: c,
@@ -47131,31 +46709,31 @@ function rve(e) {
]
});
}
-var ive = {
+var U_e = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function ave({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: jC("search"),
+function W_e({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: AC("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, U.jsx)(mT, {
+ actions: /* @__PURE__ */ (0, U.jsx)(eT, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : ive[e], a = /* @__PURE__ */ (0, U.jsx)(mT, {
+ let i = n && e === "performers" ? "创作者" : U_e[e], a = /* @__PURE__ */ (0, U.jsx)(eT, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: jC(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: AC(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [r ? /* @__PURE__ */ (0, U.jsx)(J, {
variant: "primary",
@@ -47165,34 +46743,456 @@ function ave({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
+var nL = {
+ video: ["视频", "play"],
+ image: ["图片", "pics"],
+ archive: ["压缩包", "file-archive"],
+ audio: ["音频", "file-audio"],
+ url: ["网址快捷方式", "globe"],
+ other: ["其它文件", "hard-drive"]
+}, G_e = (e) => nL[e.junk_kind || "other"] || nL.other;
+function K_e(e) {
+ return e === "dismissed" ? {
+ operation: "reconsider-junk",
+ label: "重新判断",
+ glyph: "rotate-ccw"
+ } : {
+ operation: "dismiss-junk",
+ label: "不是垃圾",
+ glyph: "check"
+ };
+}
+var rL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), q_e = (e, t) => [
+ "junk-queue",
+ e.view,
+ e.kind,
+ t
+];
+function J_e({ kind: e, view: t }) {
+ let n = new URLSearchParams({
+ limit: "200",
+ status: t
+ });
+ return e && n.set("kind", e), n.toString();
+}
+async function Y_e(e, t) {
+ let n = await VC(`/api/ads?${J_e(e)}`, t);
+ return {
+ ...n,
+ items: n.items || []
+ };
+}
+//#endregion
+//#region src/react/junk-queue/junk-card.tsx
+function iL({ name: e }) {
+ return /* @__PURE__ */ (0, U.jsx)("svg", {
+ viewBox: "0 0 24 24",
+ "aria-hidden": "true",
+ children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
+ });
+}
+var aL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function X_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] = G_e(e), m = String(e.name || ""), h = K_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(), aL(r, t)) {
+ t.preventDefault(), a.toggleSelection(e.id, t.shiftKey);
+ return;
+ }
+ o.current && a.open(e, o.current);
+ }, b = (t) => {
+ t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
+ }, x = (t) => (n) => {
+ n.preventDefault(), n.stopPropagation(), s !== t && (c(t), u(""), a.operate(e, t).catch(() => {}).finally(() => c("")));
+ }, S = (e) => s === e ? {
+ "aria-busy": !0,
+ "aria-disabled": !0
+ } : {}, C = _ ? /* @__PURE__ */ (0, U.jsx)("button", {
+ type: "button",
+ "data-junk-title": "",
+ "data-junk-open": "",
+ "data-middle-truncate": "",
+ title: m,
+ onClick: y,
+ dangerouslySetInnerHTML: { __html: P(m || "未命名资源") }
+ }) : /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-title": "",
+ "data-middle-truncate": "",
+ title: m,
+ dangerouslySetInnerHTML: { __html: P(m || "未命名资源") }
+ });
+ return /* @__PURE__ */ (0, U.jsxs)("article", {
+ ref: o,
+ "data-media-card": "",
+ "data-variant": "junk",
+ "data-junk-card": "",
+ "data-id": e.id,
+ "data-junk-kind": d,
+ "data-selected": n ? "" : void 0,
+ onClick: v,
+ children: [
+ /* @__PURE__ */ (0, U.jsxs)("div", {
+ "data-media-pic": "",
+ style: { "--card-ratio": "1.7777777777777777" },
+ children: [
+ /* @__PURE__ */ (0, U.jsxs)("span", {
+ "data-media-glyph": "",
+ children: [/* @__PURE__ */ (0, U.jsx)(iL, { name: p }), /* @__PURE__ */ (0, U.jsx)("b", { children: f })]
+ }),
+ g ? /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-media-art": "thumb",
+ dangerouslySetInnerHTML: { __html: `<img class="poster" src="${g}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }
+ }) : null,
+ /* @__PURE__ */ (0, U.jsx)("div", {
+ "data-media-badge": "",
+ dangerouslySetInnerHTML: { __html: i.badgeHtml(e.location || "", e.cost || "") }
+ }),
+ /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-media-check": "",
+ children: /* @__PURE__ */ (0, U.jsx)(iL, { name: "check" })
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, U.jsxs)("div", {
+ "data-junk-meta": "",
+ children: [C, /* @__PURE__ */ (0, U.jsxs)("div", {
+ "data-junk-facts": "",
+ children: [
+ /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-who": "",
+ children: f
+ }),
+ e.why ? /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-why": "",
+ children: e.why
+ }) : null,
+ /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-size": "",
+ children: Number(e.size) > 0 ? I(Number(e.size)) : "大小未知"
+ })
+ ]
+ })]
+ }),
+ /* @__PURE__ */ (0, U.jsxs)("footer", {
+ "data-junk-actions": "",
+ children: [
+ /* @__PURE__ */ (0, U.jsxs)("button", {
+ type: "button",
+ "data-junk-action": "reveal",
+ title: "在资源管理器中显示",
+ "aria-label": "在资源管理器中显示",
+ ...S("reveal"),
+ onClick: b,
+ children: [s === "reveal" ? /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-spinner": "",
+ dangerouslySetInnerHTML: { __html: w("正在定位") }
+ }) : /* @__PURE__ */ (0, U.jsx)(iL, { name: "folder-open" }), /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-label": "",
+ children: "打开位置"
+ })]
+ }),
+ /* @__PURE__ */ (0, U.jsxs)("button", {
+ type: "button",
+ "data-junk-action": h.operation,
+ title: h.label,
+ "aria-label": h.label,
+ ...S(h.operation),
+ onClick: x(h.operation),
+ children: [/* @__PURE__ */ (0, U.jsx)(iL, { name: h.glyph }), /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-label": "",
+ children: h.label
+ })]
+ }),
+ /* @__PURE__ */ (0, U.jsxs)("button", {
+ type: "button",
+ "data-junk-action": "dispose",
+ title: "移入回收站",
+ "aria-label": "移入回收站",
+ ...S("dispose"),
+ onClick: x("dispose"),
+ children: [/* @__PURE__ */ (0, U.jsx)(iL, { name: "trash" }), /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-label": "",
+ children: "移入回收站"
+ })]
+ }),
+ /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-junk-state": "",
+ "aria-live": "polite",
+ children: l
+ })
+ ]
+ })
+ ]
+ });
+}
+var Z_e = (0, B.memo)(X_e), oL = [
+ [
+ "",
+ "全部",
+ "layout-grid"
+ ],
+ [
+ "video",
+ "视频",
+ "play"
+ ],
+ [
+ "image",
+ "图片",
+ "pics"
+ ],
+ [
+ "archive",
+ "压缩包",
+ "file-archive"
+ ],
+ [
+ "audio",
+ "音频",
+ "file-audio"
+ ],
+ [
+ "url",
+ "网址",
+ "globe"
+ ],
+ [
+ "other",
+ "其它",
+ "hard-drive"
+ ]
+];
+function sL(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 Q_e(e) {
+ return e === "dismissed" ? {
+ view: "pending",
+ label: "返回待判断",
+ glyph: "rotate-ccw",
+ href: sL("", "pending")
+ } : {
+ view: "dismissed",
+ label: "已排除",
+ glyph: "eye-off",
+ href: sL("", "dismissed")
+ };
+}
+var $_e = (e) => e === "dismissed" ? "已排除" : "待判断";
+//#endregion
+//#region src/react/junk-queue/junk-count.tsx
+function cL({ name: e }) {
+ return /* @__PURE__ */ (0, U.jsx)("svg", {
+ viewBox: "0 0 24 24",
+ "aria-hidden": "true",
+ children: /* @__PURE__ */ (0, U.jsx)("use", { href: `#i-${e}` })
+ });
+}
+function lL({ scope: e, count: t }) {
+ return t ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [" ", /* @__PURE__ */ (0, U.jsx)("span", {
+ "data-count-badge": `junk:${e}`,
+ children: t.toLocaleString()
+ })] }) : null;
+}
+function eve({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = fT(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = xr(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? oL.map(([e]) => rL(t, e)).join(",") : ""}`), l = Q_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") || sL()));
+ }, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
+ return /* @__PURE__ */ (0, U.jsxs)("div", {
+ "data-junk-count": "",
+ children: [/* @__PURE__ */ (0, U.jsx)("div", {
+ "data-junk-summary": "",
+ "aria-live": "polite",
+ children: /* @__PURE__ */ (0, U.jsx)(lP, {
+ label: $_e(s),
+ figure: d,
+ pending: !t && !n,
+ flush: !0
+ })
+ }), /* @__PURE__ */ (0, U.jsxs)("div", {
+ "data-junk-filters-frame": "",
+ "data-filter-glass": "",
+ "data-glass-pane": "",
+ children: [/* @__PURE__ */ (0, U.jsx)("span", {
+ ref: a,
+ "data-view-glide": "",
+ "aria-hidden": "true"
+ }), /* @__PURE__ */ (0, U.jsxs)("nav", {
+ ref: i,
+ "data-junk-filters": "",
+ "aria-label": "垃圾文件分类",
+ onClick: u,
+ onPointerLeave: c.leave,
+ children: [
+ oL.map(([e, n, r]) => /* @__PURE__ */ (0, U.jsxs)("a", {
+ href: sL(e, s),
+ "data-junk-kind-link": e,
+ "aria-current": e === o ? "page" : void 0,
+ onPointerEnter: c.hover,
+ children: [
+ /* @__PURE__ */ (0, U.jsx)(cL, { name: r }),
+ n,
+ /* @__PURE__ */ (0, U.jsx)(lL, {
+ scope: e,
+ count: t ? rL(t, e) : 0
+ })
+ ]
+ }, e || "all")),
+ /* @__PURE__ */ (0, U.jsx)("i", {
+ "data-junk-divider": "",
+ "aria-hidden": "true"
+ }),
+ /* @__PURE__ */ (0, U.jsxs)("a", {
+ href: l.href,
+ "data-junk-view-link": l.view,
+ "aria-current": s === "dismissed" ? "page" : void 0,
+ onPointerEnter: s === "dismissed" ? void 0 : c.hover,
+ children: [
+ /* @__PURE__ */ (0, U.jsx)(cL, { name: l.glyph }),
+ l.label,
+ /* @__PURE__ */ (0, U.jsx)(lL, {
+ scope: "dismissed",
+ count: Number(t?.dismissed_total || 0)
+ })
+ ]
+ })
+ ]
+ })]
+ })]
+ });
+}
+//#endregion
+//#region src/react/junk-queue/junk-queue-page.tsx
+var tve = AC("check"), nve = (e, t) => e[1] === t.view && e[2] === t.kind;
+function rve(e) {
+ let t = {
+ kind: e.kind,
+ view: e.view
+ }, n = vw({
+ queryKey: q_e(t, e.revision),
+ queryFn: ({ signal: e }) => Y_e(t, e),
+ placeholderData: (e, n) => n && nve(n.queryKey, t) ? e : void 0
+ });
+ (0, B.useEffect)(() => {
+ n.isFetching || e.settled?.(e.revision);
+ }, [n.isFetching, e.revision]);
+ let r = ive(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 && h(r, "junk");
+ }, [r, n.data]);
+ let { navigate: a } = e.actions, o = r ? (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)(eve, {
+ route: t,
+ page: n.data,
+ failed: n.isError && !n.data,
+ onNavigate: a
+ }), r) : null;
+ return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [o, /* @__PURE__ */ (0, U.jsx)(ave, {
+ props: e,
+ data: n.data,
+ pending: i,
+ error: n.data ? null : n.error,
+ retry: () => void n.refetch()
+ }, `${t.view}:${t.kind}`)] });
+}
+function ive(e) {
+ let [t, n] = (0, B.useState)(null);
+ return (0, B.useLayoutEffect)(() => {
+ if (!e) return;
+ let t = e.ownerDocument.createElement("div");
+ return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
+ t.remove(), n(null);
+ };
+ }, [e]), t;
+}
+function ave({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = oA(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, U.jsxs)("div", {
+ "data-junk-body": "",
+ "data-grid-reveal": a.fading ? "" : void 0,
+ children: [a.layer, (() => {
+ if (n) return null;
+ if (!t) return /* @__PURE__ */ (0, U.jsx)(sA, {
+ message: ce(r),
+ onRetry: i
+ });
+ if (!l.length) {
+ let t = e.view === "dismissed";
+ return /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: tve,
+ title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
+ children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
+ });
+ }
+ return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("div", {
+ "data-media-grid": "",
+ "data-junk-grid": "",
+ "data-select-mode": e.selectMode ? "" : void 0,
+ children: u.map((t) => /* @__PURE__ */ (0, U.jsx)(Z_e, {
+ item: t,
+ view: e.view,
+ selected: e.selected.has(t.id),
+ selectMode: e.selectMode,
+ helpers: e.helpers,
+ actions: e.actions
+ }, t.id))
+ }), u.length < l.length ? /* @__PURE__ */ (0, U.jsx)(ove, { onMore: f }, s) : null] });
+ })()]
+ });
+}
+function ove({ onMore: e }) {
+ let t = (0, B.useRef)(null);
+ return (0, B.useEffect)(() => {
+ let n = t.current;
+ if (!n || typeof IntersectionObserver > "u") return;
+ let r = new IntersectionObserver((t) => {
+ t.some((e) => e.isIntersecting) && e();
+ }, { rootMargin: "320px" });
+ return r.observe(n), () => r.disconnect();
+ }, [e]), /* @__PURE__ */ (0, U.jsx)("div", {
+ ref: t,
+ "data-load-more": "",
+ onClick: e,
+ dangerouslySetInnerHTML: { __html: f("继续载入中…") }
+ });
+}
//#endregion
//#region src/react/playlists/playlists.ts
-var ove = "/api/playlists", dL = "/api/playlist", fL = ["playlists"], pL = (e) => HC(ove, e);
-async function sve(e) {
+var sve = "/api/playlists", uL = "/api/playlist", dL = ["playlists"], fL = (e) => VC(sve, e);
+async function cve(e) {
await z.fetchQuery({
- queryKey: fL,
- queryFn: () => pL(e),
+ queryKey: dL,
+ queryFn: () => fL(e),
staleTime: 0
});
}
-var mL = () => z.invalidateQueries({
- queryKey: fL,
+var pL = () => z.invalidateQueries({
+ queryKey: dL,
exact: !0
-}), cve = (e) => e.current_asset_id || e.preview_asset_id || null, hL = (e) => `/poster?id=${e}&c=4`, lve = (e) => q(dL, {
+}), lve = (e) => e.current_asset_id || e.preview_asset_id || null, mL = (e) => `/poster?id=${e}&c=4`, uve = (e) => q(uL, {
action: "create",
name: e,
asset_ids: []
-}), gL = (e, t) => q(dL, {
+}), hL = (e, t) => q(uL, {
action: "rename",
id: e,
name: t
-}), _L = (e) => q(dL, {
+}), gL = (e) => q(uL, {
action: "delete",
id: e
-}), uve = (e) => HC(`${dL}?id=${e}`).catch(() => null);
-function dve(e) {
+}), dve = (e) => VC(`${uL}?id=${e}`).catch(() => null);
+function fve(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return q(dL, {
+ return q(uL, {
action: "create",
name: e.name,
asset_ids: t,
@@ -47202,18 +47202,18 @@ function dve(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var fve = jC("ellipsis"), pve = jC("pencil"), mve = jC("trash"), hve = jC("playlist"), vL = ur(vT, yT, "text-body-2-medium"), yL = "播放列表名称不能为空", bL = (e) => async () => {
+var pve = AC("ellipsis"), mve = AC("pencil"), hve = AC("trash"), gve = AC("playlist"), _L = ur(iT, aT, "text-body-2-medium"), vL = "播放列表名称不能为空", yL = (e) => async () => {
try {
await e();
} finally {
- mL();
+ pL();
}
};
-function gve({ toast: e }) {
- let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = Sw({
- mutationFn: (e) => lve(e),
+function _ve({ toast: e }) {
+ let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = xw({
+ mutationFn: (e) => uve(e),
onSuccess: (t) => {
- n(""), i(""), mL(), e("已新建播放列表", { undo: bL(() => _L(t.playlist.id)) });
+ n(""), i(""), pL(), e("已新建播放列表", { undo: yL(() => gL(t.playlist.id)) });
},
onError: (e) => i(K(e) || "新建失败")
});
@@ -47223,7 +47223,7 @@ function gve({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(yL);
+ i(vL);
return;
}
a.mutate(t);
@@ -47232,7 +47232,7 @@ function gve({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, U.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, U.jsx)(Qk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -47251,7 +47251,7 @@ function gve({ toast: e }) {
})]
});
}
-function _ve({ target: e, close: t, toast: n }) {
+function vve({ 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;
@@ -47261,14 +47261,14 @@ function _ve({ target: e, close: t, toast: n }) {
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = Sw({
- mutationFn: ({ row: e, value: t }) => gL(e.id, t),
+ let c = xw({
+ mutationFn: ({ row: e, value: t }) => hL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), mL(), n("已重命名播放列表", { undo: bL(() => gL(r.id, r.name)) });
+ t(), pL(), n("已重命名播放列表", { undo: yL(() => hL(r.id, r.name)) });
},
onError: (e) => o(K(e))
});
- return /* @__PURE__ */ (0, U.jsx)(ZN, {
+ return /* @__PURE__ */ (0, U.jsx)(VN, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -47280,7 +47280,7 @@ function _ve({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(yL);
+ o(vL);
return;
}
c.mutate({
@@ -47295,7 +47295,7 @@ function _ve({ target: e, close: t, toast: n }) {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, U.jsx)(Qk, {
+ }), /* @__PURE__ */ (0, U.jsx)(Rk, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -47323,7 +47323,7 @@ function _ve({ target: e, close: t, toast: n }) {
})
});
}
-function vve({ name: e, onRename: t, onDelete: n }) {
+function yve({ name: e, onRename: t, onDelete: n }) {
let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -47337,7 +47337,7 @@ function vve({ 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, U.jsx)(fve, {
+ children: /* @__PURE__ */ (0, U.jsx)(pve, {
"aria-hidden": !0,
className: "size-4.5"
})
@@ -47347,23 +47347,23 @@ function vve({ name: e, onRename: t, onDelete: n }) {
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: _T,
- children: /* @__PURE__ */ (0, U.jsxs)(fT, {
+ className: rT,
+ children: /* @__PURE__ */ (0, U.jsxs)(Qw, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
- className: vL,
+ className: _L,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, U.jsx)(pve, {
+ children: [/* @__PURE__ */ (0, U.jsx)(mve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
- className: vL,
+ className: _L,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, U.jsx)(mve, {
+ children: [/* @__PURE__ */ (0, U.jsx)(hve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -47371,13 +47371,13 @@ function vve({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: i, revision: a }) {
- let o = yw({
- queryKey: fL,
- queryFn: ({ signal: e }) => pL(e)
+function bve({ openPlaylist: e, openEntity: t, canFlip: n, toast: i, revision: a }) {
+ let o = vw({
+ queryKey: dL,
+ queryFn: ({ signal: e }) => fL(e)
}), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(a);
(0, B.useEffect)(() => {
- l.current !== a && (l.current = a, mL());
+ l.current !== a && (l.current = a, pL());
}, [a]);
let u = o.data;
if (!u) return /* @__PURE__ */ (0, U.jsx)("div", {
@@ -47395,8 +47395,8 @@ function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: i, revision: a
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await uve(e.id);
- await _L(e.id), mL(), i("已删除播放列表", t ? { undo: bL(() => dve(t)) } : void 0);
+ let t = await dve(e.id);
+ await gL(e.id), pL(), i("已删除播放列表", t ? { undo: yL(() => fve(t)) } : void 0);
}
});
};
@@ -47411,38 +47411,38 @@ function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: i, revision: a
}), /* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, U.jsx)(gve, { toast: i })]
+ })] }), /* @__PURE__ */ (0, U.jsx)(_ve, { toast: i })]
}),
d.length ? /* @__PURE__ */ (0, U.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: d.map((r) => {
- let i = cve(r);
- return /* @__PURE__ */ (0, U.jsx)(LA, {
+ let i = lve(r);
+ return /* @__PURE__ */ (0, U.jsx)(DA, {
"data-playlist-card": String(r.id),
name: r.name,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: r.item_count,
- poster: r.preview_asset_id ? hL(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(hL),
+ poster: r.preview_asset_id ? mL(r.preview_asset_id) : null,
+ flipImages: async () => (r.preview_ids || []).map(mL),
canFlip: n,
faces: r.faces || [],
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${r.name}`,
- menu: /* @__PURE__ */ (0, U.jsx)(vve, {
+ menu: /* @__PURE__ */ (0, U.jsx)(yve, {
name: r.name,
onRename: () => c(r),
onDelete: () => f(r)
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: hve,
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: gve,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, U.jsx)(_ve, {
+ /* @__PURE__ */ (0, U.jsx)(vve, {
target: s,
close: () => c(null),
toast: i
@@ -47452,11 +47452,11 @@ function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: i, revision: a
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function bve({ item: e, openItem: t, javTitleHtml: n, javDisplayName: r, srcBadge: i }) {
+function xve({ item: e, openItem: t, javTitleHtml: n, javDisplayName: r, srcBadge: i }) {
let a = () => t(e.id);
return /* @__PURE__ */ (0, U.jsxs)("li", {
"data-goal-id": e.id,
- className: bT({
+ className: oT({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -47472,7 +47472,7 @@ function bve({ item: e, openItem: t, javTitleHtml: n, javDisplayName: r, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, U.jsx)("img", {
- src: jde(e),
+ src: gde(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -47520,38 +47520,38 @@ function bve({ item: e, openItem: t, javTitleHtml: n, javDisplayName: r, srcBadg
})]
});
}
-function xve(e) {
- let t = yw({
- queryKey: nj,
- queryFn: ({ signal: e }) => rj(e)
+function Sve(e) {
+ let t = vw({
+ queryKey: KA,
+ queryFn: ({ signal: e }) => qA(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, U.jsx)(qk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, U.jsx)(Nk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "高清版目标读取失败",
children: t.error ? K(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, U.jsxs)(qk, { children: [/* @__PURE__ */ (0, U.jsx)(Fw, {
+ return r.length ? /* @__PURE__ */ (0, U.jsxs)(Nk, { children: [/* @__PURE__ */ (0, U.jsx)(lP, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
}), /* @__PURE__ */ (0, U.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, U.jsx)(bve, {
+ children: r.map((t) => /* @__PURE__ */ (0, U.jsx)(xve, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, U.jsx)(qk, { children: /* @__PURE__ */ (0, U.jsx)(Ew, {
+ })] }) : /* @__PURE__ */ (0, U.jsx)(Nk, { children: /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: Toe,
+ icon: loe,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-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 = Hde(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+function Cve(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 = Dde(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -47559,29 +47559,29 @@ function Sve(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, U.jsx)(eA, {
+ /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, U.jsxs)(eA, {
+ i.length > 1 ? /* @__PURE__ */ (0, U.jsxs)(Bk, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, U.jsx)(tA, {
+ children: [/* @__PURE__ */ (0, U.jsx)(Vk, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ }), i.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -47589,7 +47589,7 @@ function Sve(e) {
/* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Zw,
+ leadingIcon: Lw,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -47600,12 +47600,12 @@ function Sve(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, U.jsxs)(oD, {
+ }), /* @__PURE__ */ (0, U.jsxs)(KE, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, U.jsxs)(eA, {
+ b ? /* @__PURE__ */ (0, U.jsxs)(Bk, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -47613,10 +47613,10 @@ function Sve(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, U.jsx)(tA, {
+ children: [/* @__PURE__ */ (0, U.jsx)(Vk, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ }), y.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: e
}, e))]
@@ -47652,7 +47652,7 @@ function Sve(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Cve = {
+var wve = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -47662,14 +47662,14 @@ var Cve = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, xL = "reviewgenretags";
-function wve({ tags: e }) {
+}, bL = "reviewgenretags";
+function Tve({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, U.jsx)("datalist", {
- id: xL,
+ id: bL,
children: e.map((e) => /* @__PURE__ */ (0, U.jsx)("option", { value: e }, e))
}) : null;
}
-function SL({ candidate: e, selectable: t = !1 }) {
+function xL({ 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, U.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -47706,7 +47706,7 @@ function SL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, U.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Cve[e] || e
+ children: wve[e] || e
}),
/* @__PURE__ */ (0, U.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -47721,11 +47721,11 @@ function SL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Tve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Eve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, U.jsx)(SL, { candidate: a[0] })
+ children: /* @__PURE__ */ (0, U.jsx)(xL, { candidate: a[0] })
}) : /* @__PURE__ */ (0, U.jsx)(lg, {
"aria-label": `${t || "候选"}的来源`,
value: n,
@@ -47735,22 +47735,22 @@ function Tve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
children: a.map((e) => /* @__PURE__ */ (0, U.jsx)(ug, {
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, U.jsx)(SL, {
+ children: /* @__PURE__ */ (0, U.jsx)(xL, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function Eve({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = Sw({
- mutationFn: (t) => Xde(e, t),
+function Dve({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = xw({
+ mutationFn: (t) => Fde(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Qde();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Lde();
},
onError: (e) => s(K(e))
}), l = () => {
@@ -47769,16 +47769,16 @@ function Eve({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, U.jsx)(Yk, {
+ /* @__PURE__ */ (0, U.jsx)(Fk, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, U.jsx)(Zk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Lk, {
size: "small",
- list: t.length ? xL : void 0,
+ list: t.length ? bL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -47810,8 +47810,8 @@ function Eve({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Dve({ row: e, tags: t, locked: n, toast: r }) {
- let i = qde(e);
+function Ove({ row: e, tags: t, locked: n, toast: r }) {
+ let i = Mde(e);
return i.length ? /* @__PURE__ */ (0, U.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -47819,7 +47819,7 @@ function Dve({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, U.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, U.jsx)(Eve, {
+ }), i.map((e) => /* @__PURE__ */ (0, U.jsx)(Dve, {
genre: e,
tags: t,
locked: n,
@@ -47829,9 +47829,9 @@ function Dve({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var CL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Ove = (e = "") => CL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function wL({ url: e }) {
- let t = Ove(e || ""), [n, r] = (0, B.useState)(!1);
+var SL = (e = "") => /^https?:\/\//i.test(e) ? e : "", kve = (e = "") => SL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function CL({ url: e }) {
+ let t = kve(e || ""), [n, r] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, U.jsx)("img", {
@@ -47846,7 +47846,7 @@ function wL({ url: e }) {
})
});
}
-function TL({ asset: e, openItem: t }) {
+function wL({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -47872,21 +47872,21 @@ function TL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: yoe,
+ leadingIcon: roe,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function kve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Ave({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, U.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 ${qI}`,
+ 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 ${RI}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -47902,8 +47902,8 @@ function kve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Ave({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = CL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function jve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = SL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, U.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -47913,10 +47913,10 @@ function Ave({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, U.jsx)(mT, {
+ children: [o ? /* @__PURE__ */ (0, U.jsx)(eT, {
variant: "secondary",
size: "small",
- trailingIcon: nT,
+ trailingIcon: Hw,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -47928,7 +47928,7 @@ function Ave({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, U.jsx)(wL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, U.jsx)(CL, { url: e.preview_url }),
/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -47971,7 +47971,7 @@ function Ave({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function jve({ assets: e, picked: t, onPicked: n, locked: r }) {
+function Mve({ 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);
@@ -48027,7 +48027,7 @@ function jve({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, U.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, U.jsx)(yM, {
+ children: /* @__PURE__ */ (0, U.jsx)(lM, {
size: "sm",
state: {
isSelected: n,
@@ -48047,19 +48047,19 @@ function jve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Mve = bT({
+var Nve = oT({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), EL = "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 = Iw(), h = Iw(), g = t === "metadata_fields", _ = Rde[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Wde(t, n), x = mj(t, n), S = pj(t, n), C = Gde(n), w = Kde(n), T = fj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, U.jsx)("div", {
+}), TL = "flex min-h-6 min-w-0 items-center", Pve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Fve(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 = fT(), h = fT(), g = t === "metadata_fields", _ = Cde[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = kde(t, n), x = ij(t, n), S = rj(t, n), C = Ade(n), w = jde(n), T = nj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, U.jsx)(TL, {
+ children: E.map((e) => /* @__PURE__ */ (0, U.jsx)(wL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, U.jsx)(kve, {
+ }) : y ? /* @__PURE__ */ (0, U.jsx)(Ave, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -48070,14 +48070,14 @@ function Pve(e) {
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, U.jsx)(TL, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, U.jsx)(wL, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, U.jsx)(Tve, {
+ }) : null, A = g ? /* @__PURE__ */ (0, U.jsx)(Eve, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -48086,7 +48086,7 @@ function Pve(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, U.jsx)(jve, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, U.jsx)(Mve, {
assets: D,
picked: r.assets,
locked: s,
@@ -48094,21 +48094,21 @@ function Pve(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "inset",
- icon: moe,
+ icon: Qae,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, U.jsx)(Ave, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, U.jsx)(jve, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, U.jsx)(wL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, U.jsxs)("h4", {
- className: `${EL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, U.jsx)(Kk, {
+ }) : /* @__PURE__ */ (0, U.jsx)(CL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, U.jsxs)("h4", {
+ className: `${TL} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "blue",
children: x
@@ -48118,7 +48118,7 @@ function Pve(e) {
children: S
})]
}) : /* @__PURE__ */ (0, U.jsx)("h4", {
- className: EL,
+ className: TL,
children: /* @__PURE__ */ (0, U.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -48128,20 +48128,20 @@ function Pve(e) {
return /* @__PURE__ */ (0, U.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Mve} ${Nve(t)} overflow-hidden`,
+ className: `${Nve} ${Pve(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, U.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, U.jsx)("span", {
- className: `${EL} shrink-0`,
+ className: `${TL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, U.jsx)(bM, {
+ children: /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -48151,7 +48151,7 @@ function Pve(e) {
className: "min-w-0 flex-1",
children: j
}),
- O ? /* @__PURE__ */ (0, U.jsx)(Kk, {
+ O ? /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -48175,7 +48175,7 @@ function Pve(e) {
!y && k ? k : null,
w.length || t === "creator_tags" ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, U.jsx)(Kk, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, U.jsx)(jk, {
variant: "caption",
color: "soft",
children: e
@@ -48185,7 +48185,7 @@ function Pve(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, U.jsx)(Dve, {
+ /* @__PURE__ */ (0, U.jsx)(Ove, {
row: n,
tags: u,
locked: s,
@@ -48247,8 +48247,8 @@ function Pve(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Fve = "flex cursor-pointer items-center justify-between gap-2";
-function Ive({ page: e, pages: t, onPage: n }) {
+var Ive = "flex cursor-pointer items-center justify-between gap-2";
+function Lve({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, U.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -48262,7 +48262,7 @@ function Ive({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, U.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: ij(e, t).map((t, r) => /* @__PURE__ */ (0, U.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, U.jsx)("span", {
+ children: JA(e, t).map((t, r) => /* @__PURE__ */ (0, U.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, U.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -48285,48 +48285,48 @@ function Ive({ page: e, pages: t, onPage: n }) {
]
});
}
-function Lve(e) {
+function Rve(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)(uj(e.category) ? e.category : Lde), [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)(ej(e.category) ? e.category : Sde), [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 = yw({
- queryKey: cj,
- queryFn: ({ signal: e }) => gj(e)
+ let N = vw({
+ queryKey: QA,
+ queryFn: ({ signal: e }) => oj(e)
}).data || {
sections: {},
counts: {}
- }, ee = N.sections[d] || [], te = d === "metadata_fields", P = c, F = zde(ee, te), ne = F.some(([e]) => e === p) ? p : "candidates", I = dj(ee, ne), re = I.some((e) => e.key === h) ? h : "", L = Vde(Bde(ee, ne, re), _), ie = L.rows.map((e) => e.item_key), ae = new Set(ie), oe = I.map((e) => ({
+ }, ee = N.sections[d] || [], te = d === "metadata_fields", P = c, F = wde(ee, te), ne = F.some(([e]) => e === p) ? p : "candidates", I = tj(ee, ne), re = I.some((e) => e.key === h) ? h : "", L = Ede(Tde(ee, ne, re), _), ie = L.rows.map((e) => e.item_key), ae = new Set(ie), oe = I.map((e) => ({
...e,
rows: e.rows.filter((e) => ae.has(e.item_key))
- })).filter((e) => e.rows.length), se = (e) => x.get(e.item_key) || Jde(e), ce = ee.filter((e) => y.has(e.item_key)), le = (e) => {
+ })).filter((e) => e.rows.length), se = (e) => x.get(e.item_key) || Nde(e), ce = ee.filter((e) => y.has(e.item_key)), le = (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))));
}, R = (e, t) => w((n) => new Map(n).set(e, t)), ue = (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 });
- }, de = Sw({
- mutationFn: ({ row: e, status: t }) => _j(hj(d, e, t, se(e))),
+ }, de = xw({
+ mutationFn: ({ row: e, status: t }) => sj(aj(d, e, t, se(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
R(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- vj(d, [t.item_key]), le([t.item_key]), s(Yde(n));
+ cj(d, [t.item_key]), le([t.item_key]), s(Pde(n));
},
onError: (e, { row: t }) => R(t.item_key, K(e))
- }), fe = Sw({
+ }), fe = xw({
mutationFn: async (e) => {
let t = ce, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!M.current) break;
E(`正在处理 ${i} / ${t.length}`);
try {
- let t = await _j(hj(d, a, e, se(a)));
+ let t = await sj(aj(d, a, e, se(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -48340,7 +48340,7 @@ function Lve(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- vj(d, t), le(t), n.forEach(([e, t]) => R(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ cj(d, t), le(t), n.forEach(([e, t]) => R(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
E(K(e));
@@ -48370,7 +48370,7 @@ function Lve(e) {
k(e), j("");
let t = await o(e);
M.current && (k(0), j(t));
- }, ge = $de(N.mirror, l), _e = N.genre_tags || [], ve = {
+ }, ge = Rde(N.mirror, l), _e = N.genre_tags || [], ve = {
openItem: i,
openEntity: a,
onReveal: he,
@@ -48378,7 +48378,7 @@ function Lve(e) {
revealNote: A,
toast: s
};
- return /* @__PURE__ */ (0, U.jsx)(qk, { children: /* @__PURE__ */ (0, U.jsxs)("div", {
+ return /* @__PURE__ */ (0, U.jsx)(Nk, { children: /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
P ? /* @__PURE__ */ (0, U.jsx)(Y, {
@@ -48394,13 +48394,13 @@ function Lve(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, U.jsx)(wve, { tags: _e }),
- /* @__PURE__ */ (0, U.jsxs)(L_, {
+ /* @__PURE__ */ (0, U.jsx)(Tve, { tags: _e }),
+ /* @__PURE__ */ (0, U.jsxs)(I_, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- uj(t) && ue(t);
+ ej(t) && ue(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
@@ -48409,27 +48409,27 @@ function Lve(e) {
children: [/* @__PURE__ */ (0, U.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, U.jsx)(R_, {
+ }), /* @__PURE__ */ (0, U.jsx)(L_, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: Ide.map((e) => {
+ children: xde.map((e) => {
let t = Number(N.counts[e] || 0);
- return /* @__PURE__ */ (0, U.jsxs)(z_, {
+ return /* @__PURE__ */ (0, U.jsxs)(R_, {
id: e,
- className: Fve,
- children: [lj[e], t ? /* @__PURE__ */ (0, U.jsx)("span", {
+ className: Ive,
+ children: [$A[e], t ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, U.jsxs)(B_, {
+ }), /* @__PURE__ */ (0, U.jsxs)(z_, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ee.length && !P ? /* @__PURE__ */ (0, U.jsx)(Sve, {
+ ee.length && !P ? /* @__PURE__ */ (0, U.jsx)(Cve, {
groupOptions: F,
groupBy: ne,
onGroupBy: (e) => {
@@ -48445,7 +48445,7 @@ function Lve(e) {
onSelected: b,
selectedRows: ce,
metadata: te,
- approvable: ce.every((e) => fj(d, e)),
+ approvable: ce.every((e) => nj(d, e)),
busy: fe.isPending,
feedback: T,
onUnifySource: me,
@@ -48470,7 +48470,7 @@ function Lve(e) {
})]
}) : null, /* @__PURE__ */ (0, U.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, U.jsx)(Pve, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, U.jsx)(Fve, {
category: d,
row: e,
choice: se(e),
@@ -48478,7 +48478,7 @@ function Lve(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => b((r) => {
let i = new Set(r);
- return D.current = Ude(i, ie, D.current, e.item_key, t, n), i;
+ return D.current = Ode(i, ie, D.current, e.item_key, t, n), i;
}),
locked: P,
busy: de.isPending && de.variables?.row.item_key === e.item_key,
@@ -48493,12 +48493,12 @@ function Lve(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, U.jsx)(Ew, {
- icon: uoe,
+ }, e.key)) : /* @__PURE__ */ (0, U.jsx)(Mk, {
+ icon: Jae,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, U.jsx)(Ive, {
+ /* @__PURE__ */ (0, U.jsx)(Lve, {
page: L.page,
pages: L.pages,
onPage: v
@@ -48511,9 +48511,13 @@ function Lve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Rve = "/api/scraping", zve = "/api/scraping/settings", Bve = "/api/scraping/check", DL = "/api/scraping/cover", Vve = "/api/scraping/amane-bridge", Hve = "/api/scraping/amane-bridge/check", Uve = "/api/scraping/amane-bridge/rebuild", OL = ["scraping"], kL = ["scraping", "cover"], AL = ["scraping", "amane-bridge"], jL = (e) => HC(Rve, e), ML = (e) => HC(DL, e), NL = (e) => HC(Vve, e);
-async function Wve(e) {
+var zve = "/api/scraping", Bve = "/api/scraping/settings", Vve = "/api/scraping/check", EL = "/api/scraping/cover", Hve = "/api/scraping/amane-bridge", Uve = "/api/scraping/amane-bridge/check", Wve = "/api/scraping/amane-bridge/rebuild", DL = ["scraping"], OL = ["scraping", "cover"], kL = ["scraping", "amane-bridge"], AL = (e) => VC(zve, e), jL = (e) => VC(EL, e), ML = (e) => VC(Hve, e);
+async function Gve(e) {
await Promise.all([
+ z.fetchQuery({
+ queryKey: DL,
+ queryFn: () => AL(e)
+ }),
z.fetchQuery({
queryKey: OL,
queryFn: () => jL(e)
@@ -48521,20 +48525,16 @@ async function Wve(e) {
z.fetchQuery({
queryKey: kL,
queryFn: () => ML(e)
- }),
- z.fetchQuery({
- queryKey: AL,
- queryFn: () => NL(e)
})
]);
}
-function Gve(e, t) {
+function Kve(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 Kve = [["peach", "Peach 代理"], ["direct", "直接连接"]], PL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function FL({ source: e }) {
+var qve = [["peach", "Peach 代理"], ["direct", "直接连接"]], NL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function PL({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -48552,16 +48552,16 @@ function FL({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function qve() {
- return /* @__PURE__ */ (0, U.jsx)(FL, { source: "github" });
+function Jve() {
+ return /* @__PURE__ */ (0, U.jsx)(PL, { source: "github" });
}
-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)(PL[0][0]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = (0, B.useRef)(null);
+function Yve({ 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)(NL[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 = Sw({
- mutationFn: (t) => q(zve, {
+ let g = xw({
+ mutationFn: (t) => q(Bve, {
source: e.source,
network: n,
cookie: i,
@@ -48569,12 +48569,12 @@ function Jve({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- z.setQueryData(OL, (t) => t && {
+ z.setQueryData(DL, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Sw({ mutationFn: () => q(Bve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = xw({ mutationFn: () => q(Vve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -48599,40 +48599,40 @@ function Jve({ source: e, toast: t }) {
}
}
let C = f || (g.error ? K(g.error) : "") || (_.error ? K(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, U.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, U.jsx)(FL, { source: e.source }), /* @__PURE__ */ (0, U.jsx)(GT, {
+ children: [/* @__PURE__ */ (0, U.jsx)(PL, { source: e.source }), /* @__PURE__ */ (0, U.jsx)(jT, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, U.jsx)(zT, { children: /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(TT, { children: /* @__PURE__ */ (0, U.jsx)(CT, {
label: "连接方式",
- children: /* @__PURE__ */ (0, U.jsx)(eA, {
+ children: /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Kve.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: qve.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, U.jsxs)(BT, {
+ T ? /* @__PURE__ */ (0, U.jsxs)(ET, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, U.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, U.jsx)(gT, {
+ children: /* @__PURE__ */ (0, U.jsx)(nT, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: Jw,
+ trailingIcon: Pw,
children: "配置 Peach 代理"
})
}) : null,
@@ -48645,20 +48645,20 @@ function Jve({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, U.jsx)(TC, {
+ /* @__PURE__ */ (0, U.jsx)(wC, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: EC,
- children: PL.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(ug, {
+ className: TC,
+ children: NL.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(ug, {
value: e,
- className: DC,
+ className: EC,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, U.jsx)(Qk, {
+ c === "paste" ? /* @__PURE__ */ (0, U.jsx)(Rk, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -48667,7 +48667,7 @@ function Jve({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(WT, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, U.jsx)(AT, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, U.jsx)(J, {
@@ -48693,14 +48693,14 @@ function Jve({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, U.jsx)(UT, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, U.jsx)(kT, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, U.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: Gve(t, e.label)
+ children: Kve(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, U.jsxs)(VT, { children: [
+ /* @__PURE__ */ (0, U.jsxs)(DT, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
onClick: b,
@@ -48722,26 +48722,26 @@ function Jve({ source: e, toast: t }) {
]
});
}
-function Yve({ toast: e }) {
- let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = gM({
- queryKey: kL,
- queryFn: ({ signal: e }) => ML(e),
- start: () => q(DL, { code: t }),
+function Xve({ toast: e }) {
+ let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = oM({
+ queryKey: OL,
+ queryFn: ({ signal: e }) => jL(e),
+ start: () => q(EL, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? K(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, U.jsx)(RT, {
+ return /* @__PURE__ */ (0, U.jsx)(wT, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, U.jsxs)(BT, { children: [
+ children: /* @__PURE__ */ (0, U.jsxs)(ET, { children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: /* @__PURE__ */ (0, U.jsx)(Rk, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -48756,7 +48756,7 @@ function Yve({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, U.jsx)(jT, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, U.jsx)(_T, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
children: s
@@ -48768,11 +48768,11 @@ function Yve({ toast: e }) {
] })
});
}
-function Xve({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = gM({
- queryKey: AL,
- queryFn: ({ signal: e }) => NL(e),
- start: () => q(Uve, {}),
+function Zve({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = oM({
+ queryKey: kL,
+ queryFn: ({ signal: e }) => ML(e),
+ start: () => q(Wve, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -48781,45 +48781,45 @@ function Xve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Sw({ mutationFn: () => q(Hve, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, U.jsx)(RT, {
+ }), a = xw({ mutationFn: () => q(Uve, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, U.jsx)(wT, {
title: "amane",
- children: /* @__PURE__ */ (0, U.jsx)(BT, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
+ children: /* @__PURE__ */ (0, U.jsx)(ET, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
children: K(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? K(i.error) : a.error ? K(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "amane",
- aside: /* @__PURE__ */ (0, U.jsx)(GT, {
+ aside: /* @__PURE__ */ (0, U.jsx)(jT, {
href: o.repository,
- leadingIcon: qve,
+ leadingIcon: Jve,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, U.jsxs)(KT, { children: [
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsxs)(MT, { children: [
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, U.jsxs)(BT, {
+ /* @__PURE__ */ (0, U.jsxs)(ET, {
divided: !0,
children: [
- /* @__PURE__ */ (0, U.jsxs)(HT, { children: [
+ /* @__PURE__ */ (0, U.jsxs)(OT, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -48828,7 +48828,7 @@ function Xve({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, U.jsx)(jT, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, U.jsx)(_T, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
children: c
@@ -48839,7 +48839,7 @@ function Xve({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, U.jsxs)(VT, { children: [/* @__PURE__ */ (0, U.jsx)(J, {
+ /* @__PURE__ */ (0, U.jsxs)(DT, { children: [/* @__PURE__ */ (0, U.jsx)(J, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -48856,23 +48856,23 @@ function Xve({ toast: e }) {
]
});
}
-function Zve({ toast: e }) {
- let t = yw({
- queryKey: OL,
- queryFn: ({ signal: e }) => jL(e)
+function Qve({ toast: e }) {
+ let t = vw({
+ queryKey: DL,
+ queryFn: ({ signal: e }) => AL(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, U.jsxs)(qk, { children: [
+ return n ? /* @__PURE__ */ (0, U.jsxs)(Nk, { children: [
/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, U.jsx)(Yve, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, U.jsx)(Jve, {
+ /* @__PURE__ */ (0, U.jsx)(Xve, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, U.jsx)(Yve, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, U.jsx)(Xve, { toast: e })
- ] }) : /* @__PURE__ */ (0, U.jsx)(qk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
+ /* @__PURE__ */ (0, U.jsx)(Zve, { toast: e })
+ ] }) : /* @__PURE__ */ (0, U.jsx)(Nk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? K(t.error) : "读取采集来源失败"
@@ -48880,24 +48880,24 @@ function Zve({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var IL = "/api/configuration", Qve = "/api/pick-folder", LL = ["configuration"], RL = (e) => HC(IL, e);
-async function zL(e) {
+var FL = "/api/configuration", $ve = "/api/pick-folder", IL = ["configuration"], LL = (e) => VC(FL, e);
+async function RL(e) {
await z.fetchQuery({
- queryKey: LL,
- queryFn: () => RL(e)
+ queryKey: IL,
+ queryFn: () => LL(e)
});
}
//#endregion
//#region src/configuration-copy.ts
-var $ve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", eye = "仅填域名;留空使用默认地址";
+var eye = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", tye = "仅填域名;留空使用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function tye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.sites), i = kT(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function nye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.sites), i = hT(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -48906,9 +48906,9 @@ function tye({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, U.jsxs)(BT, { children: [
- /* @__PURE__ */ (0, U.jsx)(HT, { children: $ve }),
- n.map((e) => /* @__PURE__ */ (0, U.jsx)(Qk, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(ET, { children: [
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: eye }),
+ n.map((e) => /* @__PURE__ */ (0, U.jsx)(Rk, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -48917,10 +48917,10 @@ function tye({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: eye
+ hint: tye
}, e.key)),
- i.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, U.jsx)(VT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, U.jsx)(DT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -48929,21 +48929,21 @@ function tye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function nye({ data: e, receipt: t }) {
+function rye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, U.jsx)(rye, {
+ children: [e.startup ? /* @__PURE__ */ (0, U.jsx)(iye, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, U.jsx)(tye, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, U.jsx)(nye, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function rye({ 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 = kT(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+function iye({ 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 = hT(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {
@@ -48953,30 +48953,30 @@ function rye({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, U.jsxs)(zT, { children: [
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsxs)(TT, { children: [
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -48984,11 +48984,11 @@ function rye({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, U.jsxs)(BT, {
+ e.message || c.error ? /* @__PURE__ */ (0, U.jsxs)(ET, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, U.jsx)(HT, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, U.jsx)(OT, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, U.jsx)(VT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
+ /* @__PURE__ */ (0, U.jsx)(DT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -48999,23 +48999,23 @@ function rye({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var BL = /* @__PURE__ */ new Set([
+var zL = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), iye = [
+]), aye = [
65,
67,
90
-], VL = 120;
-function aye({ initial: e, initialJob: t }) {
+], BL = 120;
+function oye({ initial: e, initialJob: t }) {
let [n, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(t || {
state: "idle",
progress: 0
- }), [s, c] = (0, B.useState)(""), l = kT(), u = (0, B.useRef)(!1), d = (0, B.useRef)(!0), f = BL.has(a.state);
+ }), [s, c] = (0, B.useState)(""), l = hT(), u = (0, B.useRef)(!1), d = (0, B.useRef)(!0), f = zL.has(a.state);
(0, B.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
@@ -49032,9 +49032,9 @@ function aye({ initial: e, initialJob: t }) {
(0, B.useEffect)(() => {
a.state !== "ready" || u.current || (u.current = !0, m());
}, [a.state]), (0, B.useEffect)(() => {
- let e = new AbortController(), t = BL.has(a.state) ? 1e3 : 3e4, n, r = 0, s = async () => {
+ let e = new AbortController(), t = zL.has(a.state) ? 1e3 : 3e4, n, r = 0, s = async () => {
try {
- let t = await HC("/api/configuration/update-status", e.signal);
+ let t = await VC("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
o(t), r = 0, t.state === "complete" && i((e) => ({
...e,
@@ -49042,12 +49042,12 @@ function aye({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await HC("/api/configuration/automatic-updates", e.signal);
+ let n = await VC("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && i(n.result);
} catch {
- r += 1, r >= VL && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ r += 1, r >= BL && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && r < VL && (n = setTimeout(s, t));
+ !e.signal.aborted && r < BL && (n = setTimeout(s, t));
};
return n = setTimeout(s, t), () => {
e.abort(), clearTimeout(n);
@@ -49055,63 +49055,63 @@ function aye({ initial: e, initialJob: t }) {
}, [a.state]);
let h = () => {
f || (u.current = !1, c(""), l.run("download", (e) => q("/api/configuration/update", {}, "POST", e), o));
- }, g = () => void l.run("check", (e) => HC("/api/configuration/updates", e), i, (t) => {
+ }, g = () => void l.run("check", (e) => VC("/api/configuration/updates", e), i, (t) => {
i({
...e,
state: "error"
}), l.setError(K(t));
}), _ = l.error || s, v = a.state === "downloading" && a.total ? `${((a.downloaded || 0) / 1048576).toFixed(1)} / ${(a.total / 1048576).toFixed(1)} MB` : `${a.progress}%`;
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, U.jsxs)(KT, { children: [
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsxs)(MT, { children: [
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, U.jsxs)(BT, {
+ /* @__PURE__ */ (0, U.jsxs)(ET, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, U.jsxs)(HT, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, U.jsxs)(OT, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !_ ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, U.jsx)(UT, { children: _ || n.message }) : /* @__PURE__ */ (0, U.jsx)(HT, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, U.jsx)(kT, { children: _ || n.message }) : /* @__PURE__ */ (0, U.jsx)(OT, {
role: "status",
children: n.message
}),
- a.state === "error" ? /* @__PURE__ */ (0, U.jsx)(UT, { children: a.message }) : null,
+ a.state === "error" ? /* @__PURE__ */ (0, U.jsx)(kT, { children: a.message }) : null,
a.state !== "idle" && a.state !== "error" ? /* @__PURE__ */ (0, U.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(NT, {
+ /* @__PURE__ */ (0, U.jsx)(yT, {
label: "更新准备进度",
value: a.progress,
- stops: iye
+ stops: aye
}),
- /* @__PURE__ */ (0, U.jsxs)(HT, { children: ["下载 → 校验 → 解压 → 准备安装 · ", a.message] }),
- /* @__PURE__ */ (0, U.jsx)(HT, { children: v })
+ /* @__PURE__ */ (0, U.jsxs)(OT, { children: ["下载 → 校验 → 解压 → 准备安装 · ", a.message] }),
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, U.jsxs)(VT, {
- status: /* @__PURE__ */ (0, U.jsx)(GT, {
+ /* @__PURE__ */ (0, U.jsxs)(DT, {
+ status: /* @__PURE__ */ (0, U.jsx)(jT, {
href: n.release_url,
children: "查看发布页"
}),
@@ -49138,98 +49138,98 @@ function aye({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var oye = [
+var sye = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function sye({ data: e, receipt: t, reopenTutorial: n }) {
+function cye({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, U.jsx)(lye, {
+ e.automatic_updates ? /* @__PURE__ */ (0, U.jsx)(uye, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, U.jsx)(aye, {
+ e.updates ? /* @__PURE__ */ (0, U.jsx)(oye, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, U.jsx)(uye, { facts: e.facts }),
- /* @__PURE__ */ (0, U.jsx)(cye, {
+ /* @__PURE__ */ (0, U.jsx)(dye, { facts: e.facts }),
+ /* @__PURE__ */ (0, U.jsx)(lye, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, U.jsx)(dye, {
+ e.uninstall ? /* @__PURE__ */ (0, U.jsx)(fye, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function cye({ receipt: e, reopenTutorial: t }) {
- let n = kT();
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+function lye({ receipt: e, reopenTutorial: t }) {
+ let n = hT();
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, U.jsxs)(BT, { children: [/* @__PURE__ */ (0, U.jsx)(HT, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: n.error }) : null] }), /* @__PURE__ */ (0, U.jsx)(VT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(ET, { children: [/* @__PURE__ */ (0, U.jsx)(OT, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: n.error }) : null] }), /* @__PURE__ */ (0, U.jsx)(DT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function lye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = kT(e.error), s = (r) => {
+function uye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = hT(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, U.jsxs)(zT, { children: [
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsxs)(TT, { children: [
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, U.jsx)(eA, {
+ children: /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: oye.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: sye.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ o.error ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(UT, { children: o.error })
+ children: /* @__PURE__ */ (0, U.jsx)(kT, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, U.jsx)(VT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
+ /* @__PURE__ */ (0, U.jsx)(DT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -49238,19 +49238,19 @@ function lye({ initial: e, receipt: t }) {
]
});
}
-function uye({ facts: e }) {
- return /* @__PURE__ */ (0, U.jsx)(RT, {
+function dye({ facts: e }) {
+ return /* @__PURE__ */ (0, U.jsx)(wT, {
title: "运行信息",
- children: /* @__PURE__ */ (0, U.jsx)(KT, { children: e.map((e) => /* @__PURE__ */ (0, U.jsxs)(qT, {
+ children: /* @__PURE__ */ (0, U.jsx)(MT, { children: e.map((e) => /* @__PURE__ */ (0, U.jsxs)(NT, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, U.jsx)(GT, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, U.jsx)(jT, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function dye({ uninstall: e, receipt: t }) {
+function fye({ uninstall: e, receipt: t }) {
let [n, i] = (0, B.useState)(!1), [a, o] = (0, B.useState)(""), s = () => void r({
title: "卸载 Peach",
danger: !0,
@@ -49264,26 +49264,26 @@ function dye({ uninstall: e, receipt: t }) {
o(e.message);
}
}), c = a || e.message, l = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, U.jsxs)(BT, { children: [
- e.available ? /* @__PURE__ */ (0, U.jsx)(HT, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, U.jsx)(bM, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(ET, { children: [
+ e.available ? /* @__PURE__ */ (0, U.jsx)(OT, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: n,
isDisabled: !e.full_available || !!a,
onChange: i,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, U.jsx)(JT, {
+ /* @__PURE__ */ (0, U.jsx)(PT, {
summary: "数据目录",
- children: l.map((e) => /* @__PURE__ */ (0, U.jsx)(AT, {
+ children: l.map((e) => /* @__PURE__ */ (0, U.jsx)(gT, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, U.jsx)(VT, {
+ ] }), /* @__PURE__ */ (0, U.jsx)(DT, {
status: c ? /* @__PURE__ */ (0, U.jsx)("p", {
role: a ? "status" : void 0,
children: c
@@ -49299,7 +49299,7 @@ function dye({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var fye = [
+var pye = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -49318,32 +49318,32 @@ var fye = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], pye = [
+], mye = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function mye() {
+function hye() {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, U.jsxs)(HT, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, U.jsx)(GT, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(OT, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, U.jsx)(jT, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, U.jsxs)(JT, {
+ })] }), /* @__PURE__ */ (0, U.jsxs)(PT, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, U.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: fye.map((e) => /* @__PURE__ */ (0, U.jsxs)("li", {
+ children: pye.map((e) => /* @__PURE__ */ (0, U.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, U.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: pye.map(([t, n]) => /* @__PURE__ */ (0, U.jsxs)("div", {
+ children: mye.map(([t, n]) => /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, U.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -49364,9 +49364,9 @@ function mye() {
/* @__PURE__ */ (0, U.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, U.jsxs)(HT, { children: [
+ /* @__PURE__ */ (0, U.jsxs)(OT, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, U.jsx)(GT, {
+ /* @__PURE__ */ (0, U.jsx)(jT, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -49378,15 +49378,15 @@ function mye() {
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var hye = "/api/configuration/downloads", HL = "/api/configuration/downloads/check", gye = "/api/configuration/downloads/folder", _ye = "/api/configuration/downloads/pikpak/login", vye = "/api/configuration/downloads/pikpak/logout", UL = "/api/configuration/downloads/pikpak/browser-login", WL = 2e3;
-function yye({ initial: e, receipt: t }) {
+var gye = "/api/configuration/downloads", VL = "/api/configuration/downloads/check", _ye = "/api/configuration/downloads/folder", vye = "/api/configuration/downloads/pikpak/login", yye = "/api/configuration/downloads/pikpak/logout", HL = "/api/configuration/downloads/pikpak/browser-login", UL = 2e3;
+function bye({ 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, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(bye, {
+ return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(xye, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, U.jsx)(Sye, {
+ }), /* @__PURE__ */ (0, U.jsx)(Cye, {
state: n,
settle: r,
receipt: t,
@@ -49394,8 +49394,8 @@ function yye({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function bye({ 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)(GL), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = kT(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+function xye({ 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)(WL), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = hT(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -49424,8 +49424,8 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- b.run("auto", (e) => HC(HL, e), (e) => w(e, t), (e) => _(K(e)));
- }, []), /* @__PURE__ */ (0, U.jsxs)(RT, {
+ b.run("auto", (e) => VC(VL, e), (e) => w(e, t), (e) => _(K(e)));
+ }, []), /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -49438,19 +49438,19 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- b.run("save", (e) => q(hye, f, "POST", e), (e) => {
+ b.run("save", (e) => q(gye, 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(GL), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(WL), y(!1), _("")), n("已保存配置");
}, (e) => _(K(e)));
},
children: [
- /* @__PURE__ */ (0, U.jsxs)(BT, { children: [
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsxs)(ET, { children: [
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
autoComplete: "off",
@@ -49462,7 +49462,7 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -49473,7 +49473,7 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "115 目标目录",
placeholder: "留空时按推送发现自动填写",
autoComplete: "off",
@@ -49485,7 +49485,7 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("115", e)
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "PikPak 目标目录",
placeholder: "以 / 开头的网盘路径",
autoComplete: "off",
@@ -49497,7 +49497,7 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, U.jsx)(WT, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, U.jsx)(eA, {
+ children: [/* @__PURE__ */ (0, U.jsx)(AT, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -49506,13 +49506,13 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, U.jsx)(HT, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, U.jsx)(OT, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -49523,11 +49523,11 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(jT, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, U.jsx)(_T, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, U.jsx)(xye, {
+ u ? /* @__PURE__ */ (0, U.jsx)(Sye, {
report: u,
detected: f,
suggested: m,
@@ -49539,7 +49539,7 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => q(gye, t, "POST", e), (t) => {
+ b.run("folder", (e) => q(_ye, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -49551,11 +49551,11 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ g || b.error ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(UT, { children: g || b.error })
+ children: /* @__PURE__ */ (0, U.jsx)(kT, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, U.jsxs)(VT, {
+ /* @__PURE__ */ (0, U.jsxs)(DT, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, U.jsx)(J, {
onClick: () => {
@@ -49570,7 +49570,7 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => q(HL, t, "POST", e), (t) => w(t, e), (e) => _(K(e)));
+ b.run("check", (e) => q(VL, t, "POST", e), (t) => w(t, e), (e) => _(K(e)));
},
disabled: !e.available,
...X(b.busy === "check"),
@@ -49585,25 +49585,25 @@ function bye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var GL = {
+var WL = {
target: null,
root: "",
saved: !1
};
-function xye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function Sye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, U.jsxs)(BT, {
+ return /* @__PURE__ */ (0, U.jsxs)(ET, {
divided: !0,
- children: [/* @__PURE__ */ (0, U.jsxs)(KT, { children: [
- t ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(MT, { children: [
+ t ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ a?.exists ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "115 目标目录",
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, U.jsxs)(qT, {
+ a && !a.exists ? /* @__PURE__ */ (0, U.jsxs)(NT, {
term: "115 目标目录",
children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, U.jsx)(J, {
size: "small",
@@ -49612,49 +49612,49 @@ function xye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ n.root ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ e.permissions.length ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ e.folder ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ e.quota ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, U.jsx)(UT, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, U.jsx)(kT, { children: e }, e))]
});
}
-function Sye({ 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 = kT(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+function Cye({ 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 = hT(), 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 HC(UL, e.signal);
+ let r = await VC(HL, 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(K(t));
}
- r = setTimeout(i, WL);
+ r = setTimeout(i, UL);
};
- return r = setTimeout(i, WL), () => {
+ return r = setTimeout(i, UL), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => q(UL, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => q(HL, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(K(e)));
}, b = () => {
- h.run("cancel", (e) => q(`${UL}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => q(`${HL}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(K(e)));
}, x = (e) => {
@@ -49664,7 +49664,7 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => q(_ye, i, "POST", e), (e) => {
+ h.run("login", (e) => q(vye, i, "POST", e), (e) => {
if (t(e.settings), f(""), !e.ok) {
u(e.captcha_url ?? "");
return;
@@ -49672,11 +49672,11 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
u(""), o(""), n("已登录 PikPak");
}, (e) => f(K(e)));
}, S = () => {
- h.run("logout", (e) => q(vye, {}, "POST", e), (e) => {
+ h.run("logout", (e) => q(yye, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(K(e)));
}, C = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -49685,7 +49685,7 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -49694,7 +49694,7 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, U.jsx)(bM, {
+ /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@ -49705,7 +49705,7 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
title: "需要人机验证",
extra: /* @__PURE__ */ (0, U.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, U.jsx)(GT, {
+ children: /* @__PURE__ */ (0, U.jsx)(jT, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -49718,32 +49718,32 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
...X(h.busy === "login"),
children: "登录"
}), T = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "PikPak 账号",
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, U.jsxs)(KT, { children: [/* @__PURE__ */ (0, U.jsx)(qT, {
+ g.logged_in ? /* @__PURE__ */ (0, U.jsxs)(MT, { children: [/* @__PURE__ */ (0, U.jsx)(NT, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, U.jsx)(qT, {
+ }) : /* @__PURE__ */ (0, U.jsx)(NT, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, U.jsxs)(BT, { children: [
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
- p ? T ? /* @__PURE__ */ (0, U.jsx)(UT, { children: p }) : /* @__PURE__ */ (0, U.jsx)(HT, {
+ })] }) : _.available ? /* @__PURE__ */ (0, U.jsxs)(ET, { children: [
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
+ p ? T ? /* @__PURE__ */ (0, U.jsx)(kT, { children: p }) : /* @__PURE__ */ (0, U.jsx)(OT, {
role: "status",
children: p
}) : null,
- /* @__PURE__ */ (0, U.jsx)(JT, {
+ /* @__PURE__ */ (0, U.jsx)(PT, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
C,
/* @__PURE__ */ (0, U.jsx)("div", {
className: "flex justify-end",
@@ -49752,13 +49752,13 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
]
})
})
- ] }) : /* @__PURE__ */ (0, U.jsxs)(BT, { children: [/* @__PURE__ */ (0, U.jsx)(HT, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ ] }) : /* @__PURE__ */ (0, U.jsxs)(ET, { children: [/* @__PURE__ */ (0, U.jsx)(OT, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(UT, { children: d || h.error })
+ children: /* @__PURE__ */ (0, U.jsx)(kT, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, U.jsx)(VT, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, U.jsx)(jT, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, U.jsx)(DT, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, U.jsx)(_T, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, U.jsx)(J, {
onClick: S,
disabled: !e.available,
@@ -49782,7 +49782,7 @@ function Sye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var KL = [
+var GL = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -49826,13 +49826,13 @@ var KL = [
["star", "收藏"],
["tags", "主题"]
];
-function Cye(t) {
+function wye(t) {
let n = t === "local" ? "" : e[t];
return n ? [n, "自动识别"] : ["hard-drive", "默认"];
}
-var qL = "auto";
-function wye({ 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] = Cye(n);
+var KL = "auto";
+function Tye({ 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] = wye(n);
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(J, {
ref: i,
variant: "secondary",
@@ -49846,7 +49846,7 @@ function wye({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, U.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, U.jsx)(YT, { mark: e || l }), ((e) => e && KL.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, U.jsx)(FT, { mark: e || l }), ((e) => e && GL.find(([t]) => t === e)?.[1] || u)(e)]
})
}), /* @__PURE__ */ (0, U.jsx)(tm, {
triggerRef: i,
@@ -49854,7 +49854,7 @@ function wye({ value: e, label: t, kind: n = "local", onChange: r }) {
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: _T,
+ className: rT,
children: /* @__PURE__ */ (0, U.jsxs)(ph, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
@@ -49866,15 +49866,15 @@ function wye({ value: e, label: t, kind: n = "local", onChange: r }) {
}),
/* @__PURE__ */ (0, U.jsx)(lg, {
"aria-label": "候选图标",
- value: s || qL,
- onChange: (e) => c(e === qL ? "" : e),
+ value: s || KL,
+ onChange: (e) => c(e === KL ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: KL.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(ug, {
- value: e || qL,
+ children: GL.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(ug, {
+ value: e || KL,
"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, U.jsx)(YT, { mark: e || l })
- }, e || qL))
+ children: /* @__PURE__ */ (0, U.jsx)(FT, { mark: e || l })
+ }, e || KL))
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -49896,15 +49896,15 @@ function wye({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Tye = "/api/configuration/push-discovery", Eye = "/api/configuration/push-discovery/secret";
-function Dye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = kT(), l = Iw(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {
+var Eye = "/api/configuration/push-discovery", Dye = "/api/configuration/push-discovery/secret";
+function Oye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = hT(), l = fT(), 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,
...t
} : n));
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -49914,14 +49914,14 @@ function Dye({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => q(Tye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
+ c.run("save", (e) => q(Eye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
- /* @__PURE__ */ (0, U.jsxs)(zT, { children: [
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsxs)(TT, { children: [
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -49931,10 +49931,10 @@ function Dye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -49944,10 +49944,10 @@ function Dye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(CT, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, U.jsx)(KI, {
+ children: /* @__PURE__ */ (0, U.jsx)(LI, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -49958,30 +49958,30 @@ function Dye({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ d.enabled ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsxs)(KT, { children: [d.watch_local ? /* @__PURE__ */ (0, U.jsx)(qT, {
+ children: /* @__PURE__ */ (0, U.jsxs)(MT, { children: [d.watch_local ? /* @__PURE__ */ (0, U.jsx)(NT, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, U.jsx)(qT, {
+ }) : null, /* @__PURE__ */ (0, U.jsx)(NT, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
children: /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, U.jsx)(WT, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, U.jsx)(AT, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("div", { children: /* @__PURE__ */ (0, U.jsx)(J, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, U.jsx)(JT, {
+ }) }), /* @__PURE__ */ (0, U.jsx)(PT, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, U.jsx)("div", {
className: "relative",
@@ -49992,17 +49992,17 @@ function Dye({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, U.jsx)(HT, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, U.jsx)(OT, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
children: /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, U.jsx)(WT, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, U.jsx)(HT, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, U.jsx)(AT, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, U.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -50010,7 +50010,7 @@ function Dye({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -50019,19 +50019,19 @@ function Dye({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, U.jsx)(eA, {
+ /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: u.map((e) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, U.jsx)(OT, {
- icon: Qw,
+ /* @__PURE__ */ (0, U.jsx)(mT, {
+ icon: Rw,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -50049,15 +50049,15 @@ function Dye({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ o || c.error ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(UT, { children: o || c.error })
+ children: /* @__PURE__ */ (0, U.jsx)(kT, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, U.jsxs)(VT, {
+ /* @__PURE__ */ (0, U.jsxs)(DT, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, U.jsx)(J, {
onClick: () => {
- c.run("secret", (e) => q(Eye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
+ c.run("secret", (e) => q(Dye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
},
disabled: !n.available,
...X(c.busy === "secret"),
@@ -50074,8 +50074,8 @@ function Dye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Oye = 8e3;
-function kye({ className: e }) {
+var kye = 8e3;
+function Aye({ className: e }) {
return /* @__PURE__ */ (0, U.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -50088,33 +50088,33 @@ function kye({ className: e }) {
children: /* @__PURE__ */ (0, U.jsx)("use", { href: "#i-folder-search" })
});
}
-var JL = [
+var qL = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Aye = (e) => JL.find(([t]) => t === e)?.[1] ?? e, YL = (t) => e[t] || "database", XL = (e = "") => ({
+], jye = (e) => qL.find(([t]) => t === e)?.[1] ?? e, JL = (t) => e[t] || "database", YL = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function jye(e) {
- let t = e.media_sources?.filter((e) => JL.some(([t]) => t === e.location));
+function Mye(e) {
+ let t = e.media_sources?.filter((e) => qL.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) => XL(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => YL(e));
}
-var Mye = (e) => !(e instanceof BC) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Nye({ data: e, receipt: t }) {
+var Nye = (e) => !(e instanceof zC) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Pye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, U.jsx)(Pye, {
+ e.editable ? /* @__PURE__ */ (0, U.jsx)(Fye, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, U.jsx)(Y, {
@@ -50122,25 +50122,25 @@ function Nye({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, U.jsx)(Iye, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, U.jsx)(Dye, {
+ /* @__PURE__ */ (0, U.jsx)(Lye, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, U.jsx)(Oye, {
initial: e.push_discovery,
receipt: t
}) : null,
- e.downloads ? /* @__PURE__ */ (0, U.jsx)(yye, {
+ e.downloads ? /* @__PURE__ */ (0, U.jsx)(bye, {
initial: e.downloads,
receipt: t
}) : null
]
});
}
-function Pye({ data: e, receipt: t }) {
- let [n, r] = (0, B.useState)(() => jye(e)), [i, a] = (0, B.useState)(String(e.port)), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)([]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(null), [g, _] = (0, B.useState)(null), [v, y] = (0, B.useState)(null), b = (0, B.useRef)(!1), x = (0, B.useRef)(e.revision), S = (0, B.useRef)([]), C = kT();
+function Fye({ data: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(() => Mye(e)), [i, a] = (0, B.useState)(String(e.port)), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)([]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(null), [g, _] = (0, B.useState)(null), [v, y] = (0, B.useState)(null), b = (0, B.useRef)(!1), x = (0, B.useRef)(e.revision), S = (0, B.useRef)([]), C = hT();
(0, B.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, B.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Oye);
+ let e = setTimeout(() => location.assign(m.url), kye);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -50151,14 +50151,14 @@ function Pye({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, XL()]);
+ _(n.length), r((e) => [...e, YL()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await q(Qve, { initial: n[e]?.path ?? "" });
+ let { path: t } = await q($ve, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, K(t));
@@ -50167,7 +50167,7 @@ function Pye({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => q(IL, {
+ r.preventDefault(), p(""), C.run("save", (t) => q(FL, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -50176,18 +50176,18 @@ function Pye({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Mye(e);
+ let t = Nye(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
- if (m) return /* @__PURE__ */ (0, U.jsx)(RT, {
+ if (m) return /* @__PURE__ */ (0, U.jsx)(wT, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, U.jsx)(BT, { children: /* @__PURE__ */ (0, U.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, U.jsx)(ET, { children: /* @__PURE__ */ (0, U.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, U.jsx)(gT, {
+ /* @__PURE__ */ (0, U.jsx)(nT, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -50197,14 +50197,14 @@ function Pye({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, U.jsxs)(BT, { children: [
+ children: [/* @__PURE__ */ (0, U.jsxs)(ET, { children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, U.jsx)(WT, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, U.jsx)(AT, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, U.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -50215,7 +50215,7 @@ function Pye({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -50228,14 +50228,14 @@ function Pye({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, U.jsx)(OT, {
- icon: kye,
+ /* @__PURE__ */ (0, U.jsx)(mT, {
+ icon: Aye,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...X(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, U.jsx)(OT, {
- icon: Qw,
+ n.length > 1 ? /* @__PURE__ */ (0, U.jsx)(mT, {
+ icon: Rw,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
@@ -50243,7 +50243,7 @@ function Pye({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, U.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -50252,7 +50252,7 @@ function Pye({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, U.jsx)(WT, { children: "媒体库图标" }), /* @__PURE__ */ (0, U.jsx)(wye, {
+ children: [/* @__PURE__ */ (0, U.jsx)(AT, { children: "媒体库图标" }), /* @__PURE__ */ (0, U.jsx)(Tye, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -50261,20 +50261,20 @@ function Pye({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, U.jsx)(WT, { children: "媒体来源" }), /* @__PURE__ */ (0, U.jsx)(eA, {
+ children: [/* @__PURE__ */ (0, U.jsx)(AT, { children: "媒体来源" }), /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: JL.map(([e, t]) => /* @__PURE__ */ (0, U.jsxs)(tA, {
+ children: qL.map(([e, t]) => /* @__PURE__ */ (0, U.jsxs)(Vk, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, U.jsx)(YT, { mark: YL(e) }), t]
+ children: [/* @__PURE__ */ (0, U.jsx)(FT, { mark: JL(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, U.jsx)(Qk, {
+ e.windows === !1 ? /* @__PURE__ */ (0, U.jsx)(Rk, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -50291,18 +50291,18 @@ function Pye({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, U.jsx)(mye, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, U.jsxs)(HT, { children: [
+ A ? /* @__PURE__ */ (0, U.jsx)(hye, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, U.jsxs)(OT, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, U.jsxs)(GT, {
+ /* @__PURE__ */ (0, U.jsxs)(jT, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, U.jsx)(HT, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, U.jsx)(Qk, {
+ e.windows === !1 ? /* @__PURE__ */ (0, U.jsx)(OT, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, U.jsx)(Rk, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -50312,7 +50312,7 @@ function Pye({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, U.jsx)(bM, {
+ /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -50322,7 +50322,7 @@ function Pye({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, U.jsx)(VT, {
+ ] }), /* @__PURE__ */ (0, U.jsx)(DT, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, U.jsx)(J, {
type: "submit",
@@ -50332,7 +50332,7 @@ function Pye({ data: e, receipt: t }) {
})]
});
}
-function Fye({ online: e }) {
+function Iye({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, U.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -50356,21 +50356,21 @@ function Fye({ online: e }) {
}), "未检测"]
});
}
-function Iye({ data: e }) {
- let t = e.media_sources, n = kT();
- return t ? /* @__PURE__ */ (0, U.jsxs)(RT, {
+function Lye({ data: e }) {
+ let t = e.media_sources, n = hT();
+ return t ? /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, U.jsx)(KT, { children: t.map((e, t) => /* @__PURE__ */ (0, U.jsxs)(qT, {
- term: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(YT, { mark: YL(e.location) }), Aye(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, U.jsx)(Fye, { online: e.online })]
+ /* @__PURE__ */ (0, U.jsx)(MT, { children: t.map((e, t) => /* @__PURE__ */ (0, U.jsxs)(NT, {
+ term: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(FT, { mark: JL(e.location) }), jye(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, U.jsx)(Iye, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, U.jsx)(BT, {
+ n.error ? /* @__PURE__ */ (0, U.jsx)(ET, {
divided: !0,
- children: /* @__PURE__ */ (0, U.jsx)(UT, { children: n.error })
+ children: /* @__PURE__ */ (0, U.jsx)(kT, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, U.jsx)(VT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
- onClick: () => void n.run("refresh", (e) => RL(e), (e) => z.setQueryData(LL, e)),
+ /* @__PURE__ */ (0, U.jsx)(DT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
+ onClick: () => void n.run("refresh", (e) => LL(e), (e) => z.setQueryData(IL, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -50379,13 +50379,13 @@ function Iye({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Lye = {
+var Rye = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Rye({ 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 = kT(), g = (e) => {
+function zye({ 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 = hT(), 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) {
@@ -50402,28 +50402,28 @@ function Rye({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof BC ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof zC ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
- }, _ = Lye[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ }, _ = Rye[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, U.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, U.jsxs)(BT, { children: [
- _ ? /* @__PURE__ */ (0, U.jsx)(HT, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, U.jsxs)(ET, { children: [
+ _ ? /* @__PURE__ */ (0, U.jsx)(OT, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, U.jsx)(bM, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, U.jsx)(uM, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, U.jsx)(Qk, {
+ n.mode === "password" ? /* @__PURE__ */ (0, U.jsx)(Rk, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -50436,7 +50436,7 @@ function Rye({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Qk, {
+ v ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Rk, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -50449,7 +50449,7 @@ function Rye({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, U.jsx)(Qk, {
+ }), /* @__PURE__ */ (0, U.jsx)(Rk, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -50468,9 +50468,9 @@ function Rye({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, U.jsx)(VT, {
+ }), v ? /* @__PURE__ */ (0, U.jsx)(DT, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, U.jsx)(J, {
type: "submit",
@@ -50482,19 +50482,19 @@ function Rye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var zye = 2e3, Bye = [["quick", "临时链接"], ["named", "命名隧道"]], Vye = {
+var Bye = 2e3, Vye = [["quick", "临时链接"], ["named", "命名隧道"]], Hye = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Hye({ 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 = kT(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+function Uye({ 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 = hT(), 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(() => {
- RL(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (z.setQueryData(LL, t), i(t.tunnel), o(t.revision));
+ LL(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (z.setQueryData(IL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, zye);
+ }, Bye);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -50509,30 +50509,30 @@ function Hye({ 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 BC ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof zC ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : h.setError(K(e));
});
};
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, U.jsxs)(BT, { children: [
- r.named_available ? /* @__PURE__ */ (0, U.jsx)(TC, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(ET, { children: [
+ r.named_available ? /* @__PURE__ */ (0, U.jsx)(wC, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: EC,
- children: Bye.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(ug, {
+ className: TC,
+ children: Vye.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(ug, {
value: e,
- className: DC,
+ className: EC,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, U.jsx)(HT, { children: Vye[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Qk, {
+ /* @__PURE__ */ (0, U.jsx)(OT, { children: Hye[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(Rk, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -50543,7 +50543,7 @@ function Hye({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, U.jsx)(Qk, {
+ }), /* @__PURE__ */ (0, U.jsx)(Rk, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -50563,7 +50563,7 @@ function Hye({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, U.jsx)(GT, {
+ children: /* @__PURE__ */ (0, U.jsx)(jT, {
href: r.url,
children: r.url
})
@@ -50573,9 +50573,9 @@ function Hye({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, U.jsxs)(VT, {
+ r.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, U.jsxs)(DT, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, U.jsx)(J, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -50591,24 +50591,24 @@ function Hye({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Uye = [
+var Wye = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Wye({ data: e, receipt: t }) {
+function Gye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, U.jsx)(Gye, {
+ e.peach_proxy ? /* @__PURE__ */ (0, U.jsx)(Kye, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, U.jsx)(Rye, {
+ e.access ? /* @__PURE__ */ (0, U.jsx)(zye, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, U.jsx)(Hye, {
+ e.tunnel ? /* @__PURE__ */ (0, U.jsx)(Uye, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -50616,9 +50616,9 @@ function Wye({ data: e, receipt: t }) {
]
});
}
-function Gye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = kT();
- return /* @__PURE__ */ (0, U.jsxs)(RT, {
+function Kye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = hT();
+ return /* @__PURE__ */ (0, U.jsxs)(wT, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -50630,25 +50630,25 @@ function Gye({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, U.jsx)(zT, { children: /* @__PURE__ */ (0, U.jsx)(LT, {
+ /* @__PURE__ */ (0, U.jsx)(TT, { children: /* @__PURE__ */ (0, U.jsx)(CT, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, U.jsx)(eA, {
+ children: /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Uye.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: Wye.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, U.jsxs)(BT, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, U.jsxs)(ET, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, U.jsx)(Qk, {
+ i === "proxy" ? /* @__PURE__ */ (0, U.jsx)(Rk, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -50662,10 +50662,10 @@ function Gye({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, U.jsx)(UT, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, U.jsx)(kT, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, U.jsx)(VT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
+ /* @__PURE__ */ (0, U.jsx)(DT, { children: /* @__PURE__ */ (0, U.jsx)(J, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -50675,10 +50675,10 @@ function Gye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Kye({ receipt: e, reopenTutorial: t }) {
- let n = yw({
- queryKey: LL,
- queryFn: ({ signal: e }) => RL(e)
+function qye({ receipt: e, reopenTutorial: t }) {
+ let n = vw({
+ queryKey: IL,
+ queryFn: ({ signal: e }) => LL(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, U.jsx)("div", {
className: "configpage",
@@ -50699,22 +50699,22 @@ function Kye({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, U.jsx)(nye, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, U.jsx)(rye, { ...i }) : null,
/* @__PURE__ */ (0, U.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, U.jsx)(Nye, { ...i }),
+ /* @__PURE__ */ (0, U.jsx)(Pye, { ...i }),
o ? /* @__PURE__ */ (0, U.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, U.jsx)(Wye, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, U.jsx)(Gye, { ...i }) : null,
/* @__PURE__ */ (0, U.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, U.jsx)(sye, {
+ /* @__PURE__ */ (0, U.jsx)(cye, {
...i,
reopenTutorial: t
})
@@ -50723,14 +50723,14 @@ function Kye({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var qye = "/api/stats", ZL = ["stats"], QL = (e) => HC(qye, e);
-async function Jye(e) {
+var Jye = "/api/stats", XL = ["stats"], ZL = (e) => VC(Jye, e);
+async function Yye(e) {
await z.fetchQuery({
- queryKey: ZL,
- queryFn: () => QL(e)
+ queryKey: XL,
+ queryFn: () => ZL(e)
});
}
-var $L = (e, t) => t ? Math.round(e / t * 100) : 0, Yye = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, eR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, tR = (e) => (e.max_reached || 0) * 100, Xye = (e) => e.kind === "online" ? "在线直接观看" : eR(e) < tR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Zye = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Qye = (e) => Math.max(1, ...e) * 1.1, $ye = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ebe = {
+var QL = (e, t) => t ? Math.round(e / t * 100) : 0, Xye = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, $L = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, eR = (e) => (e.max_reached || 0) * 100, Zye = (e) => e.kind === "online" ? "在线直接观看" : $L(e) < eR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Qye = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, $ye = (e) => Math.max(1, ...e) * 1.1, ebe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), tbe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -50738,18 +50738,18 @@ var $L = (e, t) => t ? Math.round(e / t * 100) : 0, Yye = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, tbe = (e) => e.map((e) => ({
- name: ebe[e.k] ?? e.k,
+}, nbe = (e) => e.map((e) => ({
+ name: tbe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), nbe = {
+})).sort((e, t) => t.value - e.value), rbe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, nR = (e, t = {}) => e.map((e) => ({
+}, tR = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), rbe = (e) => nR(e, nbe), ibe = [
+})), ibe = (e) => tR(e, rbe), abe = [
[
1,
1,
@@ -50785,49 +50785,49 @@ var $L = (e, t) => t ? Math.round(e / t * 100) : 0, Yye = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], abe = (e) => ibe.map(([t, n, r]) => ({
+], obe = (e) => abe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), obe = /* @__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 rR(e) {
- return typeof e == "string" && obe.includes(e);
+})), sbe = /* @__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 nR(e) {
+ return typeof e == "string" && sbe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var sbe = /* @__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 iR(e) {
- return typeof e == "string" && sbe.has(e);
+var cbe = /* @__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 rR(e) {
+ return typeof e == "string" && cbe.has(e);
}
-function aR(e) {
+function iR(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function oR(e) {
+function aR(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (iR(n) || aR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (rR(n) || iR(n)) && (t[n] = e[n]);
return t;
}
-function sR(e) {
+function oR(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, B.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return oR(t);
+ return aR(t);
}
- return typeof e == "object" && !Array.isArray(e) ? oR(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? aR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function cR(e) {
+function sR(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (iR(n) || aR(n) || rR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (rR(n) || iR(n) || nR(n)) && (t[n] = e[n]);
return t;
}
-function cbe(e) {
- return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? cR(e.props) : typeof e == "object" && !Array.isArray(e) ? cR(e) : null;
+function lbe(e) {
+ return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? sR(e.props) : typeof e == "object" && !Array.isArray(e) ? sR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var lbe = [
+var ube = [
"children",
"width",
"height",
@@ -50837,25 +50837,25 @@ var lbe = [
"title",
"desc"
];
-function lR() {
- return lR = Object.assign ? Object.assign.bind() : function(e) {
+function cR() {
+ return cR = 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;
- }, lR.apply(null, arguments);
+ }, cR.apply(null, arguments);
}
-function ube(e, t) {
+function dbe(e, t) {
if (e == null) return {};
- var n, r, i = dbe(e, t);
+ var n, r, i = fbe(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 dbe(e, t) {
+function fbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50864,14 +50864,14 @@ function dbe(e, t) {
}
return n;
}
-var uR = /*#__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 = ube(e, lbe), d = a || {
+var lR = /*#__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 = dbe(e, ube), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = qr("recharts-surface", o);
- return /*#__PURE__*/ B.createElement("svg", lR({}, cR(u), {
+ return /*#__PURE__*/ B.createElement("svg", cR({}, sR(u), {
className: f,
width: r,
height: i,
@@ -50879,26 +50879,26 @@ var uR = /*#__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);
-}), fbe = ["children", "className"];
-function dR() {
- return dR = Object.assign ? Object.assign.bind() : function(e) {
+}), pbe = ["children", "className"];
+function uR() {
+ return uR = 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;
- }, dR.apply(null, arguments);
+ }, uR.apply(null, arguments);
}
-function pbe(e, t) {
+function mbe(e, t) {
if (e == null) return {};
- var n, r, i = mbe(e, t);
+ var n, r, i = hbe(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 mbe(e, t) {
+function hbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50907,39 +50907,39 @@ function mbe(e, t) {
}
return n;
}
-var fR = /*#__PURE__*/ B.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = pbe(e, fbe), a = qr("recharts-layer", r);
- return /*#__PURE__*/ B.createElement("g", dR({ className: a }, cR(i), { ref: t }), n);
-}), pR = /*#__PURE__*/ (0, B.createContext)(null), hbe = () => (0, B.useContext)(pR);
+var dR = /*#__PURE__*/ B.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = mbe(e, pbe), a = qr("recharts-layer", r);
+ return /*#__PURE__*/ B.createElement("g", uR({ className: a }, sR(i), { ref: t }), n);
+}), fR = /*#__PURE__*/ (0, B.createContext)(null), gbe = () => (0, B.useContext)(fR);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function mR(e) {
+function pR(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var hR = Math.cos, gR = Math.sin, _R = Math.sqrt, vR = Math.PI;
-vR / 2;
-var yR = 2 * vR, bR = Math.PI, xR = 2 * bR, SR = 1e-6, gbe = xR - SR;
-function CR(e) {
+var mR = Math.cos, hR = Math.sin, gR = Math.sqrt, _R = Math.PI;
+_R / 2;
+var vR = 2 * _R, yR = Math.PI, bR = 2 * yR, xR = 1e-6, _be = bR - xR;
+function SR(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function _be(e) {
+function vbe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return CR;
+ if (t > 15) return SR;
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 wR = class {
+var CR = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? CR : _be(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? SR : vbe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -50960,18 +50960,18 @@ var wR = 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 > SR) {
- if (!(Math.abs(u * s - c * l) > SR) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > xR) {
+ if (!(Math.abs(u * s - c * l) > xR) || !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((bR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > SR && 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((yR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > xR && 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) > SR || Math.abs(this._y1 - l) > SR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % xR + xR), d > gbe ? 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 > SR && this._append`A${n},${n},0,${+(d >= bR)},${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) > xR || Math.abs(this._y1 - l) > xR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % bR + bR), d > _be ? 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 > xR && this._append`A${n},${n},0,${+(d >= yR)},${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`;
@@ -50980,10 +50980,10 @@ var wR = class {
return this._;
}
};
-wR.prototype;
+CR.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function TR(e) {
+function wR(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -50994,18 +50994,18 @@ function TR(e) {
t = e;
}
return e;
- }, () => new wR(t);
+ }, () => new CR(t);
}
Array.prototype.slice;
-function ER(e) {
+function TR(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 DR(e) {
+function ER(e) {
this._context = e;
}
-DR.prototype = {
+ER.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51028,33 +51028,33 @@ DR.prototype = {
}
}
};
-function OR(e) {
- return new DR(e);
+function DR(e) {
+ return new ER(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function kR(e) {
+function OR(e) {
return e[0];
}
-function AR(e) {
+function kR(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function jR(e, t) {
- var n = mR(!0), r = null, i = OR, a = null, o = TR(s);
- e = typeof e == "function" ? e : e === void 0 ? kR : mR(e), t = typeof t == "function" ? t : t === void 0 ? AR : mR(t);
+function AR(e, t) {
+ var n = pR(!0), r = null, i = DR, a = null, o = wR(s);
+ e = typeof e == "function" ? e : e === void 0 ? OR : pR(e), t = typeof t == "function" ? t : t === void 0 ? kR : pR(t);
function s(s) {
- var c, l = (s = ER(s)).length, u, d = !1, f;
+ var c, l = (s = TR(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 : mR(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : pR(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : mR(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : pR(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : mR(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : pR(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -51063,11 +51063,11 @@ function jR(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function MR(e, t, n) {
- var r = null, i = mR(!0), a = null, o = OR, s = null, c = TR(l);
- e = typeof e == "function" ? e : e === void 0 ? kR : mR(+e), t = typeof t == "function" ? t : mR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? AR : mR(+n);
+function jR(e, t, n) {
+ var r = null, i = pR(!0), a = null, o = DR, s = null, c = wR(l);
+ e = typeof e == "function" ? e : e === void 0 ? OR : pR(+e), t = typeof t == "function" ? t : pR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? kR : pR(+n);
function l(l) {
- var u, d, f, p = (l = ER(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = TR(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();
@@ -51081,20 +51081,20 @@ function MR(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return jR().defined(i).curve(o).context(a);
+ return AR().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : mR(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : pR(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : mR(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : pR(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : mR(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : pR(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : mR(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : pR(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : mR(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : pR(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : mR(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : pR(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -51102,7 +51102,7 @@ function MR(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : mR(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : pR(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -51111,7 +51111,7 @@ function MR(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var NR = class {
+var MR = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -51138,70 +51138,70 @@ var NR = class {
this._x0 = e, this._y0 = t;
}
};
-function vbe(e) {
- return new NR(e, !0);
-}
function ybe(e) {
- return new NR(e, !1);
+ return new MR(e, !0);
+}
+function bbe(e) {
+ return new MR(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var PR = { draw(e, t) {
- let n = _R(t / vR);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, yR);
-} }, bbe = { draw(e, t) {
- let n = _R(t / 5) / 2;
+var NR = { draw(e, t) {
+ let n = gR(t / _R);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, vR);
+} }, xbe = { draw(e, t) {
+ let n = gR(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();
-} }, FR = _R(1 / 3), xbe = FR * 2, Sbe = { draw(e, t) {
- let n = _R(t / xbe), r = n * FR;
+} }, PR = gR(1 / 3), Sbe = PR * 2, Cbe = { draw(e, t) {
+ let n = gR(t / Sbe), r = n * PR;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, Cbe = { draw(e, t) {
- let n = _R(t), r = -n / 2;
+} }, wbe = { draw(e, t) {
+ let n = gR(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, wbe = .8908130915292852, IR = gR(vR / 10) / gR(7 * vR / 10), Tbe = gR(yR / 10) * IR, Ebe = -hR(yR / 10) * IR, Dbe = { draw(e, t) {
- let n = _R(t * wbe), r = Tbe * n, i = Ebe * n;
+} }, Tbe = .8908130915292852, FR = hR(_R / 10) / hR(7 * _R / 10), Ebe = hR(vR / 10) * FR, Dbe = -mR(vR / 10) * FR, Obe = { draw(e, t) {
+ let n = gR(t * Tbe), r = Ebe * n, i = Dbe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = yR * t / 5, o = hR(a), s = gR(a);
+ let a = vR * t / 5, o = mR(a), s = hR(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, LR = _R(3), Obe = { draw(e, t) {
- let n = -_R(t / (LR * 3));
- e.moveTo(0, n * 2), e.lineTo(-LR * n, -n), e.lineTo(LR * n, -n), e.closePath();
-} }, RR = -.5, zR = _R(3) / 2, BR = 1 / _R(12), kbe = (BR / 2 + 1) * 3, Abe = { draw(e, t) {
- let n = _R(t / kbe), r = n / 2, i = n * BR, a = r, o = n * BR + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(RR * r - zR * i, zR * r + RR * i), e.lineTo(RR * a - zR * o, zR * a + RR * o), e.lineTo(RR * s - zR * c, zR * s + RR * c), e.lineTo(RR * r + zR * i, RR * i - zR * r), e.lineTo(RR * a + zR * o, RR * o - zR * a), e.lineTo(RR * s + zR * c, RR * c - zR * s), e.closePath();
+} }, IR = gR(3), kbe = { draw(e, t) {
+ let n = -gR(t / (IR * 3));
+ e.moveTo(0, n * 2), e.lineTo(-IR * n, -n), e.lineTo(IR * n, -n), e.closePath();
+} }, LR = -.5, RR = gR(3) / 2, zR = 1 / gR(12), Abe = (zR / 2 + 1) * 3, jbe = { draw(e, t) {
+ let n = gR(t / Abe), r = n / 2, i = n * zR, a = r, o = n * zR + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(LR * r - RR * i, RR * r + LR * i), e.lineTo(LR * a - RR * o, RR * a + LR * o), e.lineTo(LR * s - RR * c, RR * s + LR * c), e.lineTo(LR * r + RR * i, LR * i - RR * r), e.lineTo(LR * a + RR * o, LR * o - RR * a), e.lineTo(LR * s + RR * c, LR * c - RR * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function jbe(e, t) {
- let n = null, r = TR(i);
- e = typeof e == "function" ? e : mR(e || PR), t = typeof t == "function" ? t : mR(t === void 0 ? 64 : +t);
+function Mbe(e, t) {
+ let n = null, r = wR(i);
+ e = typeof e == "function" ? e : pR(e || NR), t = typeof t == "function" ? t : pR(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 : mR(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : pR(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : mR(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : pR(+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 VR() {}
+function BR() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function HR(e, t, n) {
+function VR(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 UR(e) {
+function HR(e) {
this._context = e;
}
-UR.prototype = {
+HR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51213,7 +51213,7 @@ UR.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: HR(this, this._x1, this._y1);
+ case 3: VR(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;
@@ -51227,22 +51227,22 @@ UR.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: HR(this, e, t);
+ default: VR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Mbe(e) {
- return new UR(e);
+function Nbe(e) {
+ return new HR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function WR(e) {
+function UR(e) {
this._context = e;
}
-WR.prototype = {
- areaStart: VR,
- areaEnd: VR,
+UR.prototype = {
+ areaStart: BR,
+ areaEnd: BR,
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;
},
@@ -51268,20 +51268,20 @@ WR.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: HR(this, e, t);
+ default: VR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Nbe(e) {
- return new WR(e);
+function Pbe(e) {
+ return new UR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function GR(e) {
+function WR(e) {
this._context = e;
}
-GR.prototype = {
+WR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51308,22 +51308,22 @@ GR.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: HR(this, e, t);
+ default: VR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Pbe(e) {
- return new GR(e);
+function Fbe(e) {
+ return new WR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function KR(e) {
+function GR(e) {
this._context = e;
}
-KR.prototype = {
- areaStart: VR,
- areaEnd: VR,
+GR.prototype = {
+ areaStart: BR,
+ areaEnd: BR,
lineStart: function() {
this._point = 0;
},
@@ -51334,30 +51334,30 @@ KR.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Fbe(e) {
- return new KR(e);
+function Ibe(e) {
+ return new GR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function qR(e) {
+function KR(e) {
return e < 0 ? -1 : 1;
}
-function JR(e, t, n) {
+function qR(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 (qR(a) + qR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (KR(a) + KR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function YR(e, t) {
+function JR(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function XR(e, t, n) {
+function YR(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 ZR(e) {
+function XR(e) {
this._context = e;
}
-ZR.prototype = {
+XR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51372,7 +51372,7 @@ ZR.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: XR(this, this._t0, YR(this, this._t0));
+ case 3: YR(this, this._t0, JR(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -51387,24 +51387,24 @@ ZR.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, XR(this, YR(this, n = JR(this, e, t)), n);
+ this._point = 3, YR(this, JR(this, n = qR(this, e, t)), n);
break;
- default: XR(this, this._t0, n = JR(this, e, t));
+ default: YR(this, this._t0, n = qR(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function QR(e) {
- this._context = new $R(e);
+function ZR(e) {
+ this._context = new QR(e);
}
-(QR.prototype = Object.create(ZR.prototype)).point = function(e, t) {
- ZR.prototype.point.call(this, t, e);
+(ZR.prototype = Object.create(XR.prototype)).point = function(e, t) {
+ XR.prototype.point.call(this, t, e);
};
-function $R(e) {
+function QR(e) {
this._context = e;
}
-$R.prototype = {
+QR.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -51418,18 +51418,18 @@ $R.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Ibe(e) {
- return new ZR(e);
-}
function Lbe(e) {
- return new QR(e);
+ return new XR(e);
+}
+function Rbe(e) {
+ return new ZR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function ez(e) {
+function $R(e) {
this._context = e;
}
-ez.prototype = {
+$R.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51443,7 +51443,7 @@ ez.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 = tz(e), i = tz(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 = ez(e), i = ez(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;
},
@@ -51451,7 +51451,7 @@ ez.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function tz(e) {
+function ez(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];
@@ -51459,15 +51459,15 @@ function tz(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 Rbe(e) {
- return new ez(e);
+function zbe(e) {
+ return new $R(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function nz(e, t) {
+function tz(e, t) {
this._context = e, this._t = t;
}
-nz.prototype = {
+tz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51495,78 +51495,78 @@ nz.prototype = {
this._x = e, this._y = t;
}
};
-function zbe(e) {
- return new nz(e, .5);
-}
function Bbe(e) {
- return new nz(e, 0);
+ return new tz(e, .5);
}
function Vbe(e) {
- return new nz(e, 1);
+ return new tz(e, 0);
+}
+function Hbe(e) {
+ return new tz(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function rz(e, t) {
+function nz(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 iz(e) {
+function rz(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 Hbe(e, t) {
+function Ube(e, t) {
return e[t];
}
-function Ube(e) {
+function Wbe(e) {
let t = [];
return t.key = e, t;
}
-function Wbe() {
- var e = mR([]), t = iz, n = rz, r = Hbe;
+function Gbe() {
+ var e = pR([]), t = rz, n = nz, r = Ube;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Ube), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Wbe), 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 = ER(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = TR(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 : mR(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : pR(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : mR(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : pR(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? iz : typeof e == "function" ? e : mR(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? rz : typeof e == "function" ? e : pR(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? rz, i) : n;
+ return arguments.length ? (n = e ?? nz, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Gbe(e, t) {
+function Kbe(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;
}
- rz(e, t);
+ nz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Kbe(e, t) {
+function qbe(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;
}
- rz(e, t);
+ nz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function qbe(e, t) {
+function Jbe(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) {
@@ -51578,53 +51578,53 @@ function qbe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, rz(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, nz(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function az(e) {
+function iz(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var Jbe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function oz(e) {
+var Ybe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function az(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Jbe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Ybe.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function sz(e) {
+function oz(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 cz(e) {
+function sz(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function Ybe(e) {
- return e == null ? "" : lz(e);
+function Xbe(e) {
+ return e == null ? "" : cz(e);
}
-function lz(e) {
+function cz(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(lz).join(",");
- if (cz(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(cz).join(",");
+ if (sz(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 uz(e) {
- if (Array.isArray(e)) return e.map(sz);
+function lz(e) {
+ if (Array.isArray(e)) return e.map(oz);
if (typeof e == "symbol") return [e];
- e = Ybe(e);
+ e = Xbe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -51652,100 +51652,100 @@ function uz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function dz(e, t, n) {
+function uz(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (az(t)) return n;
+ if (iz(t)) return n;
let r = e[t];
- return r === void 0 ? oz(t) && !Object.hasOwn(e, t) ? dz(e, uz(t), n) : n : r;
+ return r === void 0 ? az(t) && !Object.hasOwn(e, t) ? uz(e, lz(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = sz(t));
+ typeof t == "number" && (t = oz(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return Xbe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), az(t)) return n;
+ if (Array.isArray(t)) return Zbe(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), iz(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function Xbe(e, t, n) {
+function Zbe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || az(t[e])) return n;
+ if (r == null || iz(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var Zbe = 4;
-function fz(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Zbe), n = Math.round(e * t) / t;
+var Qbe = 4;
+function dz(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Qbe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function pz(e) {
+function fz(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 + fz(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + dz(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var mz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, hz = (e) => typeof e == "number" && e != +e, gz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !hz(e), _z = (e) => Z(e) || typeof e == "string", Qbe = 0, vz = (e) => {
- var t = ++Qbe;
+var pz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, mz = (e) => typeof e == "number" && e != +e, hz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !mz(e), gz = (e) => Z(e) || typeof e == "string", $be = 0, _z = (e) => {
+ var t = ++$be;
return `${e || ""}${t}`;
-}, yz = function(e, t) {
+}, vz = 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 (gz(e)) {
+ if (hz(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return hz(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, bz = (e) => {
+ return mz(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, yz = (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 xz(e, t, n) {
- return Z(e) && Z(t) ? fz(e + n * (t - e)) : t;
+function bz(e, t, n) {
+ return Z(e) && Z(t) ? dz(e + n * (t - e)) : t;
}
-function Sz(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : dz(e, t)) === n);
+function xz(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : uz(e, t)) === n);
}
-var Cz = (e) => e == null, wz = (e) => Cz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function Tz(e) {
+var Sz = (e) => e == null, Cz = (e) => Sz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function wz(e) {
return e != null;
}
-function Ez() {}
+function Tz() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var $be = [
+var exe = [
"type",
"size",
"sizeType"
];
-function Dz() {
- return Dz = Object.assign ? Object.assign.bind() : function(e) {
+function Ez() {
+ return Ez = 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;
- }, Dz.apply(null, arguments);
+ }, Ez.apply(null, arguments);
}
-function Oz(e, t) {
+function Dz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51755,30 +51755,30 @@ function Oz(e, t) {
}
return n;
}
-function kz(e) {
+function Oz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Oz(Object(n), !0).forEach(function(t) {
- exe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Oz(Object(n)).forEach(function(t) {
+ t % 2 ? Dz(Object(n), !0).forEach(function(t) {
+ txe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Dz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function exe(e, t, n) {
- return (t = txe(t)) in e ? Object.defineProperty(e, t, {
+function txe(e, t, n) {
+ return (t = nxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function txe(e) {
- var t = nxe(e, "string");
+function nxe(e) {
+ var t = rxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nxe(e, t) {
+function rxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51788,16 +51788,16 @@ function nxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function rxe(e, t) {
+function ixe(e, t) {
if (e == null) return {};
- var n, r, i = ixe(e, t);
+ var n, r, i = axe(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 ixe(e, t) {
+function axe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51806,68 +51806,68 @@ function ixe(e, t) {
}
return n;
}
-var Az = {
- symbolCircle: PR,
- symbolCross: bbe,
- symbolDiamond: Sbe,
- symbolSquare: Cbe,
- symbolStar: Dbe,
- symbolTriangle: Obe,
- symbolWye: Abe
-}, axe = Math.PI / 180, oxe = (e) => Az[`symbol${wz(e)}`] || PR, sxe = (e, t, n) => {
+var kz = {
+ symbolCircle: NR,
+ symbolCross: xbe,
+ symbolDiamond: Cbe,
+ symbolSquare: wbe,
+ symbolStar: Obe,
+ symbolTriangle: kbe,
+ symbolWye: jbe
+}, oxe = Math.PI / 180, sxe = (e) => kz[`symbol${Cz(e)}`] || NR, cxe = (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 * axe;
+ var r = 18 * oxe;
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;
}
-}, cxe = (e, t) => {
- Az[`symbol${wz(e)}`] = t;
-}, jz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = kz(kz({}, rxe(e, $be)), {}, {
+}, lxe = (e, t) => {
+ kz[`symbol${Cz(e)}`] = t;
+}, Az = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = Oz(Oz({}, ixe(e, exe)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = oxe(a), t = jbe().type(e).size(sxe(n, r, a))();
+ var e = sxe(a), t = Mbe().type(e).size(cxe(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = cR(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", Dz({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = sR(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", Ez({}, u, {
className: qr("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-jz.registerSymbol = cxe;
+Az.registerSymbol = lxe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var Mz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, Nz = (e, t) => {
+var jz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, Mz = (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) => {
- rR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ nR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, lxe = (e, t, n) => (r) => (e(t, n, r), null), Pz = (e, t, n) => {
+}, uxe = (e, t, n) => (r) => (e(t, n, r), null), Nz = (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];
- rR(i) && typeof a == "function" && (r ||= {}, r[i] = lxe(a, t, n));
+ nR(i) && typeof a == "function" && (r ||= {}, r[i] = uxe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function Fz(e, t) {
+function Pz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51877,30 +51877,30 @@ function Fz(e, t) {
}
return n;
}
-function uxe(e) {
+function dxe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Fz(Object(n), !0).forEach(function(t) {
- dxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fz(Object(n)).forEach(function(t) {
+ t % 2 ? Pz(Object(n), !0).forEach(function(t) {
+ fxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Pz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dxe(e, t, n) {
- return (t = fxe(t)) in e ? Object.defineProperty(e, t, {
+function fxe(e, t, n) {
+ return (t = pxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fxe(e) {
- var t = pxe(e, "string");
+function pxe(e) {
+ var t = mxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pxe(e, t) {
+function mxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51910,22 +51910,22 @@ function pxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Iz(e, t) {
- var n = uxe({}, e), r = t;
+function Fz(e, t) {
+ var n = dxe({}, 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 Lz() {
- return Lz = Object.assign ? Object.assign.bind() : function(e) {
+function Iz() {
+ return Iz = 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;
- }, Lz.apply(null, arguments);
+ }, Iz.apply(null, arguments);
}
-function Rz(e, t) {
+function Lz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51935,30 +51935,30 @@ function Rz(e, t) {
}
return n;
}
-function zz(e) {
+function Rz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Rz(Object(n), !0).forEach(function(t) {
- mxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Rz(Object(n)).forEach(function(t) {
+ t % 2 ? Lz(Object(n), !0).forEach(function(t) {
+ hxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Lz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mxe(e, t, n) {
- return (t = hxe(t)) in e ? Object.defineProperty(e, t, {
+function hxe(e, t, n) {
+ return (t = gxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hxe(e) {
- var t = gxe(e, "string");
+function gxe(e) {
+ var t = _xe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gxe(e, t) {
+function _xe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51968,7 +51968,7 @@ function gxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Bz = 32, _xe = {
+var zz = 32, vxe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -51976,20 +51976,20 @@ var Bz = 32, _xe = {
verticalAlign: "middle",
labelStyle: {}
};
-function vxe(e) {
+function yxe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function yxe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = Bz / 2, a = Bz / 6, o = Bz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function bxe(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = zz / 2, a = zz / 6, o = zz / 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: vxe(t.payload),
+ strokeDasharray: yxe(t.payload),
x1: 0,
y1: i,
- x2: Bz,
+ x2: zz,
y2: i,
className: "recharts-legend-icon"
});
@@ -51999,35 +51999,35 @@ function yxe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${Bz}M${2 * o},${i}
+ H${zz}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,${Bz / 8}h${Bz}v${Bz * 3 / 4}h${-Bz}z`,
+ d: `M0,${zz / 8}h${zz}v${zz * 3 / 4}h${-zz}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ B.isValidElement(t.legendIcon)) {
- var l = zz({}, t);
+ var l = Rz({}, t);
return delete l.legendIcon, /*#__PURE__*/ B.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ B.createElement(jz, {
+ return /*#__PURE__*/ B.createElement(Az, {
fill: s,
cx: i,
cy: i,
- size: Bz,
+ size: zz,
sizeType: "diameter",
type: c
});
}
-function bxe(e) {
+function xxe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: Bz,
- height: Bz
+ width: zz,
+ height: zz
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -52043,20 +52043,20 @@ function bxe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? zz({}, s) : {};
+ var p = typeof s == "object" ? Rz({}, 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", Lz({
+ return /*#__PURE__*/ B.createElement("li", Iz({
className: f,
style: l,
key: `legend-item-${r}`
- }, Pz(e, t, r)), /*#__PURE__*/ B.createElement(uR, {
+ }, Nz(e, t, r)), /*#__PURE__*/ B.createElement(lR, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ B.createElement(yxe, {
+ }, /*#__PURE__*/ B.createElement(bxe, {
data: t,
iconType: o,
inactiveColor: a
@@ -52066,8 +52066,8 @@ function bxe(e) {
}, m));
});
}
-var xxe = (e) => {
- var t = Iz(e, _xe), { payload: n, layout: r, align: i } = t;
+var Sxe = (e) => {
+ var t = Fz(e, vxe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -52077,11 +52077,11 @@ var xxe = (e) => {
return /*#__PURE__*/ B.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ B.createElement(bxe, Lz({}, t, { payload: n })));
+ }, /*#__PURE__*/ B.createElement(xxe, Iz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function Sxe(e, t) {
+function Cxe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -52091,77 +52091,77 @@ function Sxe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function Cxe(e, t) {
+function wxe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function Vz(e) {
+function Bz(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function wxe(e) {
+function Txe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function Hz(e) {
- return e != null && typeof e != "function" && wxe(e.length);
+function Vz(e) {
+ return e != null && typeof e != "function" && Txe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function Txe(e) {
+function Exe(e) {
return function(t) {
- return dz(t, e);
+ return uz(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function Uz(e) {
+function Hz(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function Exe(e) {
+function Dxe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function Dxe(e) {
+function Oxe(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 Wz(e) {
+function Uz(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 Oxe = "[object RegExp]", Gz = "[object String]", Kz = "[object Number]", qz = "[object Boolean]", Jz = "[object Arguments]", kxe = "[object Symbol]", Axe = "[object Date]", jxe = "[object Map]", Mxe = "[object Set]", Nxe = "[object Array]", Pxe = "[object ArrayBuffer]", Fxe = "[object Object]", Ixe = "[object DataView]", Lxe = "[object Uint8Array]", Rxe = "[object Uint8ClampedArray]", zxe = "[object Uint16Array]", Bxe = "[object Uint32Array]", Vxe = "[object Int8Array]", Hxe = "[object Int16Array]", Uxe = "[object Int32Array]", Wxe = "[object Float32Array]", Gxe = "[object Float64Array]", Yz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var kxe = "[object RegExp]", Wz = "[object String]", Gz = "[object Number]", Kz = "[object Boolean]", qz = "[object Arguments]", Axe = "[object Symbol]", jxe = "[object Date]", Mxe = "[object Map]", Nxe = "[object Set]", Pxe = "[object Array]", Fxe = "[object ArrayBuffer]", Ixe = "[object Object]", Lxe = "[object DataView]", Rxe = "[object Uint8Array]", zxe = "[object Uint8ClampedArray]", Bxe = "[object Uint16Array]", Vxe = "[object Uint32Array]", Hxe = "[object Int8Array]", Uxe = "[object Int16Array]", Wxe = "[object Int32Array]", Gxe = "[object Float32Array]", Kxe = "[object Float64Array]", Jz = 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 Kxe(e) {
- return Yz.Buffer !== void 0 && Yz.Buffer.isBuffer(e);
+function qxe(e) {
+ return Jz.Buffer !== void 0 && Jz.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function qxe(e, t) {
- return Xz(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function Jxe(e, t) {
+ return Yz(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function Xz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function Yz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (Uz(e)) return e;
+ if (Hz(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Xz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Yz(e[a], a, n, r, i);
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
}
if (e instanceof Date) return new Date(e.getTime());
@@ -52172,132 +52172,132 @@ function Xz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
if (e instanceof Map) {
let t = /* @__PURE__ */ new Map();
r.set(e, t);
- for (let [a, o] of e) t.set(a, Xz(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, Yz(o, a, n, r, i));
return t;
}
if (e instanceof Set) {
let t = /* @__PURE__ */ new Set();
r.set(e, t);
- for (let a of e) t.add(Xz(a, void 0, n, r, i));
+ for (let a of e) t.add(Yz(a, void 0, n, r, i));
return t;
}
- if (Kxe(e)) return e.subarray();
- if (Exe(e)) {
+ if (qxe(e)) return e.subarray();
+ if (Dxe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Xz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Yz(e[a], a, n, r, i);
return t;
}
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
if (e instanceof DataView) {
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
- return r.set(e, t), Zz(t, e, n, r, i), t;
+ return r.set(e, t), Xz(t, e, n, r, i), t;
}
if (typeof File < "u" && e instanceof File) {
let t = new File([e], e.name, { type: e.type });
- return r.set(e, t), Zz(t, e, n, r, i), t;
+ return r.set(e, t), Xz(t, e, n, r, i), t;
}
if (typeof Blob < "u" && e instanceof Blob) {
let t = new Blob([e], { type: e.type });
- return r.set(e, t), Zz(t, e, n, r, i), t;
+ return r.set(e, t), Xz(t, e, n, r, i), t;
}
if (e instanceof Error) {
let t = structuredClone(e);
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, Zz(t, e, n, r, i), t;
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, Xz(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), Zz(t, e, n, r, i), t;
+ return r.set(e, t), Xz(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), Zz(t, e, n, r, i), t;
+ return r.set(e, t), Xz(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), Zz(t, e, n, r, i), t;
+ return r.set(e, t), Xz(t, e, n, r, i), t;
}
- if (typeof e == "object" && Jxe(e)) {
+ if (typeof e == "object" && Yxe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), Zz(t, e, n, r, i), t;
+ return r.set(e, t), Xz(t, e, n, r, i), t;
}
return e;
}
-function Zz(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...Dxe(t)];
+function Xz(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...Oxe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = Xz(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = Yz(t[s], s, n, r, i));
}
}
-function Jxe(e) {
- switch (Wz(e)) {
- case Jz:
- case Nxe:
- case Pxe:
- case Ixe:
+function Yxe(e) {
+ switch (Uz(e)) {
case qz:
- case Axe:
- case Wxe:
+ case Pxe:
+ case Fxe:
+ case Lxe:
+ case Kz:
+ case jxe:
case Gxe:
- case Vxe:
+ case Kxe:
case Hxe:
case Uxe:
- case jxe:
- case Kz:
- case Fxe:
- case Oxe:
+ case Wxe:
case Mxe:
case Gz:
+ case Ixe:
case kxe:
- case Lxe:
+ case Nxe:
+ case Wz:
+ case Axe:
case Rxe:
case zxe:
- case Bxe: return !0;
+ case Bxe:
+ case Vxe: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function Yxe(e) {
- return Xz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function Xxe(e) {
+ return Yz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function Qz(e, t) {
+function Zz(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function $z(e) {
+function Qz(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function eB(e, t, n) {
- return typeof n == "function" ? tB(e, t, function e(t, r, i, a, o, s) {
+function $z(e, t, n) {
+ return typeof n == "function" ? eB(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? tB(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : eB(e, t, () => void 0);
+ return c === void 0 ? eB(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : $z(e, t, () => void 0);
}
-function tB(e, t, n, r, i = !1) {
+function eB(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return nB(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? tB(e, { ...t }, n, r, i) : Qz(e, t);
- default: return $z(e) && i ? typeof t != "string" || t === "" : Qz(e, t);
+ case "object": return tB(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? eB(e, { ...t }, n, r, i) : Zz(e, t);
+ default: return Qz(e) && i ? typeof t != "string" || t === "" : Zz(e, t);
}
}
-function nB(e, t, n, r, i = !1) {
+function tB(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return iB(e, t, n, r);
- if (t instanceof Map) return rB(e, t, n, r);
- if (t instanceof Set) return aB(e, t, n, r);
+ if (Array.isArray(t)) return rB(e, t, n, r);
+ if (t instanceof Map) return nB(e, t, n, r);
+ if (t instanceof Set) return iB(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) Uz(e) && (e = Object(e));
+ if (i) Hz(e) && (e = Object(e));
else {
- let t = Wz(e);
+ let t = Uz(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -52313,13 +52313,13 @@ function nB(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function rB(e, t, n, r) {
+function nB(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;
return !0;
}
-function iB(e, t, n, r) {
+function rB(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -52337,40 +52337,40 @@ function iB(e, t, n, r) {
}
return !0;
}
-function aB(e, t, n, r) {
- return t.size === 0 || e instanceof Set && iB([...e], [...t], n, r);
+function iB(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && rB([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function oB(e, t) {
- return eB(e, t, () => void 0);
+function aB(e, t) {
+ return $z(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function sB(e) {
- return e = Yxe(e), (t) => oB(t, e);
+function oB(e) {
+ return e = Xxe(e), (t) => aB(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function cB(e, t) {
- return qxe(e, (n, r, i, a) => {
+function sB(e, t) {
+ return Jxe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (Wz(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (Uz(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), Zz(t, e, i, a), t;
+ return a.set(e, t), Xz(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case Kz:
case Gz:
- case qz: {
+ case Wz:
+ case Kz: {
let t = new e.constructor(e?.valueOf());
- return Zz(t, e), t;
+ return Xz(t, e), t;
}
- case Jz: {
+ case qz: {
let t = {};
- return Zz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return Xz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -52379,79 +52379,79 @@ function cB(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function lB(e) {
- return cB(e);
+function cB(e) {
+ return sB(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var uB = /^(?:0|[1-9]\d*)$/;
-function dB(e, t = 2 ** 53 - 1) {
+var lB = /^(?:0|[1-9]\d*)$/;
+function uB(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 uB.test(e);
+ case "string": return lB.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function fB(e) {
- return typeof e == "object" && !!e && Wz(e) === "[object Arguments]";
+function dB(e) {
+ return typeof e == "object" && !!e && Uz(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function pB(e, t) {
+function fB(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && oz(t) && !(t in Object(e)) ? uz(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && az(t) && !(t in Object(e)) ? lz(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = sz(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || fB(r)) && dB(t) && Number(t) < r.length)) return !1;
+ let t = oz(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || dB(r)) && uB(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function mB(e, t) {
+function pB(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = sz(e);
+ case "number": e = oz(e);
}
- return t = lB(t), function(n) {
- let r = dz(n, e);
- return r === void 0 ? pB(n, e) : t === void 0 ? r === void 0 : oB(r, t);
+ return t = cB(t), function(n) {
+ let r = uz(n, e);
+ return r === void 0 ? fB(n, e) : t === void 0 ? r === void 0 : aB(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function hB(e) {
- if (e == null) return Vz;
+function mB(e) {
+ if (e == null) return Bz;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? mB(e[0], e[1]) : sB(e);
- default: return Txe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? pB(e[0], e[1]) : oB(e);
+ default: return Exe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function gB(e) {
+function hB(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function _B(e, t = Vz) {
- return Hz(e) ? Sxe(Array.from(e), Cxe(hB(t), 1)).map(gB) : [];
+function gB(e, t = Bz) {
+ return Vz(e) ? Cxe(Array.from(e), wxe(mB(t), 1)).map(hB) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function vB(e, t, n) {
- return t === !0 ? _B(e, n) : typeof t == "function" ? _B(e, t) : e;
+function _B(e, t, n) {
+ return t === !0 ? gB(e, n) : typeof t == "function" ? gB(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var yB = /* @__PURE__ */ mt(((e) => {
+var vB = /* @__PURE__ */ mt(((e) => {
var t = St(), n = ls();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -52496,60 +52496,60 @@ var yB = /* @__PURE__ */ mt(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), bB = /* @__PURE__ */ mt(((e, t) => {
- t.exports = yB();
-})), xB = /*#__PURE__*/ (0, B.createContext)(null), SB = bB(), CB = (e) => e, wB = () => {
- var e = (0, B.useContext)(xB);
- return e ? e.store.dispatch : CB;
-}, TB = () => {}, EB = () => TB, DB = (e, t) => e === t;
+})), yB = /* @__PURE__ */ mt(((e, t) => {
+ t.exports = vB();
+})), bB = /*#__PURE__*/ (0, B.createContext)(null), xB = yB(), SB = (e) => e, CB = () => {
+ var e = (0, B.useContext)(bB);
+ return e ? e.store.dispatch : SB;
+}, wB = () => {}, TB = () => wB, EB = (e, t) => e === t;
function Q(e) {
- var t = (0, B.useContext)(xB), n = (0, B.useMemo)(() => t ? (t) => {
+ var t = (0, B.useContext)(bB), n = (0, B.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : TB, [t, e]);
- return (0, SB.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : EB, t ? t.store.getState : TB, t ? t.store.getState : TB, n, DB);
+ } : wB, [t, e]);
+ return (0, xB.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : TB, t ? t.store.getState : wB, t ? t.store.getState : wB, n, EB);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function OB(e, t = `expected a function, instead received ${typeof e}`) {
+function DB(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function kB(e, t = `expected an object, instead received ${typeof e}`) {
+function OB(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function AB(e, t = "expected all items to be functions, instead received the following types: ") {
+function kB(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 jB = (e) => Array.isArray(e) ? e : [e];
-function MB(e) {
+var AB = (e) => Array.isArray(e) ? e : [e];
+function jB(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return AB(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return kB(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function NB(e, t) {
+function MB(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var PB = class {
+var NB = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, FB = typeof WeakRef < "u" ? WeakRef : PB, IB = 0, LB = 1;
-function RB() {
+}, PB = typeof WeakRef < "u" ? WeakRef : NB, FB = 0, IB = 1;
+function LB() {
return {
- s: IB,
+ s: FB,
v: void 0,
o: null,
p: null
};
}
-function zB(e, t = {}) {
- let n = RB(), { resultEqualityCheck: r } = t, i, a = 0;
+function RB(e, t = {}) {
+ let n = LB(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -52558,43 +52558,43 @@ function zB(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = RB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = LB(), e.set(n, t)) : t = r;
} else {
let e = t.p;
e === null && (t.p = e = /* @__PURE__ */ new Map());
let r = e.get(n);
- r === void 0 ? (t = RB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = LB(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === LB) c = t.v;
+ if (t.s === IB) 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 FB(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new PB(c) : c;
}
- return s.s = LB, s.v = c, c;
+ return s.s = IB, s.v = c, c;
}
return o.clearCache = () => {
- n = RB(), o.resetResultsCount();
+ n = LB(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function BB(e, ...t) {
+function zB(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()), OB(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = zB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), DB(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = RB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = jB(c), p = jB(u), m = MB(e), h = s(function() {
+ }, f = AB(c), p = AB(u), m = jB(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = NB(m, arguments);
+ let e = MB(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -52616,14 +52616,14 @@ function BB(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ BB(zB), VB = Object.assign((e, t = $) => {
- kB(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ zB(RB), BB = Object.assign((e, t = $) => {
+ OB(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: () => VB });
+}, { withTypes: () => BB });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function HB(e, t = 1) {
+function VB(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -52634,17 +52634,17 @@ function HB(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function UB(e, t, n) {
- return $z(n) && (typeof t == "number" && Hz(n) && dB(t) && t < n.length || typeof t == "string" && t in n) ? Qz(n[t], e) : !1;
+function HB(e, t, n) {
+ return Qz(n) && (typeof t == "number" && Vz(n) && uB(t) && t < n.length || typeof t == "string" && t in n) ? Zz(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function WB(e) {
+function UB(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var GB = (e, t, n) => {
+var WB = (e, t, n) => {
if (e !== t) {
- let r = WB(e), i = WB(t);
+ let r = UB(e), i = UB(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -52652,15 +52652,15 @@ var GB = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, KB = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qB = /^\w*$/;
-function JB(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || cz(e) ? !0 : typeof e == "string" && (qB.test(e) || !KB.test(e)) || t != null && Object.hasOwn(t, e);
+}, GB = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, KB = /^\w*$/;
+function qB(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || sz(e) ? !0 : typeof e == "string" && (KB.test(e) || !GB.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function YB(e, t, n, r) {
+function JB(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = Hz(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 = Vz(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]];
@@ -52668,16 +52668,16 @@ function YB(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) || JB(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || qB(e) ? e : {
key: e,
- path: uz(e)
+ path: lz(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 = GB(e.criteria[r], t.criteria[r], n[r]);
+ let i = WB(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -52685,25 +52685,25 @@ function YB(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function XB(e, ...t) {
+function YB(e, ...t) {
let n = t.length;
- return n > 1 && UB(e, t[0], t[1]) ? t = [] : n > 2 && UB(t[0], t[1], t[2]) && (t = [t[0]]), YB(e, HB(t), ["asc"]);
+ return n > 1 && HB(e, t[0], t[1]) ? t = [] : n > 2 && HB(t[0], t[1], t[2]) && (t = [t[0]]), JB(e, VB(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var ZB = (e) => e.legend.settings, QB = (e) => e.legend.size, $B = $([(e) => e.legend.payload, ZB], (e, t) => {
+var XB = (e) => e.legend.settings, ZB = (e) => e.legend.size, QB = $([(e) => e.legend.payload, XB], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? XB(r, n) : r;
+ return n ? YB(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function eV() {
- return Q($B);
+function $B() {
+ return Q(QB);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var tV = 1;
-function nV() {
+var eV = 1;
+function tV() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, B.useState)({
height: 0,
left: 0,
@@ -52718,7 +52718,7 @@ function nV() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > tV || Math.abs(i.left - t.left) > tV || Math.abs(i.top - t.top) > tV || Math.abs(i.width - t.width) > tV) && n({
+ (Math.abs(i.height - t.height) > eV || Math.abs(i.left - t.left) > eV || Math.abs(i.top - t.top) > eV || Math.abs(i.width - t.width) > eV) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -52735,26 +52735,26 @@ function nV() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function rV(e) {
+function nV(e) {
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
-var iV = typeof Symbol == "function" && Symbol.observable || "@@observable", aV = () => Math.random().toString(36).substring(7).split("").join("."), oV = {
- INIT: `@@redux/INIT${/* @__PURE__ */ aV()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ aV()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${aV()}`
+var rV = typeof Symbol == "function" && Symbol.observable || "@@observable", iV = () => Math.random().toString(36).substring(7).split("").join("."), aV = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ iV()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ iV()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${iV()}`
};
-function sV(e) {
+function oV(e) {
if (typeof e != "object" || !e) return !1;
let t = e;
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
}
-function cV(e, t, n) {
- if (typeof e != "function") throw Error(rV(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(rV(0));
+function sV(e, t, n) {
+ if (typeof e != "function") throw Error(nV(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(nV(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(rV(1));
- return n(cV)(e, t);
+ if (typeof n != "function") throw Error(nV(1));
+ return n(sV)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -52763,27 +52763,27 @@ function cV(e, t, n) {
}));
}
function u() {
- if (c) throw Error(rV(3));
+ if (c) throw Error(nV(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(rV(4));
- if (c) throw Error(rV(5));
+ if (typeof e != "function") throw Error(nV(4));
+ if (c) throw Error(nV(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(rV(6));
+ if (c) throw Error(nV(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!sV(e)) throw Error(rV(7));
- if (e.type === void 0) throw Error(rV(8));
- if (typeof e.type != "string") throw Error(rV(17));
- if (c) throw Error(rV(9));
+ if (!oV(e)) throw Error(nV(7));
+ if (e.type === void 0) throw Error(nV(8));
+ if (typeof e.type != "string") throw Error(nV(17));
+ if (c) throw Error(nV(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -52794,41 +52794,41 @@ function cV(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(rV(10));
- r = e, f({ type: oV.REPLACE });
+ if (typeof e != "function") throw Error(nV(10));
+ r = e, f({ type: aV.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(rV(11));
+ if (typeof t != "object" || !t) throw Error(nV(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [iV]() {
+ [rV]() {
return this;
}
};
}
- return f({ type: oV.INIT }), {
+ return f({ type: aV.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [iV]: m
+ [rV]: m
};
}
-function lV(e) {
+function cV(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: oV.INIT }) === void 0) throw Error(rV(12));
- if (n(void 0, { type: oV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(rV(13));
+ if (n(void 0, { type: aV.INIT }) === void 0) throw Error(nV(12));
+ if (n(void 0, { type: aV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(nV(13));
});
}
-function uV(e) {
+function lV(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -52836,7 +52836,7 @@ function uV(e) {
}
let r = Object.keys(n), i;
try {
- lV(n);
+ cV(n);
} catch (e) {
i = e;
}
@@ -52845,124 +52845,124 @@ function uV(e) {
let a = !1, o = {};
for (let i = 0; i < r.length; i++) {
let s = r[i], c = n[s], l = e[s], u = c(l, t);
- if (u === void 0) throw t && t.type, Error(rV(14));
+ if (u === void 0) throw t && t.type, Error(nV(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function dV(...e) {
+function uV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function fV(...e) {
+function dV(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(rV(15));
+ throw Error(nV(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = dV(...e.map((e) => e(o)))(i.dispatch), {
+ return a = uV(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function pV(e) {
- return sV(e) && "type" in e && typeof e.type == "string";
+function fV(e) {
+ return oV(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var mV = Symbol.for("immer-nothing"), hV = Symbol.for("immer-draftable"), gV = Symbol.for("immer-state");
-function _V(e, ...t) {
+var pV = Symbol.for("immer-nothing"), mV = Symbol.for("immer-draftable"), hV = Symbol.for("immer-state");
+function gV(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var vV = Object, yV = vV.getPrototypeOf, bV = "constructor", xV = "prototype", SV = "configurable", CV = "enumerable", wV = "writable", TV = "value", EV = (e) => !!e && !!e[gV];
-function DV(e) {
- return e ? AV(e) || LV(e) || !!e[hV] || !!e[bV]?.[hV] || RV(e) || zV(e) : !1;
+var _V = Object, vV = _V.getPrototypeOf, yV = "constructor", bV = "prototype", xV = "configurable", SV = "enumerable", CV = "writable", wV = "value", TV = (e) => !!e && !!e[hV];
+function EV(e) {
+ return e ? kV(e) || IV(e) || !!e[mV] || !!e[yV]?.[mV] || LV(e) || RV(e) : !1;
}
-var OV = vV[xV][bV].toString(), kV = /* @__PURE__ */ new WeakMap();
-function AV(e) {
- if (!e || !BV(e)) return !1;
- let t = yV(e);
- if (t === null || t === vV[xV]) return !0;
- let n = vV.hasOwnProperty.call(t, bV) && t[bV];
+var DV = _V[bV][yV].toString(), OV = /* @__PURE__ */ new WeakMap();
+function kV(e) {
+ if (!e || !zV(e)) return !1;
+ let t = vV(e);
+ if (t === null || t === _V[bV]) return !0;
+ let n = _V.hasOwnProperty.call(t, yV) && t[yV];
if (n === Object) return !0;
- if (!VV(n)) return !1;
- let r = kV.get(n);
- return r === void 0 && (r = Function.toString.call(n), kV.set(n, r)), r === OV;
+ if (!BV(n)) return !1;
+ let r = OV.get(n);
+ return r === void 0 && (r = Function.toString.call(n), OV.set(n, r)), r === DV;
}
-function jV(e, t, n = !0) {
- MV(e) === 0 ? (n ? Reflect.ownKeys(e) : vV.keys(e)).forEach((n) => {
+function AV(e, t, n = !0) {
+ jV(e) === 0 ? (n ? Reflect.ownKeys(e) : _V.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function MV(e) {
- let t = e[gV];
- return t ? t.type_ : LV(e) ? 1 : RV(e) ? 2 : zV(e) ? 3 : 0;
+function jV(e) {
+ let t = e[hV];
+ return t ? t.type_ : IV(e) ? 1 : LV(e) ? 2 : RV(e) ? 3 : 0;
}
-var NV = (e, t, n = MV(e)) => n === 2 ? e.has(t) : vV[xV].hasOwnProperty.call(e, t), PV = (e, t, n = MV(e)) => n === 2 ? e.get(t) : e[t], FV = (e, t, n, r = MV(e)) => {
+var MV = (e, t, n = jV(e)) => n === 2 ? e.has(t) : _V[bV].hasOwnProperty.call(e, t), NV = (e, t, n = jV(e)) => n === 2 ? e.get(t) : e[t], PV = (e, t, n, r = jV(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function IV(e, t) {
+function FV(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var LV = Array.isArray, RV = (e) => e instanceof Map, zV = (e) => e instanceof Set, BV = (e) => typeof e == "object", VV = (e) => typeof e == "function", HV = (e) => typeof e == "boolean";
-function UV(e) {
+var IV = Array.isArray, LV = (e) => e instanceof Map, RV = (e) => e instanceof Set, zV = (e) => typeof e == "object", BV = (e) => typeof e == "function", VV = (e) => typeof e == "boolean";
+function HV(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var WV = (e) => e.copy_ || e.base_, GV = (e) => e.modified_ ? e.copy_ : e.base_;
-function KV(e, t) {
- if (RV(e)) return new Map(e);
- if (zV(e)) return new Set(e);
- if (LV(e)) return Array[xV].slice.call(e);
- let n = AV(e);
+var UV = (e) => e.copy_ || e.base_, WV = (e) => e.modified_ ? e.copy_ : e.base_;
+function GV(e, t) {
+ if (LV(e)) return new Map(e);
+ if (RV(e)) return new Set(e);
+ if (IV(e)) return Array[bV].slice.call(e);
+ let n = kV(e);
if (t === !0 || t === "class_only" && !n) {
- let t = vV.getOwnPropertyDescriptors(e);
- delete t[gV];
+ let t = _V.getOwnPropertyDescriptors(e);
+ delete t[hV];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[wV] === !1 && (a[wV] = !0, a[SV] = !0), (a.get || a.set) && (t[i] = {
- [SV]: !0,
- [wV]: !0,
- [CV]: a[CV],
- [TV]: e[i]
+ a[CV] === !1 && (a[CV] = !0, a[xV] = !0), (a.get || a.set) && (t[i] = {
+ [xV]: !0,
+ [CV]: !0,
+ [SV]: a[SV],
+ [wV]: e[i]
});
}
- return vV.create(yV(e), t);
+ return _V.create(vV(e), t);
}
{
- let t = yV(e);
+ let t = vV(e);
if (t !== null && n) return { ...e };
- let r = vV.create(t);
- return vV.assign(r, e);
- }
-}
-function qV(e, t = !1) {
- return XV(e) || EV(e) || !DV(e) ? e : (MV(e) > 1 && vV.defineProperties(e, {
- set: YV,
- add: YV,
- clear: YV,
- delete: YV
- }), vV.freeze(e), t && jV(e, (e, t) => {
- qV(t, !0);
+ let r = _V.create(t);
+ return _V.assign(r, e);
+ }
+}
+function KV(e, t = !1) {
+ return YV(e) || TV(e) || !EV(e) ? e : (jV(e) > 1 && _V.defineProperties(e, {
+ set: JV,
+ add: JV,
+ clear: JV,
+ delete: JV
+ }), _V.freeze(e), t && AV(e, (e, t) => {
+ KV(t, !0);
}, !1), e);
}
-function JV() {
- _V(2);
+function qV() {
+ gV(2);
}
-var YV = { [TV]: JV };
-function XV(e) {
- return e === null || !BV(e) || vV.isFrozen(e);
+var JV = { [wV]: qV };
+function YV(e) {
+ return e === null || !zV(e) || _V.isFrozen(e);
}
-var ZV = "MapSet", QV = "Patches", $V = "ArrayMethods", eH = {};
-function tH(e) {
- let t = eH[e];
- return t || _V(0, e), t;
+var XV = "MapSet", ZV = "Patches", QV = "ArrayMethods", $V = {};
+function eH(e) {
+ let t = $V[e];
+ return t || gV(0, e), t;
}
-var nH = (e) => !!eH[e], rH, iH = () => rH, Xxe = (e, t) => ({
+var tH = (e) => !!$V[e], nH, rH = () => nH, Zxe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -52970,114 +52970,114 @@ var nH = (e) => !!eH[e], rH, iH = () => rH, Xxe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: nH(ZV) ? tH(ZV) : void 0,
- arrayMethodsPlugin_: nH($V) ? tH($V) : void 0
+ mapSetPlugin_: tH(XV) ? eH(XV) : void 0,
+ arrayMethodsPlugin_: tH(QV) ? eH(QV) : void 0
});
-function aH(e, t) {
- t && (e.patchPlugin_ = tH(QV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function iH(e, t) {
+ t && (e.patchPlugin_ = eH(ZV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function oH(e) {
- sH(e), e.drafts_.forEach(Zxe), e.drafts_ = null;
+function aH(e) {
+ oH(e), e.drafts_.forEach(Qxe), e.drafts_ = null;
}
-function sH(e) {
- e === rH && (rH = e.parent_);
+function oH(e) {
+ e === nH && (nH = e.parent_);
}
-var cH = (e) => rH = Xxe(rH, e);
-function Zxe(e) {
- let t = e[gV];
+var sH = (e) => nH = Zxe(nH, e);
+function Qxe(e) {
+ let t = e[hV];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function lH(e, t) {
+function cH(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[gV].modified_ && (oH(t), _V(4)), DV(e) && (e = uH(t, e));
+ n[hV].modified_ && (aH(t), gV(4)), EV(e) && (e = lH(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[gV].base_, e, t);
- } else e = uH(t, n);
- return Qxe(t, e, !0), oH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mV ? void 0 : e;
-}
-function uH(e, t) {
- if (XV(t)) return t;
- let n = t[gV];
- if (!n) return hH(t, e.handledSet_, e);
- if (!fH(n, e)) return t;
+ r && r.generateReplacementPatches_(n[hV].base_, e, t);
+ } else e = lH(t, n);
+ return $xe(t, e, !0), aH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === pV ? void 0 : e;
+}
+function lH(e, t) {
+ if (YV(t)) return t;
+ let n = t[hV];
+ if (!n) return mH(t, e.handledSet_, e);
+ if (!dH(n, e)) return t;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- mH(n, e);
+ pH(n, e);
}
return n.copy_;
}
-function Qxe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && qV(t, n);
+function $xe(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && KV(t, n);
}
-function dH(e) {
+function uH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var fH = (e, t) => e.scope_ === t, $xe = [];
-function pH(e, t, n, r) {
- let i = WV(e), a = e.type_;
- if (r !== void 0 && PV(i, r, a) === t) {
- FV(i, r, n, a);
+var dH = (e, t) => e.scope_ === t, eSe = [];
+function fH(e, t, n, r) {
+ let i = UV(e), a = e.type_;
+ if (r !== void 0 && NV(i, r, a) === t) {
+ PV(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- jV(i, (e, n) => {
- if (EV(n)) {
+ AV(i, (e, n) => {
+ if (TV(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? $xe;
- for (let e of o) FV(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? eSe;
+ for (let e of o) PV(i, e, n, a);
}
-function eSe(e, t, n) {
+function tSe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !fH(i, r)) return;
+ if (!i || !dH(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = GV(i);
- pH(e, i.draft_ ?? i, a, n), mH(i, r);
+ let a = WV(i);
+ fH(e, i.draft_ ?? i, a, n), pH(i, r);
});
}
-function mH(e, t) {
+function pH(e, t) {
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
let { patchPlugin_: n } = t;
if (n) {
let r = n.getPath(e);
r && n.generatePatches_(e, r, t);
}
- dH(e);
+ uH(e);
}
}
-function tSe(e, t, n) {
+function nSe(e, t, n) {
let { scope_: r } = e;
- if (EV(n)) {
- let i = n[gV];
- fH(i, r) && i.callbacks_.push(function() {
- xH(e), pH(e, n, GV(i), t);
+ if (TV(n)) {
+ let i = n[hV];
+ dH(i, r) && i.callbacks_.push(function() {
+ bH(e), fH(e, n, WV(i), t);
});
- } else DV(n) && e.callbacks_.push(function() {
- let i = WV(e);
- e.type_ === 3 ? i.has(n) && hH(n, r.handledSet_, r) : PV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && hH(PV(e.copy_, t, e.type_), r.handledSet_, r);
+ } else EV(n) && e.callbacks_.push(function() {
+ let i = UV(e);
+ e.type_ === 3 ? i.has(n) && mH(n, r.handledSet_, r) : NV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && mH(NV(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function hH(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || EV(e) || t.has(e) || !DV(e) || XV(e) ? e : (t.add(e), jV(e, (r, i) => {
- if (EV(i)) {
- let t = i[gV];
- fH(t, n) && (FV(e, r, GV(t), e.type_), dH(t));
- } else DV(i) && hH(i, t, n);
+function mH(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || TV(e) || t.has(e) || !EV(e) || YV(e) ? e : (t.add(e), AV(e, (r, i) => {
+ if (TV(i)) {
+ let t = i[hV];
+ dH(t, n) && (PV(e, r, WV(t), e.type_), uH(t));
+ } else EV(i) && mH(i, t, n);
}), e);
}
-function nSe(e, t) {
- let n = LV(e), r = {
+function rSe(e, t) {
+ let n = IV(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : iH(),
+ scope_: t ? t.scope_ : rH(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -53088,108 +53088,108 @@ function nSe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = gH;
- n && (i = [r], a = _H);
+ }, i = r, a = hH;
+ n && (i = [r], a = gH);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var gH = {
+var hH = {
get(e, t) {
- if (t === gV) return e;
+ if (t === hV) return e;
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
- let i = WV(e);
- if (!NV(i, t, e.type_)) return iSe(e, i, t);
+ let i = UV(e);
+ if (!MV(i, t, e.type_)) return aSe(e, i, t);
let a = i[t];
- if (e.finalized_ || !DV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && UV(t)) return a;
- if (a === vH(e.base_, t) || rSe(e, t, a)) {
- xH(e);
- let n = e.type_ === 1 ? +t : t, r = SH(e.scope_, a, e, n);
+ if (e.finalized_ || !EV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && HV(t)) return a;
+ if (a === _H(e.base_, t) || iSe(e, t, a)) {
+ bH(e);
+ let n = e.type_ === 1 ? +t : t, r = xH(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in WV(e);
+ return t in UV(e);
},
ownKeys(e) {
- return Reflect.ownKeys(WV(e));
+ return Reflect.ownKeys(UV(e));
},
set(e, t, n) {
- let r = yH(WV(e), t);
+ let r = vH(UV(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = vH(WV(e), t), i = r?.[gV];
+ let r = _H(UV(e), t), i = r?.[hV];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (IV(n, r) && (n !== void 0 || NV(e.base_, t, e.type_))) return !0;
- xH(e), bH(e);
+ if (FV(n, r) && (n !== void 0 || MV(e.base_, t, e.type_))) return !0;
+ bH(e), yH(e);
}
- return e.copy_[t] === n && (n !== void 0 || NV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), tSe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || MV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), nSe(e, t, n), !0);
},
deleteProperty(e, t) {
- return xH(e), vH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), bH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return bH(e), _H(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), yH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = WV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = UV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [wV]: !0,
- [SV]: e.type_ !== 1 || t !== "length",
- [CV]: r[CV],
- [TV]: n[t]
+ [CV]: !0,
+ [xV]: e.type_ !== 1 || t !== "length",
+ [SV]: r[SV],
+ [wV]: n[t]
};
},
defineProperty() {
- _V(11);
+ gV(11);
},
getPrototypeOf(e) {
- return yV(e.base_);
+ return vV(e.base_);
},
setPrototypeOf() {
- _V(12);
+ gV(12);
}
-}, _H = {};
-for (let e in gH) {
- let t = gH[e];
- _H[e] = function() {
+}, gH = {};
+for (let e in hH) {
+ let t = hH[e];
+ gH[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-_H.deleteProperty = function(e, t) {
- return _H.set.call(this, e, t, void 0);
-}, _H.set = function(e, t, n) {
- return gH.set.call(this, e[0], t, n, e[0]);
+gH.deleteProperty = function(e, t) {
+ return gH.set.call(this, e, t, void 0);
+}, gH.set = function(e, t, n) {
+ return hH.set.call(this, e[0], t, n, e[0]);
};
-function vH(e, t) {
- let n = e[gV];
- return (n ? WV(n) : e)[t];
-}
-function rSe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !DV(n) || n[gV] ? !1 : e.baseRefs_.has(n);
+function _H(e, t) {
+ let n = e[hV];
+ return (n ? UV(n) : e)[t];
}
function iSe(e, t, n) {
- let r = yH(t, n);
- return r ? TV in r ? r[TV] : r.get?.call(e.draft_) : void 0;
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !EV(n) || n[hV] ? !1 : e.baseRefs_.has(n);
}
-function yH(e, t) {
+function aSe(e, t, n) {
+ let r = vH(t, n);
+ return r ? wV in r ? r[wV] : r.get?.call(e.draft_) : void 0;
+}
+function vH(e, t) {
if (!(t in e)) return;
- let n = yV(e);
+ let n = vV(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = yV(n);
+ n = vV(n);
}
}
-function bH(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && bH(e.parent_));
+function yH(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && yH(e.parent_));
}
-function xH(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), KV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function bH(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), GV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var aSe = class {
+var oSe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (VV(e) && !VV(t)) {
+ if (BV(e) && !BV(t)) {
let n = t;
t = e;
let r = this;
@@ -53197,30 +53197,30 @@ var aSe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- VV(t) || _V(6), n !== void 0 && !VV(n) && _V(7);
+ BV(t) || gV(6), n !== void 0 && !BV(n) && gV(7);
let r;
- if (DV(e)) {
- let i = cH(this), a = SH(i, e, void 0), o = !0;
+ if (EV(e)) {
+ let i = sH(this), a = xH(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? oH(i) : sH(i);
+ o ? aH(i) : oH(i);
}
- return aH(i, n), lH(r, i);
+ return iH(i, n), cH(r, i);
}
- if (!e || !BV(e)) {
- if (r = t(e), r === void 0 && (r = e), r === mV && (r = void 0), this.autoFreeze_ && qV(r, !0), n) {
+ if (!e || !zV(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === pV && (r = void 0), this.autoFreeze_ && KV(r, !0), n) {
let t = [], i = [];
- tH(QV).generateReplacementPatches_(e, r, {
+ eH(ZV).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- _V(1, e);
+ gV(1, e);
}, this.produceWithPatches = (e, t) => {
- if (VV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (BV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -53229,18 +53229,18 @@ var aSe = class {
n,
r
];
- }, HV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), HV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), HV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, VV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), VV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), VV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- DV(e) || _V(8), EV(e) && (e = CH(e));
- let t = cH(this), n = SH(t, e, void 0);
- return n[gV].isManual_ = !0, sH(t), n;
+ EV(e) || gV(8), TV(e) && (e = SH(e));
+ let t = sH(this), n = xH(t, e, void 0);
+ return n[hV].isManual_ = !0, oH(t), n;
}
finishDraft(e, t) {
- let n = e && e[gV];
- (!n || !n.isManual_) && _V(9);
+ let n = e && e[hV];
+ (!n || !n.isManual_) && gV(9);
let { scope_: r } = n;
- return aH(r, t), lH(void 0, r);
+ return iH(r, t), cH(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -53264,48 +53264,48 @@ var aSe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = tH(QV).applyPatches_;
- return EV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = eH(ZV).applyPatches_;
+ return TV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function SH(e, t, n, r) {
- let [i, a] = RV(t) ? tH(ZV).proxyMap_(t, n) : zV(t) ? tH(ZV).proxySet_(t, n) : nSe(t, n);
- return (n?.scope_ ?? iH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? eSe(n, a, r) : a.callbacks_.push(function(e) {
+function xH(e, t, n, r) {
+ let [i, a] = LV(t) ? eH(XV).proxyMap_(t, n) : RV(t) ? eH(XV).proxySet_(t, n) : rSe(t, n);
+ return (n?.scope_ ?? rH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? tSe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function CH(e) {
- return EV(e) || _V(10, e), wH(e);
+function SH(e) {
+ return TV(e) || gV(10, e), CH(e);
}
-function wH(e) {
- if (!DV(e) || XV(e)) return e;
- let t = e[gV], n, r = !0;
+function CH(e) {
+ if (!EV(e) || YV(e)) return e;
+ let t = e[hV], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = KV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = KV(e, !0);
- return jV(n, (e, t) => {
- FV(n, e, wH(t));
+ t.finalized_ = !0, n = GV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = GV(e, !0);
+ return AV(n, (e, t) => {
+ PV(n, e, CH(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var TH = new aSe().produce;
+var wH = new oSe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function EH(e) {
+function TH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var oSe = EH(), sSe = EH, cSe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? dV : dV.apply(null, arguments);
+var sSe = TH(), cSe = TH, lSe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? uV : uV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function DH(e, t) {
+function EH(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(cU(0));
+ if (!r) throw Error(sU(0));
return {
type: e,
payload: r.payload,
@@ -53318,9 +53318,9 @@ function DH(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => pV(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => fV(t) && t.type === e, n;
}
-var OH = class e extends Array {
+var DH = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -53334,29 +53334,29 @@ var OH = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function kH(e) {
- return DV(e) ? TH(e, () => {}) : e;
+function OH(e) {
+ return EV(e) ? wH(e, () => {}) : e;
}
-function AH(e, t, n) {
+function kH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function lSe(e) {
+function uSe(e) {
return typeof e == "boolean";
}
-var uSe = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new OH();
- return t && (lSe(t) ? a.push(oSe) : a.push(sSe(t.extraArgument))), a;
-}, jH = "RTK_autoBatch", MH = () => (e) => ({
+var dSe = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new DH();
+ return t && (uSe(t) ? a.push(sSe) : a.push(cSe(t.extraArgument))), a;
+}, AH = "RTK_autoBatch", jH = () => (e) => ({
payload: e,
- meta: { [jH]: !0 }
-}), NH = (e) => (t) => {
+ meta: { [AH]: !0 }
+}), MH = (e) => (t) => {
setTimeout(t, e);
-}, dSe = (e, t) => (n) => {
+}, fSe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, PH = (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 ? dSe(window.requestAnimationFrame, 100) : NH(10) : e.type === "callback" ? e.queueNotification : NH(e.timeout), l = () => {
+}, NH = (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 ? fSe(window.requestAnimationFrame, 100) : MH(10) : e.type === "callback" ? e.queueNotification : MH(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -53368,37 +53368,37 @@ var uSe = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[jH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[AH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, fSe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new OH(e);
- return n && r.push(PH(typeof n == "object" ? n : void 0)), r;
+}, pSe = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new DH(e);
+ return n && r.push(NH(typeof n == "object" ? n : void 0)), r;
};
-function pSe(e) {
- let t = uSe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function mSe(e) {
+ let t = dSe(), { 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 (sV(n)) c = uV(n);
- else throw Error(cU(1));
+ else if (oV(n)) c = lV(n);
+ else throw Error(sU(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = dV;
- i && (u = cSe({
+ let u = uV;
+ i && (u = lSe({
trace: !1,
...typeof i == "object" && i
}));
- let d = fSe(fV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return cV(c, o, p);
+ let d = pSe(dV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return sV(c, o, p);
}
-function FH(e) {
+function PH(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(cU(28));
- if (r in t) throw Error(cU(29));
+ if (!r) throw Error(sU(28));
+ if (r in t) throw Error(sU(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -53423,25 +53423,25 @@ function FH(e) {
r
];
}
-function mSe(e) {
+function hSe(e) {
return typeof e == "function";
}
-function hSe(e, t) {
- let [n, r, i] = FH(t), a;
- if (mSe(e)) a = () => kH(e());
+function gSe(e, t) {
+ let [n, r, i] = PH(t), a;
+ if (hSe(e)) a = () => OH(e());
else {
- let t = kH(e);
+ let t = OH(e);
a = () => t;
}
function o(e = a(), t) {
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
if (n) {
- if (EV(e)) {
+ if (TV(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (DV(e)) return TH(e, (e) => n(e, t));
+ if (EV(e)) return wH(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -53456,20 +53456,20 @@ function hSe(e, t) {
}
return o.getInitialState = a, o;
}
-var gSe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", _Se = (e = 21) => {
+var _Se = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", vSe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += gSe[Math.random() * 64 | 0];
+ for (; n--;) t += _Se[Math.random() * 64 | 0];
return t;
-}, vSe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function ySe(e, t) {
+}, ySe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function bSe(e, t) {
return `${e}/${t}`;
}
-function bSe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[vSe];
+function xSe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[ySe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(cU(11));
- let i = (typeof e.reducers == "function" ? e.reducers(SSe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(sU(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(CSe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -53477,8 +53477,8 @@ function bSe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(cU(12));
- if (n in o.sliceCaseReducersByType) throw Error(cU(13));
+ if (!n) throw Error(sU(12));
+ if (n in o.sliceCaseReducersByType) throw Error(sU(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -53497,17 +53497,17 @@ function bSe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: ySe(n, r),
+ type: bSe(n, r),
createNotation: typeof e.reducers == "function"
};
- wSe(a) ? ESe(o, a, s, t) : CSe(o, a, s);
+ TSe(a) ? DSe(o, a, s, t) : wSe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? FH(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? PH(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return hSe(e.initialState, (e) => {
+ return gSe(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);
@@ -53524,12 +53524,12 @@ function bSe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = AH(d, r, m)), i;
+ return i === void 0 && n && (i = kH(d, r, m)), i;
}
function i(t = l) {
- return AH(AH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return kH(kH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = xSe(a, t, () => AH(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = SSe(a, t, () => kH(d, t, m), n);
return r;
});
}
@@ -53563,15 +53563,15 @@ function bSe({ creators: e } = {}) {
return g;
};
}
-function xSe(e, t, n, r) {
+function SSe(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 IH = /* @__PURE__ */ bSe();
-function SSe() {
+var FH = /* @__PURE__ */ xSe();
+function CSe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -53595,57 +53595,57 @@ function SSe() {
asyncThunk: e
};
}
-function CSe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function wSe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !TSe(r)) throw Error(cU(17));
+ if (n && !ESe(r)) throw Error(sU(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? DH(e, o) : DH(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? EH(e, o) : EH(e));
}
-function wSe(e) {
+function TSe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function TSe(e) {
+function ESe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function ESe({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(cU(18));
+function DSe({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(sU(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, {
- fulfilled: o || LH,
- pending: s || LH,
- rejected: c || LH,
- settled: l || LH
+ fulfilled: o || IH,
+ pending: s || IH,
+ rejected: c || IH,
+ settled: l || IH
});
}
-function LH() {}
-var DSe = "task", RH = "listener", zH = "completed", BH = "cancelled", OSe = `task-${BH}`, kSe = `task-${zH}`, VH = `${RH}-${BH}`, ASe = `${RH}-${zH}`, HH = class {
+function IH() {}
+var OSe = "task", LH = "listener", RH = "completed", zH = "cancelled", kSe = `task-${zH}`, ASe = `task-${RH}`, BH = `${LH}-${zH}`, jSe = `${LH}-${RH}`, VH = class {
constructor(e) {
- this.code = e, this.message = `${DSe} ${BH} (reason: ${e})`;
+ this.code = e, this.message = `${OSe} ${zH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, UH = (e, t) => {
- if (typeof e != "function") throw TypeError(cU(32));
-}, WH = () => {}, GH = (e, t = WH) => (e.catch(t), e), KH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), qH = (e) => {
- if (e.aborted) throw new HH(e.reason);
+}, HH = (e, t) => {
+ if (typeof e != "function") throw TypeError(sU(32));
+}, UH = () => {}, WH = (e, t = UH) => (e.catch(t), e), GH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), KH = (e) => {
+ if (e.aborted) throw new VH(e.reason);
};
-function JH(e, t) {
- let n = WH;
+function qH(e, t) {
+ let n = UH;
return new Promise((r, i) => {
- let a = () => i(new HH(e.reason));
+ let a = () => i(new VH(e.reason));
if (e.aborted) {
a();
return;
}
- n = KH(e, a), t.finally(() => n()).then(r, i);
+ n = GH(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = WH;
+ n = UH;
});
}
-var jSe = async (e, t) => {
+var MSe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -53653,40 +53653,40 @@ var jSe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof HH ? "cancelled" : "rejected",
+ status: e instanceof VH ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, YH = (e) => (t) => GH(JH(e, t).then((t) => (qH(e), t))), XH = (e) => {
- let t = YH(e);
+}, JH = (e) => (t) => WH(qH(e, t).then((t) => (KH(e), t))), YH = (e) => {
+ let t = JH(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: ZH } = Object, QH = {}, $H = "listenerMiddleware", MSe = (e, t) => {
- let n = (t) => KH(e, () => t.abort(e.reason));
+}, { assign: XH } = Object, ZH = {}, QH = "listenerMiddleware", NSe = (e, t) => {
+ let n = (t) => GH(e, () => t.abort(e.reason));
return (r, i) => {
- UH(r, "taskExecutor");
+ HH(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = jSe(async () => {
- qH(e), qH(a.signal);
+ let o = MSe(async () => {
+ KH(e), KH(a.signal);
let t = await r({
- pause: YH(a.signal),
- delay: XH(a.signal),
+ pause: JH(a.signal),
+ delay: YH(a.signal),
signal: a.signal
});
- return qH(a.signal), t;
- }, () => a.abort(kSe));
- return i?.autoJoin && t.push(o.catch(WH)), {
- result: YH(e)(o),
+ return KH(a.signal), t;
+ }, () => a.abort(ASe));
+ return i?.autoJoin && t.push(o.catch(UH)), {
+ result: JH(e)(o),
cancel() {
- a.abort(OSe);
+ a.abort(kSe);
}
};
};
-}, NSe = (e, t) => {
+}, PSe = (e, t) => {
let n = async (n, r) => {
- qH(t);
+ KH(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -53704,47 +53704,47 @@ var jSe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await JH(t, Promise.race(a));
- return qH(t), e;
+ let e = await qH(t, Promise.race(a));
+ return KH(t), e;
} finally {
i();
}
};
- return ((e, t) => GH(n(e, t)));
-}, eU = (e) => {
+ return ((e, t) => WH(n(e, t)));
+}, $H = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = DH(t).match;
+ if (t) i = EH(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(cU(21));
- return UH(a, "options.listener"), {
+ else if (!i) throw Error(sU(21));
+ return HH(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, tU = /* @__PURE__ */ ZH((e) => {
- let { type: t, predicate: n, effect: r } = eU(e);
+}, eU = /* @__PURE__ */ XH((e) => {
+ let { type: t, predicate: n, effect: r } = $H(e);
return {
- id: _Se(),
+ id: vSe(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(cU(22));
+ throw Error(sU(22));
}
};
-}, { withTypes: () => tU }), nU = (e, t) => {
- let { type: n, effect: r, predicate: i } = eU(t);
+}, { withTypes: () => eU }), tU = (e, t) => {
+ let { type: n, effect: r, predicate: i } = $H(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, rU = (e) => {
+}, nU = (e) => {
e.pending.forEach((e) => {
- e.abort(VH);
+ e.abort(BH);
});
-}, PSe = (e, t) => () => {
- for (let e of t.keys()) rU(e);
+}, FSe = (e, t) => () => {
+ for (let e of t.keys()) nU(e);
e.clear();
-}, iU = (e, t, n) => {
+}, rU = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -53752,74 +53752,74 @@ var jSe = async (e, t) => {
throw e;
}, 0);
}
-}, aU = /* @__PURE__ */ ZH(/* @__PURE__ */ DH(`${$H}/add`), { withTypes: () => aU }), FSe = /* @__PURE__ */ DH(`${$H}/removeAll`), oU = /* @__PURE__ */ ZH(/* @__PURE__ */ DH(`${$H}/remove`), { withTypes: () => oU }), ISe = (...e) => {
- console.error(`${$H}/error`, ...e);
-}, sU = (e = {}) => {
+}, iU = /* @__PURE__ */ XH(/* @__PURE__ */ EH(`${QH}/add`), { withTypes: () => iU }), ISe = /* @__PURE__ */ EH(`${QH}/removeAll`), aU = /* @__PURE__ */ XH(/* @__PURE__ */ EH(`${QH}/remove`), { withTypes: () => aU }), LSe = (...e) => {
+ console.error(`${QH}/error`, ...e);
+}, oU = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = ISe } = e;
- UH(o, "onError");
+ }, { extra: a, onError: o = LSe } = e;
+ HH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && rU(e);
+ e.unsubscribe(), t?.cancelActive && nU(e);
}), c = ((e) => {
- let n = nU(t, e) ?? tU(e);
+ let n = tU(t, e) ?? eU(e);
return s(n);
});
- ZH(c, { withTypes: () => c });
+ XH(c, { withTypes: () => c });
let l = (e) => {
- let n = nU(t, e);
- return n && (n.unsubscribe(), e.cancelActive && rU(n)), !!n;
+ let n = tU(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && nU(n)), !!n;
};
- ZH(l, { withTypes: () => l });
+ XH(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = NSe(c, u.signal), f = [];
+ let u = new AbortController(), d = PSe(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, ZH({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, XH({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: XH(u.signal),
- pause: YH(u.signal),
+ delay: YH(u.signal),
+ pause: JH(u.signal),
extra: a,
signal: u.signal,
- fork: MSe(u.signal, f),
+ fork: NSe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(VH), n.delete(e));
+ e !== u && (e.abort(BH), n.delete(e));
});
},
cancel: () => {
- u.abort(VH), e.pending.delete(u);
+ u.abort(BH), e.pending.delete(u);
},
throwIfCancelled: () => {
- qH(u.signal);
+ KH(u.signal);
}
})));
} catch (e) {
- e instanceof HH || iU(o, e, { raisedBy: "effect" });
+ e instanceof VH || rU(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(ASe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(jSe), i(e), e.pending.delete(u);
}
- }, d = PSe(t, n);
+ }, d = FSe(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!pV(r)) return n(r);
- if (aU.match(r)) return c(r.payload);
- if (FSe.match(r)) {
+ if (!fV(r)) return n(r);
+ if (iU.match(r)) return c(r.payload);
+ if (ISe.match(r)) {
d();
return;
}
- if (oU.match(r)) return l(r.payload);
+ if (aU.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === QH) throw Error(cU(23));
+ if (i === ZH) throw Error(sU(23));
return i;
}, s;
try {
@@ -53830,13 +53830,13 @@ var jSe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, iU(o, e, { raisedBy: "predicate" });
+ s = !1, rU(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = QH;
+ i = ZH;
}
return s;
},
@@ -53845,12 +53845,12 @@ var jSe = async (e, t) => {
clearListeners: d
};
};
-function cU(e) {
+function sU(e) {
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
//#endregion
//#region node_modules/recharts/es6/state/layoutSlice.js
-var lU = IH({
+var cU = FH({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -53878,23 +53878,23 @@ var lU = IH({
e.scale = t.payload;
}
}
-}), { setMargin: LSe, setLayout: RSe, setChartSize: zSe, setScale: BSe } = lU.actions, VSe = lU.reducer;
+}), { setMargin: RSe, setLayout: zSe, setChartSize: BSe, setScale: VSe } = cU.actions, HSe = cU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function uU(e, t, n) {
+function lU(e, t, n) {
return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;
}
//#endregion
//#region node_modules/recharts/es6/util/isWellBehavedNumber.js
-function dU(e) {
+function uU(e) {
return Number.isFinite(e);
}
-function fU(e) {
+function dU(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function pU(e, t) {
+function fU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53904,30 +53904,30 @@ function pU(e, t) {
}
return n;
}
-function mU(e) {
+function pU(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) {
- HSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pU(Object(n)).forEach(function(t) {
+ t % 2 ? fU(Object(n), !0).forEach(function(t) {
+ USe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function HSe(e, t, n) {
- return (t = USe(t)) in e ? Object.defineProperty(e, t, {
+function USe(e, t, n) {
+ return (t = WSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function USe(e) {
- var t = WSe(e, "string");
+function WSe(e) {
+ var t = GSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WSe(e, t) {
+function GSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53937,63 +53937,63 @@ function WSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hU(e, t, n) {
- return Cz(e) || Cz(t) ? n : _z(t) ? dz(e, t, n) : typeof t == "function" ? t(e) : n;
+function mU(e, t, n) {
+ return Sz(e) || Sz(t) ? n : gz(t) ? uz(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var GSe = (e, t, n) => {
+var KSe = (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 mU(mU({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return mU(mU({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return pU(pU({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return pU(pU({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, gU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", _U = (e, t, n, r) => {
+}, hU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", gU = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
-}, vU = (e, t, n) => {
+}, _U = (e, t, n) => {
if (!e) return null;
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 ? mz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? pz(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 dU(i) ? {
+ return uU(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(Tz) : c && l ? l.map((e, t) => {
+ }).filter(wz) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(Tz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(wz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(Tz) : o.domain().map((e, t) => {
+ }).filter(wz) : o.domain().map((e, t) => {
var n = o.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(Tz);
-}, yU = (e, t) => {
+ }).filter(wz);
+}, vU = (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;
-}, KSe = {
+}, qSe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -54001,16 +54001,16 @@ var GSe = (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 = hz(c) ? l : c;
+ var c = s[1], l = s[0], u = mz(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Gbe,
- none: rz,
- silhouette: Kbe,
- wiggle: qbe,
+ expand: Kbe,
+ none: nz,
+ silhouette: qbe,
+ wiggle: Jbe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -54018,70 +54018,70 @@ var GSe = (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 = hz(o[1]) ? o[0] : o[1];
+ var s = mz(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, qSe = (e, t, n) => {
- var r = KSe[n] ?? rz, i = Wbe().keys(t).value((e, t) => Number(hU(e, t, 0))).order(iz).offset(r)(e);
+}, JSe = (e, t, n) => {
+ var r = qSe[n] ?? nz, i = Gbe().keys(t).value((e, t) => Number(mU(e, t, 0))).order(rz).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = hU(e[i], t[r], 0);
+ var a = mU(e[i], t[r], 0);
Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function bU(e) {
+function yU(e) {
return e == null ? void 0 : String(e);
}
-function xU(e) {
+function bU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !Cz(i[t.dataKey])) {
- var s = Sz(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !Sz(i[t.dataKey])) {
+ var s = xz(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 = hU(i, Cz(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = mU(i, Sz(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var SU = (e) => {
+var xU = (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 = hU(a, t.dataKey, t.scale.domain()[o]);
- if (Cz(s)) return null;
+ var s = mU(a, t.dataKey, t.scale.domain()[o]);
+ if (Sz(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, CU = (e) => {
+}, SU = (e) => {
var { numericAxis: t } = e, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, JSe = (e) => {
+}, YSe = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, YSe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], XSe = (e, t, n) => {
- if (e != null) return YSe(Object.keys(e).reduce((r, i) => {
+}, XSe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], ZSe = (e, t, n) => {
+ if (e != null) return XSe(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 = JSe(uU(r, t, n));
- return !dU(i[0]) || !dU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = YSe(lU(r, t, n));
+ return !uU(i[0]) || !uU(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])];
}, [Infinity, -Infinity]));
-}, wU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, TU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, EU = (e, t, n) => {
+}, CU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, wU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, TU = (e, t, n) => {
if (e && e.scale && e.scale.bandwidth) {
var r = e.scale.bandwidth();
if (!n || r > 0) return r;
}
if (e && t && t.length >= 2) {
- for (var i = XB(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = YB(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
var c = i[o], l = i[o - 1];
a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);
}
@@ -54089,26 +54089,26 @@ var SU = (e) => {
}
return n ? void 0 : 0;
};
-function DU(e) {
+function EU(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return mU(mU({}, t), {}, {
+ return pU(pU({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function OU(e, t) {
+function DU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var ZSe = (e, t) => {
+var QSe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, QSe = (e, t) => t === "centric" ? e.angle : e.radius, kU = (e) => e.layout.width, AU = (e) => e.layout.height, $Se = (e) => e.layout.scale, jU = (e) => e.layout.margin, MU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), NU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), eCe = "data-recharts-item-index";
+}, $Se = (e, t) => t === "centric" ? e.angle : e.radius, OU = (e) => e.layout.width, kU = (e) => e.layout.height, eCe = (e) => e.layout.scale, AU = (e) => e.layout.margin, jU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), MU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), tCe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function PU(e, t) {
+function NU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54118,30 +54118,30 @@ function PU(e, t) {
}
return n;
}
-function FU(e) {
+function PU(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) {
- tCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PU(Object(n)).forEach(function(t) {
+ t % 2 ? NU(Object(n), !0).forEach(function(t) {
+ nCe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : NU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tCe(e, t, n) {
- return (t = nCe(t)) in e ? Object.defineProperty(e, t, {
+function nCe(e, t, n) {
+ return (t = rCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nCe(e) {
- var t = rCe(e, "string");
+function rCe(e) {
+ var t = iCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rCe(e, t) {
+function iCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54151,58 +54151,58 @@ function rCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iCe = (e) => e.brush.height;
-function aCe(e) {
- return NU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
+var aCe = (e) => e.brush.height;
function oCe(e) {
- return NU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return MU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function sCe(e) {
- return MU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return MU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function cCe(e) {
- return MU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return jU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+function lCe(e) {
+ return jU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var IU = $([
+var FU = $([
+ OU,
kU,
AU,
- jU,
- iCe,
aCe,
oCe,
sCe,
cCe,
- ZB,
- QB
+ lCe,
+ XB,
+ ZB
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = FU(FU({}, {
+ }, d = PU(PU({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = GSe(d, c, l);
+ d.bottom += r, d = KSe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return FU(FU({ brushBottom: f }, d), {}, {
+ return PU(PU({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), lCe = $(IU, (e) => ({
+}), uCe = $(FU, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), LU = $(kU, AU, (e, t) => ({
+})), IU = $(OU, kU, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), uCe = /*#__PURE__*/ (0, B.createContext)(null), RU = () => (0, B.useContext)(uCe) != null, zU = (e) => e.brush, BU = $([
- zU,
- IU,
- jU
+})), dCe = /*#__PURE__*/ (0, B.createContext)(null), LU = () => (0, B.useContext)(dCe) != null, RU = (e) => e.brush, zU = $([
+ RU,
+ FU,
+ AU
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -54211,7 +54211,7 @@ var IU = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function dCe(e, t, { signal: n, edges: r } = {}) {
+function fCe(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 = () => {
@@ -54236,11 +54236,11 @@ function dCe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function fCe(e, t = 0, n = {}) {
+function pCe(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 = dCe(function(...t) {
+ let s, c = null, l = fCe(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);
@@ -54249,9 +54249,9 @@ function fCe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function pCe(e, t = 0, n = {}) {
+function mCe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return fCe(e, t, {
+ return pCe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -54259,7 +54259,7 @@ function pCe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var VU = function(e, t) {
+var BU = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -54268,7 +54268,7 @@ var VU = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, HU = {
+}, VU = {
width: "100%",
height: "100%",
debounce: 0,
@@ -54277,45 +54277,45 @@ var VU = function(e, t) {
width: -1,
height: -1
}
-}, UU = (e, t, n) => {
- var { width: r = HU.width, height: i = HU.height, aspect: a, maxHeight: o } = n, s = gz(r) ? e : Number(r), c = gz(i) ? t : Number(i);
+}, HU = (e, t, n) => {
+ var { width: r = VU.width, height: i = VU.height, aspect: a, maxHeight: o } = n, s = hz(r) ? e : Number(r), c = hz(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
};
-}, mCe = {
+}, hCe = {
width: 0,
height: 0,
overflow: "visible"
-}, hCe = {
+}, gCe = {
width: 0,
overflowX: "visible"
-}, gCe = {
+}, _Ce = {
height: 0,
overflowY: "visible"
-}, _Ce = {}, vCe = (e) => {
- var { width: t, height: n } = e, r = gz(t), i = gz(n);
- return r && i ? mCe : r ? hCe : i ? gCe : _Ce;
+}, vCe = {}, yCe = (e) => {
+ var { width: t, height: n } = e, r = hz(t), i = hz(n);
+ return r && i ? hCe : r ? gCe : i ? _Ce : vCe;
};
-function yCe(e) {
+function bCe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = HU.width, a = HU.height) : i === void 0 ? i = r && r > 0 ? void 0 : HU.width : a === void 0 && (a = r && r > 0 ? void 0 : HU.height), {
+ return i === void 0 && a === void 0 ? (i = VU.width, a = VU.height) : i === void 0 ? i = r && r > 0 ? void 0 : VU.width : a === void 0 && (a = r && r > 0 ? void 0 : VU.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function WU() {
- return WU = Object.assign ? Object.assign.bind() : function(e) {
+function UU() {
+ return UU = 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;
- }, WU.apply(null, arguments);
+ }, UU.apply(null, arguments);
}
-function GU(e, t) {
+function WU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54325,30 +54325,30 @@ function GU(e, t) {
}
return n;
}
-function KU(e) {
+function GU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GU(Object(n), !0).forEach(function(t) {
- bCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GU(Object(n)).forEach(function(t) {
+ t % 2 ? WU(Object(n), !0).forEach(function(t) {
+ xCe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bCe(e, t, n) {
- return (t = xCe(t)) in e ? Object.defineProperty(e, t, {
+function xCe(e, t, n) {
+ return (t = SCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xCe(e) {
- var t = SCe(e, "string");
+function SCe(e) {
+ var t = CCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SCe(e, t) {
+function CCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54358,19 +54358,19 @@ function SCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qU = /*#__PURE__*/ (0, B.createContext)(HU.initialDimension);
-function CCe(e) {
- return fU(e.width) && fU(e.height);
+var KU = /*#__PURE__*/ (0, B.createContext)(VU.initialDimension);
+function wCe(e) {
+ return dU(e.width) && dU(e.height);
}
-function JU(e) {
+function qU(e) {
var { children: t, width: n, height: r } = e, i = (0, B.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return CCe(i) ? /*#__PURE__*/ B.createElement(qU.Provider, { value: i }, t) : null;
+ return wCe(i) ? /*#__PURE__*/ B.createElement(KU.Provider, { value: i }, t) : null;
}
-var YU = () => (0, B.useContext)(qU), wCe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = HU.initialDimension, width: i, height: a, minWidth: o = HU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = HU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, B.useRef)(null), g = (0, B.useRef)();
+var JU = () => (0, B.useContext)(KU), TCe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = VU.initialDimension, width: i, height: a, minWidth: o = VU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = VU.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)({
containerWidth: r.width,
@@ -54385,7 +54385,7 @@ var YU = () => (0, B.useContext)(qU), wCe = /*#__PURE__*/ (0, B.forwardRef)((e,
});
}, []);
(0, B.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return Ez;
+ if (h.current == null || typeof ResizeObserver > "u") return Tz;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -54393,7 +54393,7 @@ var YU = () => (0, B.useContext)(qU), wCe = /*#__PURE__*/ (0, B.forwardRef)((e,
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = pCe(e, u, {
+ u > 0 && (e = mCe(e, u, {
trailing: !0,
leading: !1
}));
@@ -54403,17 +54403,17 @@ var YU = () => (0, B.useContext)(qU), wCe = /*#__PURE__*/ (0, B.forwardRef)((e,
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- VU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = UU(b, x, {
+ BU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = HU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return VU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ B.createElement("div", {
+ return BU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ B.createElement("div", {
id: d ? `${d}` : void 0,
className: qr("recharts-responsive-container", f),
- style: KU(KU({}, m), {}, {
+ style: GU(GU({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -54421,30 +54421,30 @@ var YU = () => (0, B.useContext)(qU), wCe = /*#__PURE__*/ (0, B.forwardRef)((e,
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ B.createElement("div", { style: vCe({
+ }, /*#__PURE__*/ B.createElement("div", { style: yCe({
width: i,
height: a
- }) }, /*#__PURE__*/ B.createElement(JU, {
+ }) }, /*#__PURE__*/ B.createElement(qU, {
width: S,
height: C
}, l)));
-}), XU = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = YU();
- if (fU(n.width) && fU(n.height)) return e.children;
- var { width: r, height: i } = yCe({
+}), YU = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = JU();
+ if (dU(n.width) && dU(n.height)) return e.children;
+ var { width: r, height: i } = bCe({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = UU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = HU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(JU, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(qU, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ B.createElement(wCe, WU({}, e, {
+ }, e.children) : /*#__PURE__*/ B.createElement(TCe, UU({}, e, {
width: r,
height: i,
ref: t
@@ -54452,7 +54452,7 @@ var YU = () => (0, B.useContext)(qU), wCe = /*#__PURE__*/ (0, B.forwardRef)((e,
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function ZU(e) {
+function XU(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -54462,15 +54462,15 @@ function ZU(e) {
height: e.height
};
}
-var QU = () => {
- var e = RU(), t = Q(lCe), n = Q(BU), r = Q(zU)?.padding;
+var ZU = () => {
+ var e = LU(), t = Q(uCe), n = Q(zU), r = Q(RU)?.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
};
-}, TCe = {
+}, ECe = {
top: 0,
bottom: 0,
left: 0,
@@ -54478,16 +54478,16 @@ var QU = () => {
width: 0,
height: 0,
brushBottom: 0
-}, $U = () => Q(IU) ?? TCe, eW = () => Q(kU), tW = () => Q(AU), ECe = () => Q((e) => e.layout.margin), nW = (e) => e.layout.layoutType, rW = () => Q(nW), iW = () => {
- var e = rW();
+}, QU = () => Q(FU) ?? ECe, $U = () => Q(OU), eW = () => Q(kU), DCe = () => Q((e) => e.layout.margin), tW = (e) => e.layout.layoutType, nW = () => Q(tW), rW = () => {
+ var e = nW();
if (e === "horizontal" || e === "vertical") return e;
-}, aW = (e) => {
+}, iW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, oW = () => Q(aW), DCe = () => rW() !== void 0, sW = (e) => {
- var t = wB(), n = RU(), { width: r, height: i } = e, a = YU(), o = r, s = i;
+}, aW = () => Q(iW), OCe = () => nW() !== void 0, oW = (e) => {
+ var t = CB(), n = LU(), { width: r, height: i } = e, a = JU(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, B.useEffect)(() => {
- !n && fU(o) && fU(s) && t(zSe({
+ !n && dU(o) && dU(s) && t(BSe({
width: o,
height: s
}));
@@ -54497,64 +54497,64 @@ var QU = () => {
o,
s
]), null;
-}, cW = Symbol.for("immer-nothing"), lW = Symbol.for("immer-draftable"), uW = Symbol.for("immer-state");
-function dW(e, ...t) {
+}, sW = Symbol.for("immer-nothing"), cW = Symbol.for("immer-draftable"), lW = Symbol.for("immer-state");
+function uW(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var fW = Object.getPrototypeOf;
-function pW(e) {
- return !!e && !!e[uW];
+var dW = Object.getPrototypeOf;
+function fW(e) {
+ return !!e && !!e[lW];
}
-function mW(e) {
- return e ? gW(e) || Array.isArray(e) || !!e[lW] || !!e.constructor?.[lW] || xW(e) || SW(e) : !1;
+function pW(e) {
+ return e ? hW(e) || Array.isArray(e) || !!e[cW] || !!e.constructor?.[cW] || bW(e) || xW(e) : !1;
}
-var OCe = Object.prototype.constructor.toString(), hW = /* @__PURE__ */ new WeakMap();
-function gW(e) {
+var kCe = Object.prototype.constructor.toString(), mW = /* @__PURE__ */ new WeakMap();
+function hW(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
if (t === null || t === Object.prototype) return !0;
let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
if (n === Object) return !0;
if (typeof n != "function") return !1;
- let r = hW.get(n);
- return r === void 0 && (r = Function.toString.call(n), hW.set(n, r)), r === OCe;
+ let r = mW.get(n);
+ return r === void 0 && (r = Function.toString.call(n), mW.set(n, r)), r === kCe;
}
-function _W(e, t, n = !0) {
- vW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function gW(e, t, n = !0) {
+ _W(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function vW(e) {
- let t = e[uW];
- return t ? t.type_ : Array.isArray(e) ? 1 : xW(e) ? 2 : SW(e) ? 3 : 0;
+function _W(e) {
+ let t = e[lW];
+ return t ? t.type_ : Array.isArray(e) ? 1 : bW(e) ? 2 : xW(e) ? 3 : 0;
}
-function yW(e, t) {
- return vW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function vW(e, t) {
+ return _W(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function bW(e, t, n) {
- let r = vW(e);
+function yW(e, t, n) {
+ let r = _W(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function kCe(e, t) {
+function ACe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function xW(e) {
+function bW(e) {
return e instanceof Map;
}
-function SW(e) {
+function xW(e) {
return e instanceof Set;
}
-function CW(e) {
+function SW(e) {
return e.copy_ || e.base_;
}
-function wW(e, t) {
- if (xW(e)) return new Map(e);
- if (SW(e)) return new Set(e);
+function CW(e, t) {
+ if (bW(e)) return new Map(e);
+ if (xW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = gW(e);
+ let n = hW(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[uW];
+ delete t[lW];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -54565,40 +54565,40 @@ function wW(e, t) {
value: e[i]
});
}
- return Object.create(fW(e), t);
+ return Object.create(dW(e), t);
}
{
- let t = fW(e);
+ let t = dW(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function TW(e, t = !1) {
- return DW(e) || pW(e) || !mW(e) ? e : (vW(e) > 1 && Object.defineProperties(e, {
- set: EW,
- add: EW,
- clear: EW,
- delete: EW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => TW(e, !0)), e);
+function wW(e, t = !1) {
+ return EW(e) || fW(e) || !pW(e) ? e : (_W(e) > 1 && Object.defineProperties(e, {
+ set: TW,
+ add: TW,
+ clear: TW,
+ delete: TW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => wW(e, !0)), e);
}
-function ACe() {
- dW(2);
+function jCe() {
+ uW(2);
}
-var EW = { value: ACe };
-function DW(e) {
+var TW = { value: jCe };
+function EW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var jCe = {};
-function OW(e) {
- let t = jCe[e];
- return t || dW(0, e), t;
+var MCe = {};
+function DW(e) {
+ let t = MCe[e];
+ return t || uW(0, e), t;
}
-var kW;
-function AW() {
- return kW;
+var OW;
+function kW() {
+ return OW;
}
-function MCe(e, t) {
+function NCe(e, t) {
return {
drafts_: [],
parent_: e,
@@ -54607,62 +54607,62 @@ function MCe(e, t) {
unfinalizedDrafts_: 0
};
}
-function jW(e, t) {
- t && (OW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function AW(e, t) {
+ t && (DW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+}
+function jW(e) {
+ MW(e), e.drafts_.forEach(PCe), e.drafts_ = null;
}
function MW(e) {
- NW(e), e.drafts_.forEach(NCe), e.drafts_ = null;
+ e === OW && (OW = e.parent_);
}
function NW(e) {
- e === kW && (kW = e.parent_);
-}
-function PW(e) {
- return kW = MCe(kW, e);
+ return OW = NCe(OW, e);
}
-function NCe(e) {
- let t = e[uW];
+function PCe(e) {
+ let t = e[lW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function FW(e, t) {
+function PW(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[uW].modified_ && (MW(t), dW(4)), mW(e) && (e = IW(t, e), t.parent_ || RW(t, e)), t.patches_ && OW("Patches").generateReplacementPatches_(n[uW].base_, e, t.patches_, t.inversePatches_)) : e = IW(t, n, []), MW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === cW ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[lW].modified_ && (jW(t), uW(4)), pW(e) && (e = FW(t, e), t.parent_ || LW(t, e)), t.patches_ && DW("Patches").generateReplacementPatches_(n[lW].base_, e, t.patches_, t.inversePatches_)) : e = FW(t, n, []), jW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === sW ? void 0 : e;
}
-function IW(e, t, n) {
- if (DW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[uW];
- if (!i) return _W(t, (r, a) => LW(e, i, t, r, a, n), r), t;
+function FW(e, t, n) {
+ if (EW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[lW];
+ if (!i) return gW(t, (r, a) => IW(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return RW(e, i.base_, !0), i.base_;
+ if (!i.modified_) return LW(e, i.base_, !0), i.base_;
if (!i.finalized_) {
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
let t = i.copy_, a = t, o = !1;
- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), _W(a, (r, a) => LW(e, i, t, r, a, n, o), r), RW(e, t, !1), n && e.patches_ && OW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), gW(a, (r, a) => IW(e, i, t, r, a, n, o), r), LW(e, t, !1), n && e.patches_ && DW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function LW(e, t, n, r, i, a, o) {
+function IW(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = DW(i);
+ let s = EW(i);
if (!(s && !o)) {
- if (pW(i)) {
- let o = IW(e, i, a && t && t.type_ !== 3 && !yW(t.assigned_, r) ? a.concat(r) : void 0);
- if (bW(n, r, o), pW(o)) e.canAutoFreeze_ = !1;
+ if (fW(i)) {
+ let o = FW(e, i, a && t && t.type_ !== 3 && !vW(t.assigned_, r) ? a.concat(r) : void 0);
+ if (yW(n, r, o), fW(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (mW(i) && !s) {
+ if (pW(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- IW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (xW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && RW(e, i);
+ FW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (bW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && LW(e, i);
}
}
}
-function RW(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && TW(t, n);
+function LW(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && wW(t, n);
}
-function PCe(e, t) {
+function FCe(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : AW(),
+ scope_: t ? t.scope_ : kW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -54672,41 +54672,41 @@ function PCe(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = zW;
- n && (i = [r], a = BW);
+ }, i = r, a = RW;
+ n && (i = [r], a = zW);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var zW = {
+var RW = {
get(e, t) {
- if (t === uW) return e;
- let n = CW(e);
- if (!yW(n, t)) return FCe(e, n, t);
+ if (t === lW) return e;
+ let n = SW(e);
+ if (!vW(n, t)) return ICe(e, n, t);
let r = n[t];
- return e.finalized_ || !mW(r) ? r : r === VW(e.base_, t) ? (WW(e), e.copy_[t] = GW(r, e)) : r;
+ return e.finalized_ || !pW(r) ? r : r === BW(e.base_, t) ? (UW(e), e.copy_[t] = WW(r, e)) : r;
},
has(e, t) {
- return t in CW(e);
+ return t in SW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(CW(e));
+ return Reflect.ownKeys(SW(e));
},
set(e, t, n) {
- let r = HW(CW(e), t);
+ let r = VW(SW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = VW(CW(e), t), i = r?.[uW];
+ let r = BW(SW(e), t), i = r?.[lW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (kCe(n, r) && (n !== void 0 || yW(e.base_, t))) return !0;
- WW(e), UW(e);
+ if (ACe(n, r) && (n !== void 0 || vW(e.base_, t))) return !0;
+ UW(e), HW(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);
},
deleteProperty(e, t) {
- return VW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, WW(e), UW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return BW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, UW(e), HW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = CW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = SW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -54715,48 +54715,48 @@ var zW = {
};
},
defineProperty() {
- dW(11);
+ uW(11);
},
getPrototypeOf(e) {
- return fW(e.base_);
+ return dW(e.base_);
},
setPrototypeOf() {
- dW(12);
+ uW(12);
}
-}, BW = {};
-_W(zW, (e, t) => {
- BW[e] = function() {
+}, zW = {};
+gW(RW, (e, t) => {
+ zW[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), BW.deleteProperty = function(e, t) {
- return BW.set.call(this, e, t, void 0);
-}, BW.set = function(e, t, n) {
- return zW.set.call(this, e[0], t, n, e[0]);
+}), zW.deleteProperty = function(e, t) {
+ return zW.set.call(this, e, t, void 0);
+}, zW.set = function(e, t, n) {
+ return RW.set.call(this, e[0], t, n, e[0]);
};
-function VW(e, t) {
- let n = e[uW];
- return (n ? CW(n) : e)[t];
+function BW(e, t) {
+ let n = e[lW];
+ return (n ? SW(n) : e)[t];
}
-function FCe(e, t, n) {
- let r = HW(t, n);
+function ICe(e, t, n) {
+ let r = VW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function HW(e, t) {
+function VW(e, t) {
if (!(t in e)) return;
- let n = fW(e);
+ let n = dW(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = fW(n);
+ n = dW(n);
}
}
-function UW(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && UW(e.parent_));
+function HW(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && HW(e.parent_));
}
-function WW(e) {
- e.copy_ ||= wW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function UW(e) {
+ e.copy_ ||= CW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var ICe = class {
+var LCe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -54767,25 +54767,25 @@ var ICe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && dW(6), n !== void 0 && typeof n != "function" && dW(7);
+ typeof t != "function" && uW(6), n !== void 0 && typeof n != "function" && uW(7);
let r;
- if (mW(e)) {
- let i = PW(this), a = GW(e, void 0), o = !0;
+ if (pW(e)) {
+ let i = NW(this), a = WW(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? MW(i) : NW(i);
+ o ? jW(i) : MW(i);
}
- return jW(i, n), FW(r, i);
+ return AW(i, n), PW(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === cW && (r = void 0), this.autoFreeze_ && TW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === sW && (r = void 0), this.autoFreeze_ && wW(r, !0), n) {
let t = [], i = [];
- OW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ DW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- dW(1, e);
+ uW(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -54799,15 +54799,15 @@ var ICe = 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) {
- mW(e) || dW(8), pW(e) && (e = LCe(e));
- let t = PW(this), n = GW(e, void 0);
- return n[uW].isManual_ = !0, NW(t), n;
+ pW(e) || uW(8), fW(e) && (e = RCe(e));
+ let t = NW(this), n = WW(e, void 0);
+ return n[lW].isManual_ = !0, MW(t), n;
}
finishDraft(e, t) {
- let n = e && e[uW];
- (!n || !n.isManual_) && dW(9);
+ let n = e && e[lW];
+ (!n || !n.isManual_) && uW(9);
let { scope_: r } = n;
- return jW(r, t), FW(void 0, r);
+ return AW(r, t), PW(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -54831,35 +54831,35 @@ var ICe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = OW("Patches").applyPatches_;
- return pW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = DW("Patches").applyPatches_;
+ return fW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function GW(e, t) {
- let n = xW(e) ? OW("MapSet").proxyMap_(e, t) : SW(e) ? OW("MapSet").proxySet_(e, t) : PCe(e, t);
- return (t ? t.scope_ : AW()).drafts_.push(n), n;
+function WW(e, t) {
+ let n = bW(e) ? DW("MapSet").proxyMap_(e, t) : xW(e) ? DW("MapSet").proxySet_(e, t) : FCe(e, t);
+ return (t ? t.scope_ : kW()).drafts_.push(n), n;
}
-function LCe(e) {
- return pW(e) || dW(10, e), KW(e);
+function RCe(e) {
+ return fW(e) || uW(10, e), GW(e);
}
-function KW(e) {
- if (!mW(e) || DW(e)) return e;
- let t = e[uW], n, r = !0;
+function GW(e) {
+ if (!pW(e) || EW(e)) return e;
+ let t = e[lW], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = wW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = wW(e, !0);
- return _W(n, (e, t) => {
- bW(n, e, KW(t));
+ t.finalized_ = !0, n = CW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = CW(e, !0);
+ return gW(n, (e, t) => {
+ yW(n, e, GW(t));
}, r), t && (t.finalized_ = !1), n;
}
-new ICe().produce;
-function qW(e) {
+new LCe().produce;
+function KW(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var JW = IH({
+var qW = FH({
name: "legend",
initialState: {
settings: {
@@ -54883,43 +54883,43 @@ var JW = IH({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(qW(t.payload));
+ e.payload.push(KW(t.payload));
},
- prepare: MH()
+ prepare: jH()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CH(e).payload.indexOf(qW(n));
- i > -1 && (e.payload[i] = qW(r));
+ var { prev: n, next: r } = t.payload, i = SH(e).payload.indexOf(KW(n));
+ i > -1 && (e.payload[i] = KW(r));
},
- prepare: MH()
+ prepare: jH()
},
removeLegendPayload: {
reducer(e, t) {
- var n = CH(e).payload.indexOf(qW(t.payload));
+ var n = SH(e).payload.indexOf(KW(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: MH()
+ prepare: jH()
}
}
-}), { setLegendSize: YW, setLegendSettings: RCe, addLegendPayload: XW, replaceLegendPayload: ZW, removeLegendPayload: QW } = JW.actions, zCe = JW.reducer, BCe = /* @__PURE__ */ mt(((e) => {
+}), { setLegendSize: JW, setLegendSettings: zCe, addLegendPayload: YW, replaceLegendPayload: XW, removeLegendPayload: ZW } = qW.actions, BCe = qW.reducer, VCe = /* @__PURE__ */ mt(((e) => {
var t = St();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ mt(((e, t) => {
- t.exports = BCe();
+ t.exports = VCe();
})))();
-function VCe(e) {
+function HCe(e) {
e();
}
-function HCe() {
+function UCe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- VCe(() => {
+ HCe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -54941,12 +54941,12 @@ function HCe() {
}
};
}
-var $W = {
+var QW = {
notify() {},
get: () => []
};
-function UCe(e, t) {
- let n, r = $W, i = 0, a = !1;
+function WCe(e, t) {
+ let n, r = QW, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -54964,10 +54964,10 @@ function UCe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = HCe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = UCe());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = $W);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = QW);
}
function f() {
a || (a = !0, u());
@@ -54986,44 +54986,44 @@ function UCe(e, t) {
};
return m;
}
-var WCe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, GCe = typeof navigator < "u" && navigator.product === "ReactNative", KCe = WCe || GCe ? B.useLayoutEffect : B.useEffect;
-function eG(e, t) {
+var GCe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, KCe = typeof navigator < "u" && navigator.product === "ReactNative", qCe = GCe || KCe ? B.useLayoutEffect : B.useEffect;
+function $W(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function qCe(e, t) {
- if (eG(e, t)) return !0;
+function JCe(e, t) {
+ if ($W(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !eG(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !$W(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var JCe = /* @__PURE__ */ Symbol.for("react-redux-context"), YCe = typeof globalThis < "u" ? globalThis : {};
-function XCe() {
+var YCe = /* @__PURE__ */ Symbol.for("react-redux-context"), XCe = typeof globalThis < "u" ? globalThis : {};
+function ZCe() {
if (!B.createContext) return {};
- let e = YCe[JCe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
+ let e = XCe[YCe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
return t || (t = B.createContext(null), e.set(B.createContext, t)), t;
}
-var ZCe = /* @__PURE__ */ XCe();
-function QCe(e) {
+var QCe = /* @__PURE__ */ ZCe();
+function $Ce(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = B.useMemo(() => {
- let e = UCe(i);
+ let e = WCe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = B.useMemo(() => i.getState(), [i]);
- KCe(() => {
+ qCe(() => {
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 || ZCe;
+ let s = n || QCe;
return /* @__PURE__ */ B.createElement(s.Provider, { value: a }, t);
}
-var $Ce = QCe, ewe = /* @__PURE__ */ new Set([
+var ewe = $Ce, twe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -55046,29 +55046,29 @@ var $Ce = QCe, ewe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function twe(e, t) {
+function nwe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function tG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (ewe.has(n)) {
+function eG(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (twe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!qCe(e[n], t[n])) return !1;
- } else if (!twe(e[n], t[n])) return !1;
+ if (!JCe(e[n], t[n])) return !1;
+ } else if (!nwe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var nwe = ["contextPayload"];
-function nG() {
- return nG = Object.assign ? Object.assign.bind() : function(e) {
+var rwe = ["contextPayload"];
+function tG() {
+ return tG = 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;
- }, nG.apply(null, arguments);
+ }, tG.apply(null, arguments);
}
-function rG(e, t) {
+function nG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55078,30 +55078,30 @@ function rG(e, t) {
}
return n;
}
-function iG(e) {
+function rG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? rG(Object(n), !0).forEach(function(t) {
- rwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rG(Object(n)).forEach(function(t) {
+ t % 2 ? nG(Object(n), !0).forEach(function(t) {
+ iwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rwe(e, t, n) {
- return (t = iwe(t)) in e ? Object.defineProperty(e, t, {
+function iwe(e, t, n) {
+ return (t = awe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iwe(e) {
- var t = awe(e, "string");
+function awe(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) {
@@ -55111,16 +55111,16 @@ function awe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function owe(e, t) {
+function swe(e, t) {
if (e == null) return {};
- var n, r, i = swe(e, t);
+ var n, r, i = cwe(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 swe(e, t) {
+function cwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55129,36 +55129,36 @@ function swe(e, t) {
}
return n;
}
-function cwe(e) {
+function lwe(e) {
return e.value;
}
-function lwe(e) {
- var { contextPayload: t } = e, n = owe(e, nwe), r = vB(t, e.payloadUniqBy, cwe), i = iG(iG({}, 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(xxe, i);
+function uwe(e) {
+ var { contextPayload: t } = e, n = swe(e, rwe), r = _B(t, e.payloadUniqBy, lwe), i = rG(rG({}, 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(Sxe, i);
}
-function uwe(e, t, n, r, i, a) {
+function dwe(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 }), iG(iG({}, 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 }), rG(rG({}, l), u);
}
-function dwe(e) {
- var t = wB();
+function fwe(e) {
+ var t = CB();
return (0, B.useEffect)(() => {
- t(RCe(e));
+ t(zCe(e));
}, [t, e]), null;
}
-function fwe(e) {
- var t = wB();
- return (0, B.useEffect)(() => (t(YW(e)), () => {
- t(YW({
+function pwe(e) {
+ var t = CB();
+ return (0, B.useEffect)(() => (t(JW(e)), () => {
+ t(JW({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function pwe(e, t, n, r) {
+function mwe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var mwe = {
+var hwe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -55166,28 +55166,28 @@ var mwe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function hwe(e) {
- var t = Iz(e, mwe), n = eV(), r = hbe(), i = ECe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = nV([n]), d = eW(), f = tW();
+function gwe(e) {
+ var t = Fz(e, hwe), n = $B(), r = gbe(), i = DCe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = tV([n]), d = $U(), f = eW();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = pwe(t.layout, o, a, p), h = c ? s : iG(iG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = mwe(t.layout, o, a, p), h = c ? s : rG(rG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, uwe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, dwe(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(dwe, {
+ }, /*#__PURE__*/ B.createElement(fwe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ B.createElement(fwe, {
+ }), !c && /*#__PURE__*/ B.createElement(pwe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ B.createElement(lwe, nG({}, t, m, {
+ }), /*#__PURE__*/ B.createElement(uwe, tG({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -55195,20 +55195,20 @@ function hwe(e) {
})));
return /*#__PURE__*/ (0, Dt.createPortal)(_, g);
}
-var aG = /*#__PURE__*/ B.memo(hwe, tG);
-aG.displayName = "Legend";
+var iG = /*#__PURE__*/ B.memo(gwe, eG);
+iG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function oG() {
- return oG = Object.assign ? Object.assign.bind() : function(e) {
+function aG() {
+ return aG = 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;
- }, oG.apply(null, arguments);
+ }, aG.apply(null, arguments);
}
-function sG(e, t) {
+function oG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55218,30 +55218,30 @@ function sG(e, t) {
}
return n;
}
-function cG(e) {
+function sG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? sG(Object(n), !0).forEach(function(t) {
- gwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sG(Object(n)).forEach(function(t) {
+ t % 2 ? oG(Object(n), !0).forEach(function(t) {
+ _we(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 gwe(e, t, n) {
- return (t = _we(t)) in e ? Object.defineProperty(e, t, {
+function _we(e, t, n) {
+ return (t = vwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _we(e) {
- var t = vwe(e, "string");
+function vwe(e) {
+ var t = ywe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vwe(e, t) {
+function ywe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55251,10 +55251,10 @@ function vwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ywe(e) {
- return Array.isArray(e) && _z(e[0]) && _z(e[1]) ? e.join(" ~ ") : e;
+function bwe(e) {
+ return Array.isArray(e) && gz(e[0]) && gz(e[1]) ? e.join(" ~ ") : e;
}
-var lG = {
+var cG = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -55272,30 +55272,30 @@ var lG = {
labelStyle: {},
accessibilityLayer: !1
};
-function bwe(e, t) {
- return t == null ? e : XB(e, t);
+function xwe(e, t) {
+ return t == null ? e : YB(e, t);
}
-var xwe = (e) => {
- var { separator: t = lG.separator, contentStyle: n, itemStyle: r, labelStyle: i = lG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = lG.accessibilityLayer } = e, p = () => {
+var Swe = (e) => {
+ var { separator: t = cG.separator, contentStyle: n, itemStyle: r, labelStyle: i = cG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = cG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = bwe(a, s).map((e, n) => {
+ }, n = xwe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || ywe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || bwe, { 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;
else if (d != null) l = d;
else return null;
}
- var f = cG(cG({}, lG.itemStyle), {}, { color: e.color || lG.itemStyle.color }, r);
+ var f = sG(sG({}, cG.itemStyle), {}, { color: e.color || cG.itemStyle.color }, r);
return /*#__PURE__*/ B.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, _z(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, _z(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 || ""));
+ }, gz(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, gz(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",
@@ -55303,30 +55303,30 @@ var xwe = (e) => {
}, n);
}
return null;
- }, m = cG(cG({}, lG.contentStyle), n), h = cG({ margin: 0 }, i), g = !Cz(u), _ = g ? u : "", v = qr("recharts-default-tooltip", c), y = qr("recharts-tooltip-label", l);
+ }, m = sG(sG({}, cG.contentStyle), n), h = sG({ margin: 0 }, i), g = !Sz(u), _ = g ? u : "", v = qr("recharts-default-tooltip", c), y = qr("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ B.createElement("div", oG({
+ return /*#__PURE__*/ B.createElement("div", aG({
className: v,
style: m
}, b), /*#__PURE__*/ B.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ B.isValidElement(_) ? _ : `${_}`), p());
-}, uG = "recharts-tooltip-wrapper", Swe = { visibility: "hidden" };
-function Cwe(e) {
+}, lG = "recharts-tooltip-wrapper", Cwe = { visibility: "hidden" };
+function wwe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return qr(uG, {
- [`${uG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${uG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${uG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${uG}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return qr(lG, {
+ [`${lG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${lG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${lG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${lG}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function dG(e) {
+function uG(e) {
var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;
if (a && Z(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
@@ -55334,13 +55334,13 @@ function dG(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 wwe(e) {
+function Twe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function Twe(e) {
+function Ewe(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 = dG({
+ return s.height > 0 && s.width > 0 && n ? (d = uG({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -55350,7 +55350,7 @@ function Twe(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = dG({
+ }), f = uG({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -55360,27 +55360,27 @@ function Twe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = wwe({
+ }), u = Twe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = Swe, {
+ })) : u = Cwe, {
cssProperties: u,
- cssClasses: Cwe({
+ cssClasses: wwe({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var fG = {
+var dG = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function pG() {
- var [e, t] = (0, B.useState)(() => fG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function fG() {
+ var [e, t] = (0, B.useState)(() => dG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, B.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -55394,7 +55394,7 @@ function pG() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function mG(e, t) {
+function pG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55404,30 +55404,30 @@ function mG(e, t) {
}
return n;
}
-function hG(e) {
+function mG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? mG(Object(n), !0).forEach(function(t) {
- Ewe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mG(Object(n)).forEach(function(t) {
+ t % 2 ? pG(Object(n), !0).forEach(function(t) {
+ Dwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ewe(e, t, n) {
- return (t = Dwe(t)) in e ? Object.defineProperty(e, t, {
+function Dwe(e, t, n) {
+ return (t = Owe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dwe(e) {
- var t = Owe(e, "string");
+function Owe(e) {
+ var t = kwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Owe(e, t) {
+function kwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55437,11 +55437,11 @@ function Owe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function kwe(e) {
+function Awe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function Awe(e) {
- var t = pG(), [n, r] = B.useState(() => ({
+function jwe(e) {
+ var t = fG(), [n, r] = B.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -55461,8 +55461,8 @@ function Awe(e) {
return document.addEventListener("keydown", t), () => {
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(hG(hG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = Twe({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(mG(mG({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = Ewe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -55475,7 +55475,7 @@ function Awe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = hG(hG({}, e.hasPortalFromProps ? {} : hG(hG({ transition: kwe({
+ }), o = mG(mG({}, e.hasPortalFromProps ? {} : mG(mG({ transition: Awe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -55495,19 +55495,19 @@ function Awe(e) {
ref: e.innerRef
}, e.children);
}
-var jwe = /*#__PURE__*/ B.memo(Awe), gG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var Mwe = /*#__PURE__*/ B.memo(jwe), hG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function _G() {
- return _G = Object.assign ? Object.assign.bind() : function(e) {
+function gG() {
+ return gG = 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;
- }, _G.apply(null, arguments);
+ }, gG.apply(null, arguments);
}
-function vG(e, t) {
+function _G(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55517,30 +55517,30 @@ function vG(e, t) {
}
return n;
}
-function yG(e) {
+function vG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? vG(Object(n), !0).forEach(function(t) {
- Mwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vG(Object(n)).forEach(function(t) {
+ t % 2 ? _G(Object(n), !0).forEach(function(t) {
+ Nwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _G(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Mwe(e, t, n) {
- return (t = Nwe(t)) in e ? Object.defineProperty(e, t, {
+function Nwe(e, t, n) {
+ return (t = Pwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Nwe(e) {
- var t = Pwe(e, "string");
+function Pwe(e) {
+ var t = Fwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Pwe(e, t) {
+function Fwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55550,40 +55550,40 @@ function Pwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var bG = {
- curveBasisClosed: Nbe,
- curveBasisOpen: Pbe,
- curveBasis: Mbe,
- curveBumpX: vbe,
- curveBumpY: ybe,
- curveLinearClosed: Fbe,
- curveLinear: OR,
- curveMonotoneX: Ibe,
- curveMonotoneY: Lbe,
- curveNatural: Rbe,
- curveStep: zbe,
- curveStepAfter: Vbe,
- curveStepBefore: Bbe
-}, xG = (e) => dU(e.x) && dU(e.y), SG = (e) => e.base != null && xG(e.base) && xG(e), CG = (e) => e.x, wG = (e) => e.y, Fwe = (e, t) => {
+var yG = {
+ curveBasisClosed: Pbe,
+ curveBasisOpen: Fbe,
+ curveBasis: Nbe,
+ curveBumpX: ybe,
+ curveBumpY: bbe,
+ curveLinearClosed: Ibe,
+ curveLinear: DR,
+ curveMonotoneX: Lbe,
+ curveMonotoneY: Rbe,
+ curveNatural: zbe,
+ curveStep: Bbe,
+ curveStepAfter: Hbe,
+ curveStepBefore: Vbe
+}, bG = (e) => uU(e.x) && uU(e.y), xG = (e) => e.base != null && bG(e.base) && bG(e), SG = (e) => e.x, CG = (e) => e.y, Iwe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${wz(e)}`;
+ var n = `curve${Cz(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = bG[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = yG[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return bG[n] || OR;
-}, TG = {
+ return yG[n] || DR;
+}, wG = {
connectNulls: !1,
type: "linear"
-}, Iwe = (e) => {
- var { type: t = TG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = TG.connectNulls } = e, o = Fwe(t, i), s = a ? n.filter(xG) : n;
+}, Lwe = (e) => {
+ var { type: t = wG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = wG.connectNulls } = e, o = Iwe(t, i), s = a ? n.filter(bG) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => yG(yG({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? MR().y(wG).x1(CG).x0((e) => e.base.x) : MR().x(CG).y1(wG).y0((e) => e.base.y), c.defined(SG).curve(o)(a ? l.filter(SG) : l);
+ var c, l = n.map((e, t) => vG(vG({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? jR().y(CG).x1(SG).x0((e) => e.base.x) : jR().x(SG).y1(CG).y0((e) => e.base.y), c.defined(xG).curve(o)(a ? l.filter(xG) : l);
}
- return (i === "vertical" && Z(r) ? MR().y(wG).x1(CG).x0(r) : Z(r) ? MR().x(CG).y1(wG).y0(r) : jR().x(CG).y(wG)).defined(xG).curve(o)(s);
-}, EG = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = rW();
+ return (i === "vertical" && Z(r) ? jR().y(CG).x1(SG).x0(r) : Z(r) ? jR().x(SG).y1(CG).y0(r) : AR().x(SG).y(CG)).defined(bG).curve(o)(s);
+}, TG = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = nW();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -55591,13 +55591,13 @@ var bG = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? Iwe(o) : r;
- return /*#__PURE__*/ B.createElement("path", _G({}, oR(e), Nz(e), {
+ }, s = n && n.length ? Lwe(o) : r;
+ return /*#__PURE__*/ B.createElement("path", gG({}, aR(e), Mz(e), {
className: qr("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, Lwe = [
+}, Rwe = [
"x",
"y",
"top",
@@ -55606,16 +55606,16 @@ var bG = {
"height",
"className"
];
-function DG() {
- return DG = Object.assign ? Object.assign.bind() : function(e) {
+function EG() {
+ return EG = 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;
- }, DG.apply(null, arguments);
+ }, EG.apply(null, arguments);
}
-function OG(e, t) {
+function DG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55625,30 +55625,30 @@ function OG(e, t) {
}
return n;
}
-function Rwe(e) {
+function zwe(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) {
- zwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OG(Object(n)).forEach(function(t) {
+ t % 2 ? DG(Object(n), !0).forEach(function(t) {
+ Bwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zwe(e, t, n) {
- return (t = Bwe(t)) in e ? Object.defineProperty(e, t, {
+function Bwe(e, t, n) {
+ return (t = Vwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bwe(e) {
- var t = Vwe(e, "string");
+function Vwe(e) {
+ var t = Hwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Vwe(e, t) {
+function Hwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55658,16 +55658,16 @@ function Vwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Hwe(e, t) {
+function Uwe(e, t) {
if (e == null) return {};
- var n, r, i = Uwe(e, t);
+ var n, r, i = Wwe(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 Uwe(e, t) {
+function Wwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55676,8 +55676,8 @@ function Uwe(e, t) {
}
return n;
}
-var Wwe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Gwe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Hwe(e, Lwe), l = Rwe({
+var Gwe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Kwe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Uwe(e, Rwe), l = zwe({
x: t,
y: n,
top: r,
@@ -55685,14 +55685,14 @@ var Wwe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Gwe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", DG({}, cR(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", EG({}, sR(l), {
className: qr("recharts-cross", s),
- d: Wwe(t, n, a, o, r, i)
+ d: Gwe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function Kwe(e, t, n, r) {
+function qwe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -55705,7 +55705,7 @@ function Kwe(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function kG(e, t) {
+function OG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55715,30 +55715,30 @@ function kG(e, t) {
}
return n;
}
-function AG(e) {
+function kG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? kG(Object(n), !0).forEach(function(t) {
- qwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kG(Object(n)).forEach(function(t) {
+ t % 2 ? OG(Object(n), !0).forEach(function(t) {
+ Jwe(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 qwe(e, t, n) {
- return (t = Jwe(t)) in e ? Object.defineProperty(e, t, {
+function Jwe(e, t, n) {
+ return (t = Ywe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jwe(e) {
- var t = Ywe(e, "string");
+function Ywe(e) {
+ var t = Xwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ywe(e, t) {
+function Xwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55748,10 +55748,10 @@ function Ywe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Xwe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), jG = (e, t, n) => e.map((e) => `${Xwe(e)} ${t}ms ${n}`).join(","), Zwe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), MG = (e, t) => Object.keys(t).reduce((n, r) => AG(AG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var Zwe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), AG = (e, t, n) => e.map((e) => `${Zwe(e)} ${t}ms ${n}`).join(","), Qwe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), jG = (e, t) => Object.keys(t).reduce((n, r) => kG(kG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function NG(e, t) {
+function MG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55761,30 +55761,30 @@ function NG(e, t) {
}
return n;
}
-function PG(e) {
+function NG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? NG(Object(n), !0).forEach(function(t) {
- Qwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : NG(Object(n)).forEach(function(t) {
+ t % 2 ? MG(Object(n), !0).forEach(function(t) {
+ $we(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Qwe(e, t, n) {
- return (t = $we(t)) in e ? Object.defineProperty(e, t, {
+function $we(e, t, n) {
+ return (t = eTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $we(e) {
- var t = eTe(e, "string");
+function eTe(e) {
+ var t = tTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eTe(e, t) {
+function tTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55794,51 +55794,51 @@ function eTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var FG = (e, t, n) => e + (t - e) * n, IG = (e) => {
+var PG = (e, t, n) => e + (t - e) * n, FG = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, LG = (e, t, n) => {
- var r = MG((t, n) => {
- if (IG(n)) {
+}, IG = (e, t, n) => {
+ var r = jG((t, n) => {
+ if (FG(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return PG(PG({}, n), {}, {
+ return NG(NG({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? MG((e, t) => IG(t) && r[e] != null ? PG(PG({}, t), {}, {
- velocity: FG(t.velocity, r[e].velocity, n),
- from: FG(t.from, r[e].from, n)
- }) : t, t) : LG(e, r, n - 1);
+ return n < 1 ? jG((e, t) => FG(t) && r[e] != null ? NG(NG({}, t), {}, {
+ velocity: PG(t.velocity, r[e].velocity, n),
+ from: PG(t.from, r[e].from, n)
+ }) : t, t) : IG(e, r, n - 1);
};
-function tTe(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => PG(PG({}, n), {}, { [r]: {
+function nTe(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => NG(NG({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => MG((e, t) => t.from, s), l = () => !Object.values(s).filter(IG).length, u = null, d = (r) => {
+ } }), {}), c = () => jG((e, t) => t.from, s), l = () => !Object.values(s).filter(FG).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = LG(n, s, f), i(PG(PG(PG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = IG(n, s, f), i(NG(NG(NG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function nTe(e, t, n, r, i, a, o) {
+function rTe(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 : PG(PG({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : NG(NG({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = MG((e, t) => FG(...t, n(d)), c);
- if (a(PG(PG(PG({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = jG((e, t) => PG(...t, n(d)), c);
+ if (a(NG(NG(NG({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = MG((e, t) => FG(...t, n(1)), c);
- a(PG(PG(PG({}, e), t), p));
+ var p = jG((e, t) => PG(...t, n(1)), c);
+ a(NG(NG(NG({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -55846,15 +55846,15 @@ function nTe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var rTe = (e, t, n, r, i, a) => {
- var o = Zwe(e, t);
- return n == null ? () => (i(PG(PG({}, e), t)), () => {}) : n.isStepper === !0 ? tTe(e, t, n, o, i, a) : nTe(e, t, n, r, o, i, a);
-}, RG = (e, t) => [
+var iTe = (e, t, n, r, i, a) => {
+ var o = Qwe(e, t);
+ return n == null ? () => (i(NG(NG({}, e), t)), () => {}) : n.isStepper === !0 ? nTe(e, t, n, o, i, a) : rTe(e, t, n, r, o, i, a);
+}, LG = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], zG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), BG = (e, t) => (n) => zG(RG(e, t), n), iTe = (e, t) => (n) => zG([...RG(e, t).map((e, t) => e * t).slice(1), 0], n), aTe = (e) => {
+], RG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), zG = (e, t) => (n) => RG(LG(e, t), n), aTe = (e, t) => (n) => RG([...LG(e, t).map((e, t) => e * t).slice(1), 0], n), oTe = (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(",");
@@ -55866,7 +55866,7 @@ var rTe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, oTe = function() {
+}, sTe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -55900,7 +55900,7 @@ var rTe = (e, t, n, r, i, a) => {
1
];
default:
- var t = aTe(e[0]);
+ var t = oTe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -55909,8 +55909,8 @@ var rTe = (e, t, n, r, i, a) => {
1,
1
];
-}, sTe = (e, t, n, r) => {
- var i = BG(e, n), a = BG(t, r), o = iTe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, cTe = (e, t, n, r) => {
+ var i = zG(e, n), a = zG(t, r), o = aTe(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);
@@ -55919,29 +55919,29 @@ var rTe = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, VG = function() {
- return sTe(...oTe(...arguments));
-}, cTe = function() {
+}, BG = function() {
+ return cTe(...sTe(...arguments));
+}, lTe = 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;
-}, lTe = (e) => {
+}, uTe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return VG(e);
- case "spring": return cTe();
- default: if (e.split("(")[0] === "cubic-bezier") return VG(e);
+ case "linear": return BG(e);
+ case "spring": return lTe();
+ default: if (e.split("(")[0] === "cubic-bezier") return BG(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function uTe(e) {
+function dTe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -55972,7 +55972,7 @@ function uTe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var dTe = class {
+var fTe = 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));
@@ -55984,14 +55984,14 @@ var dTe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function fTe() {
- return uTe(new dTe());
+function pTe() {
+ return dTe(new fTe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var pTe = /*#__PURE__*/ (0, B.createContext)(fTe);
-function mTe(e, t) {
- var n = (0, B.useContext)(pTe);
+var mTe = /*#__PURE__*/ (0, B.createContext)(pTe);
+function hTe(e, t) {
+ var n = (0, B.useContext)(mTe);
return (0, B.useMemo)(() => t ?? n(e), [
e,
t,
@@ -56000,7 +56000,7 @@ function mTe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var hTe = {
+var gTe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -56008,14 +56008,14 @@ var hTe = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, HG = { t: 0 }, UG = { t: 1 };
-function WG(e) {
- var t = Iz(e, hTe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = pG(), d = n === "auto" ? !fG.isSsr && !u : n, f = mTe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? HG : UG), h = (0, B.useRef)(null);
+}, VG = { t: 0 }, HG = { t: 1 };
+function UG(e) {
+ var t = Fz(e, gTe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = fG(), d = n === "auto" ? !dG.isSsr && !u : n, f = hTe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? VG : HG), h = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
- d || m(UG);
+ d || m(HG);
}, [d]), (0, B.useEffect)(() => {
- if (!d || !r) return Ez;
- var e = rTe(HG, UG, lTe(a), i, m, f.getTimeoutController());
+ if (!d || !r) return Tz;
+ var e = iTe(VG, HG, uTe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -56040,14 +56040,14 @@ function WG(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function GG(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(vz(t)), r = (0, B.useRef)(e);
- return r.current !== e && (n.current = vz(t), r.current = e), n.current;
+function WG(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(_z(t)), r = (0, B.useRef)(e);
+ return r.current !== e && (n.current = _z(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var gTe = ["radius"], _Te = ["radius"], vTe, yTe, bTe, xTe, STe, CTe, wTe, TTe, ETe, DTe;
-function KG(e, t) {
+var _Te = ["radius"], vTe = ["radius"], yTe, bTe, xTe, STe, CTe, wTe, TTe, ETe, DTe, OTe;
+function GG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56057,30 +56057,30 @@ function KG(e, t) {
}
return n;
}
-function qG(e) {
+function KG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? KG(Object(n), !0).forEach(function(t) {
- OTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KG(Object(n)).forEach(function(t) {
+ t % 2 ? GG(Object(n), !0).forEach(function(t) {
+ kTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OTe(e, t, n) {
- return (t = kTe(t)) in e ? Object.defineProperty(e, t, {
+function kTe(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 kTe(e) {
- var t = ATe(e, "string");
+function ATe(e) {
+ var t = jTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ATe(e, t) {
+function jTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56090,25 +56090,25 @@ function ATe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function JG() {
- return JG = Object.assign ? Object.assign.bind() : function(e) {
+function qG() {
+ return qG = 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;
- }, JG.apply(null, arguments);
+ }, qG.apply(null, arguments);
}
-function YG(e, t) {
+function JG(e, t) {
if (e == null) return {};
- var n, r, i = jTe(e, t);
+ var n, r, i = MTe(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 jTe(e, t) {
+function MTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56117,11 +56117,11 @@ function jTe(e, t) {
}
return n;
}
-function XG(e, t) {
+function YG(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var ZG = (e, t, n, r, i) => {
- var a = fz(n), o = fz(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 XG = (e, t, n, r, i) => {
+ var a = dz(n), o = dz(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,
@@ -56132,44 +56132,44 @@ var ZG = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = pz(vTe ||= XG([
+ d = fz(yTe ||= YG([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += pz(yTe ||= XG([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += fz(bTe ||= YG([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += pz(bTe ||= XG([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += fz(xTe ||= YG([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += pz(xTe ||= XG([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += fz(STe ||= YG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += pz(STe ||= XG([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += fz(CTe ||= YG([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += pz(CTe ||= XG([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += fz(wTe ||= YG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += pz(wTe ||= XG([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += fz(TTe ||= YG([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += pz(TTe ||= XG([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += fz(ETe ||= YG([
"A ",
",",
",0,0,",
@@ -56179,8 +56179,8 @@ var ZG = (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 = pz(ETe ||= XG(/* @__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 = pz(DTe ||= XG([
+ d = fz(DTe ||= YG(/* @__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 = fz(OTe ||= YG([
"M ",
",",
" h ",
@@ -56189,7 +56189,7 @@ var ZG = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, QG = {
+}, ZG = {
x: 0,
y: 0,
width: 0,
@@ -56200,15 +56200,15 @@ var ZG = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, $G = (e) => {
- var t = Iz(e, QG), n = (0, B.useRef)(null), [r, i] = (0, B.useState)(-1);
+}, QG = (e) => {
+ var t = Fz(e, ZG), 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();
e && i(e);
} catch {}
}, []);
- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, B.useRef)(s), _ = (0, B.useRef)(c), v = (0, B.useRef)(a), y = (0, B.useRef)(o), b = GG((0, B.useMemo)(() => ({
+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, B.useRef)(s), _ = (0, B.useRef)(c), v = (0, B.useRef)(a), y = (0, B.useRef)(o), b = WG((0, B.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -56224,19 +56224,19 @@ var ZG = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = qr("recharts-rectangle", u);
if (!h) {
- var S = cR(t), { radius: C } = S, w = YG(S, gTe);
- return /*#__PURE__*/ B.createElement("path", JG({}, w, {
- x: fz(a),
- y: fz(o),
- width: fz(s),
- height: fz(c),
+ var S = sR(t), { radius: C } = S, w = JG(S, _Te);
+ return /*#__PURE__*/ B.createElement("path", qG({}, w, {
+ x: dz(a),
+ y: dz(o),
+ width: dz(s),
+ height: dz(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: ZG(a, o, s, c, l)
+ d: XG(a, o, s, c, l)
}));
}
- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = jG(["strokeDasharray"], f, typeof d == "string" ? d : QG.animationEasing);
- return /*#__PURE__*/ B.createElement(WG, {
+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = AG(["strokeDasharray"], f, typeof d == "string" ? d : ZG.animationEasing);
+ return /*#__PURE__*/ B.createElement(UG, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -56245,24 +56245,24 @@ var ZG = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = xz(T, s, e), i = xz(E, c, e), u = xz(D, a, e), d = xz(O, o, e);
+ var r = bz(T, s, e), i = bz(E, c, e), u = bz(D, a, e), d = bz(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 = cR(t), { radius: h } = p, b = YG(p, _Te);
- return /*#__PURE__*/ B.createElement("path", JG({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = sR(t), { radius: h } = p, b = JG(p, vTe);
+ return /*#__PURE__*/ B.createElement("path", qG({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: ZG(u, d, r, i, l),
+ d: XG(u, d, r, i, l),
ref: n,
- style: qG(qG({}, f), t.style)
+ style: KG(KG({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function eK(e, t) {
+function $G(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56272,30 +56272,30 @@ function eK(e, t) {
}
return n;
}
-function tK(e) {
+function eK(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) {
- MTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eK(Object(n)).forEach(function(t) {
+ t % 2 ? $G(Object(n), !0).forEach(function(t) {
+ NTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $G(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MTe(e, t, n) {
- return (t = NTe(t)) in e ? Object.defineProperty(e, t, {
+function NTe(e, t, n) {
+ return (t = PTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NTe(e) {
- var t = PTe(e, "string");
+function PTe(e) {
+ var t = FTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PTe(e, t) {
+function FTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56305,10 +56305,10 @@ function PTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var nK = Math.PI / 180, rK = (e) => e * Math.PI / 180, FTe = (e) => e * 180 / Math.PI, iK = (e, t, n, r) => ({
- x: e + Math.cos(-nK * r) * n,
- y: t + Math.sin(-nK * r) * n
-}), ITe = function(e, t) {
+var tK = Math.PI / 180, nK = (e) => e * Math.PI / 180, ITe = (e) => e * 180 / Math.PI, rK = (e, t, n, r) => ({
+ x: e + Math.cos(-tK * r) * n,
+ y: t + Math.sin(-tK * r) * n
+}), LTe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -56319,11 +56319,11 @@ var nK = Math.PI / 180, rK = (e) => e * Math.PI / 180, FTe = (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;
-}, LTe = (e, t) => {
+}, RTe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, RTe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = LTe({
+}, zTe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = RTe({
x: n,
y: r
}, {
@@ -56337,25 +56337,25 @@ var nK = Math.PI / 180, rK = (e) => e * Math.PI / 180, FTe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: FTe(c),
+ angle: ITe(c),
angleInRadian: c
};
-}, zTe = (e) => {
+}, BTe = (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
};
-}, BTe = (e, t) => {
+}, VTe = (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;
-}, VTe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = RTe({
+}, HTe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = zTe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = zTe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = BTe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -56365,17 +56365,17 @@ var nK = Math.PI / 180, rK = (e) => e * Math.PI / 180, FTe = (e) => e * 180 / Ma
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? tK(tK({}, t), {}, {
+ return d ? eK(eK({}, t), {}, {
radius: i,
- angle: BTe(u, t)
+ angle: VTe(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function aK(e) {
+function iK(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [iK(t, n, r, i), iK(t, n, r, a)],
+ points: [rK(t, n, r, i), rK(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -56385,29 +56385,29 @@ function aK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var HTe, UTe, WTe, GTe, KTe, qTe, JTe;
-function oK() {
- return oK = Object.assign ? Object.assign.bind() : function(e) {
+var UTe, WTe, GTe, KTe, qTe, JTe, YTe;
+function aK() {
+ return aK = 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;
- }, oK.apply(null, arguments);
+ }, aK.apply(null, arguments);
}
-function sK(e, t) {
+function oK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (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) / nK, d = c ? i : i + a * u, f = iK(t, n, l, d), p = iK(t, n, r, d), m = c ? i - a * u : i;
+var XTe = (e, t) => pz(t - e) * Math.min(Math.abs(t - e), 359.999), sK = (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) / tK, d = c ? i : i + a * u, f = rK(t, n, l, d), p = rK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: iK(t, n, l * Math.cos(u * nK), m),
+ lineTangency: rK(t, n, l * Math.cos(u * tK), m),
theta: u
};
-}, lK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = YTe(a, o), c = a + s, l = iK(t, n, i, a), u = iK(t, n, i, c), d = pz(HTe ||= sK([
+}, cK = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = XTe(a, o), c = a + s, l = rK(t, n, i, a), u = rK(t, n, i, c), d = fz(UTe ||= oK([
"M ",
",",
"\n A ",
@@ -56419,8 +56419,8 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = iK(t, n, r, a), p = iK(t, n, r, c);
- d += pz(UTe ||= sK([
+ var f = rK(t, n, r, a), p = rK(t, n, r, c);
+ d += fz(WTe ||= oK([
"L ",
",",
"\n A ",
@@ -56431,14 +56431,14 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += pz(WTe ||= sK([
+ } else d += fz(GTe ||= oK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, XTe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = mz(l - c), { circleTangency: d, lineTangency: f, theta: p } = cK({
+}, ZTe = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = pz(l - c), { circleTangency: d, lineTangency: f, theta: p } = sK({
cx: t,
cy: n,
radius: i,
@@ -56446,7 +56446,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = cK({
+ }), { circleTangency: m, lineTangency: h, theta: g } = sK({
cx: t,
cy: n,
radius: i,
@@ -56455,7 +56455,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? pz(GTe ||= sK([
+ if (_ < 0) return o ? fz(KTe ||= oK([
"M ",
",",
"\n a",
@@ -56465,7 +56465,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : lK({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : cK({
cx: t,
cy: n,
innerRadius: r,
@@ -56473,7 +56473,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
startAngle: c,
endAngle: l
});
- var v = pz(KTe ||= sK([
+ var v = fz(qTe ||= oK([
"M ",
",",
"\n A",
@@ -56495,7 +56495,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = cK({
+ var { circleTangency: y, lineTangency: b, theta: x } = sK({
cx: t,
cy: n,
radius: r,
@@ -56504,7 +56504,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = cK({
+ }), { circleTangency: S, lineTangency: C, theta: w } = sK({
cx: t,
cy: n,
radius: r,
@@ -56515,7 +56515,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (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 += pz(qTe ||= sK([
+ v += fz(JTe ||= oK([
"L",
",",
"\n A",
@@ -56536,13 +56536,13 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (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 += pz(JTe ||= sK([
+ } else v += fz(YTe ||= oK([
"L",
",",
"Z"
]), t, n);
return v;
-}, ZTe = {
+}, QTe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -56552,10 +56552,10 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, uK = (e) => {
- var t = Iz(e, ZTe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, lK = (e) => {
+ var t = Fz(e, QTe), { 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 = qr("recharts-sector", d), p = a - i, m = yz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? XTe({
+ var f = qr("recharts-sector", d), p = a - i, m = vz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? ZTe({
cx: n,
cy: r,
innerRadius: i,
@@ -56565,7 +56565,7 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : lK({
+ }) : cK({
cx: n,
cy: r,
innerRadius: i,
@@ -56573,14 +56573,14 @@ var YTe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 359.999), cK = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ B.createElement("path", oK({}, cR(t), {
+ return /*#__PURE__*/ B.createElement("path", aK({}, sR(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function QTe(e, t, n) {
+function $Te(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -56595,9 +56595,9 @@ function QTe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (Mz(t)) {
+ if (jz(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = iK(r, i, a, s), l = iK(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = rK(r, i, a, s), l = rK(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -56606,30 +56606,30 @@ function QTe(e, t, n) {
y: l.y
}];
}
- return aK(t);
+ return iK(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function $Te(e) {
- return cz(e) ? NaN : Number(e);
+function eEe(e) {
+ return sz(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function dK(e) {
- return e ? (e = $Te(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function uK(e) {
+ return e ? (e = eEe(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
-function fK(e, t, n) {
- n && typeof n != "number" && UB(e, t, n) && (t = n = void 0), e = dK(e), t === void 0 ? (t = e, e = 0) : t = dK(t), n = n === void 0 ? e < t ? 1 : -1 : dK(n);
+function dK(e, t, n) {
+ n && typeof n != "number" && HB(e, t, n) && (t = n = void 0), e = uK(e), t === void 0 ? (t = e, e = 0) : t = uK(t), n = n === void 0 ? e < t ? 1 : -1 : uK(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var pK = (e) => e.chartData, mK = $([pK], (e) => {
+var fK = (e) => e.chartData, pK = $([fK], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -56637,35 +56637,35 @@ var pK = (e) => e.chartData, mK = $([pK], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), hK = (e, t, n, r) => r ? mK(e) : pK(e), gK = (e, t, n) => n ? mK(e) : pK(e);
+}), mK = (e, t, n, r) => r ? pK(e) : fK(e), hK = (e, t, n) => n ? pK(e) : fK(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function _K(e) {
+function gK(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (dU(t) && dU(n)) return !0;
+ if (uU(t) && uU(n)) return !0;
}
return !1;
}
-function vK(e, t, n) {
+function _K(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function yK(e, t) {
+function vK(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (dU(n)) i = n;
+ if (uU(n)) i = n;
else if (typeof n == "function") return;
- if (dU(r)) a = r;
+ if (uU(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (_K(o)) return o;
+ if (gK(o)) return o;
}
}
-function eEe(e, t, n) {
+function tEe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (_K(r)) return vK(r, t, n);
+ if (gK(r)) return _K(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -56674,8 +56674,8 @@ function eEe(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && wU.test(i)) {
- var c = wU.exec(i);
+ else if (typeof i == "string" && CU.test(i)) {
+ var c = CU.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -56687,8 +56687,8 @@ function eEe(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && TU.test(a)) {
- var u = TU.exec(a);
+ else if (typeof a == "string" && wU.test(a)) {
+ var u = wU.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -56696,13 +56696,13 @@ function eEe(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (_K(f)) return t == null ? f : vK(f, t, n);
+ if (gK(f)) return t == null ? f : _K(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var bK = /* @__PURE__ */ vt((/* @__PURE__ */ mt(((e, t) => {
+var yK = /* @__PURE__ */ vt((/* @__PURE__ */ mt(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -57078,75 +57078,75 @@ var bK = /* @__PURE__ */ vt((/* @__PURE__ */ mt(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function xK(e) {
- return e === 0 ? 1 : Math.floor(new bK.default(e).abs().log(10).toNumber()) + 1;
+function bK(e) {
+ return e === 0 ? 1 : Math.floor(new yK.default(e).abs().log(10).toNumber()) + 1;
}
-function SK(e, t, n) {
- for (var r = new bK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function xK(e, t, n) {
+ for (var r = new yK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-var CK = (e) => {
+var SK = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
+}, CK = (e, t, n) => {
+ if (e.lte(0)) return new yK.default(0);
+ var r = bK(e.toNumber()), i = new yK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new yK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new yK.default(s.toNumber()) : new yK.default(Math.ceil(s.toNumber()));
}, wK = (e, t, n) => {
- if (e.lte(0)) return new bK.default(0);
- var r = xK(e.toNumber()), i = new bK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new bK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new bK.default(s.toNumber()) : new bK.default(Math.ceil(s.toNumber()));
-}, TK = (e, t, n) => {
- if (e.lte(0)) return new bK.default(0);
+ if (e.lte(0)) return new yK.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new bK.default(i).abs().log(10).toNumber()), o = new bK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new yK.default(i).abs().log(10).toNumber()), o = new yK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new bK.default(10).pow(l));
+ c %= r.length, o = o.mul(new yK.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new bK.default(u).mul(o);
- return t ? d : new bK.default(Math.ceil(d.toNumber()));
-}, tEe = (e, t, n) => {
- var r = new bK.default(1), i = new bK.default(e);
+ var u = r[c] ?? 1, d = new yK.default(u).mul(o);
+ return t ? d : new yK.default(Math.ceil(d.toNumber()));
+}, nEe = (e, t, n) => {
+ var r = new yK.default(1), i = new yK.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new bK.default(10).pow(xK(e) - 1), i = new bK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new bK.default(Math.floor(e)));
- } else e === 0 ? i = new bK.default(Math.floor((t - 1) / 2)) : n || (i = new bK.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new bK.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new yK.default(10).pow(bK(e) - 1), i = new yK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new yK.default(Math.floor(e)));
+ } else e === 0 ? i = new yK.default(Math.floor((t - 1) / 2)) : n || (i = new yK.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new yK.default(c - o).mul(r)).toNumber());
return s;
-}, EK = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : wK;
+}, TK = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : CK;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new bK.default(0),
- tickMin: new bK.default(0),
- tickMax: new bK.default(0)
- };
- var o = a(new bK.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new bK.default(0) : (s = new bK.default(e).add(t).div(2), s = s.sub(new bK.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new bK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? EK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ step: new yK.default(0),
+ tickMin: new yK.default(0),
+ tickMax: new yK.default(0)
+ };
+ var o = a(new yK.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new yK.default(0) : (s = new yK.default(e).add(t).div(2), s = s.sub(new yK.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new yK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? TK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new bK.default(c).mul(o)),
- tickMax: s.add(new bK.default(l).mul(o))
+ tickMin: s.sub(new yK.default(c).mul(o)),
+ tickMax: s.add(new yK.default(l).mul(o))
});
-}, DK = function(e) {
- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = CK([t, n]);
+}, EK = function(e) {
+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = SK([t, n]);
if (s === -Infinity || c === Infinity) {
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 tEe(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = EK(s, c, o, i, 0, a === "snap125" ? TK : wK), p = SK(d, f.add(new bK.default(.1).mul(u)), u);
+ if (s === c) return nEe(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = TK(s, c, o, i, 0, a === "snap125" ? wK : CK), p = xK(d, f.add(new yK.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, OK = function(e, t) {
- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = CK([n, r]);
+}, DK = function(e, t) {
+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = SK([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? TK : wK, l = Math.max(t, 2), u = c(new bK.default(s).sub(o).div(l - 1), i, 0), d = [...SK(new bK.default(o), new bK.default(s), u), s];
+ var c = a === "snap125" ? wK : CK, l = Math.max(t, 2), u = c(new yK.default(s).sub(o).div(l - 1), i, 0), d = [...xK(new yK.default(o), new yK.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, kK = (e) => e.rootProps.maxBarSize, AK = (e) => e.rootProps.barGap, jK = (e) => e.rootProps.barCategoryGap, MK = (e) => e.rootProps.barSize, NK = (e) => e.rootProps.stackOffset, PK = (e) => e.rootProps.reverseStackOrder, FK = (e) => e.options.chartName, IK = (e) => e.rootProps.syncId, LK = (e) => e.rootProps.syncMethod, RK = (e) => e.options.eventEmitter, nEe = (e) => e.rootProps.baseValue, zK = {
+}, OK = (e) => e.rootProps.maxBarSize, kK = (e) => e.rootProps.barGap, AK = (e) => e.rootProps.barCategoryGap, jK = (e) => e.rootProps.barSize, MK = (e) => e.rootProps.stackOffset, NK = (e) => e.rootProps.reverseStackOrder, PK = (e) => e.options.chartName, FK = (e) => e.rootProps.syncId, IK = (e) => e.rootProps.syncMethod, LK = (e) => e.options.eventEmitter, rEe = (e) => e.rootProps.baseValue, RK = {
grid: -100,
barBackground: -50,
area: 100,
@@ -57159,7 +57159,7 @@ var CK = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, BK = {
+}, zK = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -57180,8 +57180,8 @@ var CK = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: zK.axis
-}, VK = {
+ zIndex: RK.axis
+}, BK = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -57200,19 +57200,19 @@ var CK = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: zK.axis
-}, HK = (e, t) => {
+ zIndex: RK.axis
+}, VK = (e, t) => {
if (!(!e || !t)) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function UK(e, t, n) {
+function HK(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return gU(e, t) ? "category" : "number";
+ if (e != null) return hU(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function WK(e, t) {
+function UK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57222,30 +57222,30 @@ function WK(e, t) {
}
return n;
}
-function GK(e) {
+function WK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? WK(Object(n), !0).forEach(function(t) {
- rEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WK(Object(n)).forEach(function(t) {
+ t % 2 ? UK(Object(n), !0).forEach(function(t) {
+ iEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rEe(e, t, n) {
- return (t = iEe(t)) in e ? Object.defineProperty(e, t, {
+function iEe(e, t, n) {
+ return (t = aEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iEe(e) {
- var t = aEe(e, "string");
+function aEe(e) {
+ var t = oEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aEe(e, t) {
+function oEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57255,81 +57255,81 @@ function aEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KK = {
- allowDataOverflow: BK.allowDataOverflow,
- allowDecimals: BK.allowDecimals,
+var GK = {
+ allowDataOverflow: zK.allowDataOverflow,
+ allowDecimals: zK.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: BK.angleAxisId,
+ id: zK.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: BK.reversed,
- scale: BK.scale,
- tick: BK.tick,
+ reversed: zK.reversed,
+ scale: zK.scale,
+ tick: zK.tick,
tickCount: void 0,
ticks: void 0,
- type: BK.type,
+ type: zK.type,
unit: void 0,
niceTicks: "auto"
-}, qK = {
- allowDataOverflow: VK.allowDataOverflow,
- allowDecimals: VK.allowDecimals,
- allowDuplicatedCategory: VK.allowDuplicatedCategory,
+}, KK = {
+ allowDataOverflow: BK.allowDataOverflow,
+ allowDecimals: BK.allowDecimals,
+ allowDuplicatedCategory: BK.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: VK.radiusAxisId,
- includeHidden: VK.includeHidden,
+ id: BK.radiusAxisId,
+ includeHidden: BK.includeHidden,
name: void 0,
- reversed: VK.reversed,
- scale: VK.scale,
- tick: VK.tick,
- tickCount: VK.tickCount,
+ reversed: BK.reversed,
+ scale: BK.scale,
+ tick: BK.tick,
+ tickCount: BK.tickCount,
ticks: void 0,
- type: VK.type,
+ type: BK.type,
unit: void 0,
niceTicks: "auto"
-}, JK = $([(e, t) => {
+}, qK = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, aW], (e, t) => {
+}, iW], (e, t) => {
if (e != null) return e;
- var n = UK(t, "angleAxis", KK.type) ?? "category";
- return GK(GK({}, KK), {}, { type: n });
-}), YK = $([(e, t) => e.polarAxis.radiusAxis[t], aW], (e, t) => {
+ var n = HK(t, "angleAxis", GK.type) ?? "category";
+ return WK(WK({}, GK), {}, { type: n });
+}), JK = $([(e, t) => e.polarAxis.radiusAxis[t], iW], (e, t) => {
if (e != null) return e;
- var n = UK(t, "radiusAxis", qK.type) ?? "category";
- return GK(GK({}, qK), {}, { type: n });
-}), XK = (e) => e.polarOptions, ZK = $([
+ var n = HK(t, "radiusAxis", KK.type) ?? "category";
+ return WK(WK({}, KK), {}, { type: n });
+}), YK = (e) => e.polarOptions, XK = $([
+ OU,
kU,
- AU,
- IU
-], ITe), QK = $([XK, ZK], (e, t) => {
- if (e != null) return yz(e.innerRadius, t, 0);
-}), $K = $([XK, ZK], (e, t) => {
- if (e != null) return yz(e.outerRadius, t, t * .8);
-}), eq = $([XK], (e) => {
+ FU
+], LTe), ZK = $([YK, XK], (e, t) => {
+ if (e != null) return vz(e.innerRadius, t, 0);
+}), QK = $([YK, XK], (e, t) => {
+ if (e != null) return vz(e.outerRadius, t, t * .8);
+}), $K = $([YK], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), oEe = $([JK, eq], HK), tq = $([
+}), sEe = $([qK, $K], VK), eq = $([
+ XK,
ZK,
- QK,
- $K
+ QK
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), sEe = $([YK, tq], HK), nq = $([
- nW,
- XK,
+}), cEe = $([JK, eq], VK), tq = $([
+ tW,
+ YK,
+ ZK,
QK,
- $K,
- kU,
- AU
+ OU,
+ kU
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var { cx: o, cy: s, startAngle: c, endAngle: l } = t;
return {
- cx: yz(o, i, i / 2),
- cy: yz(s, a, a / 2),
+ cx: vz(o, i, i / 2),
+ cy: vz(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -57337,22 +57337,22 @@ var KK = {
clockWise: !1
};
}
-}), rq = (e, t) => t, iq = (e, t, n) => n;
+}), nq = (e, t) => t, rq = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function aq(e) {
+function iq(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function oq(e, t, n) {
+function aq(e, t, n) {
var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? r;
if (t != null && t.length !== 0) {
- var n = aq(e);
+ var n = iq(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(hU(t, a, null)), c = hU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(mU(t, a, null)), c = mU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -57360,18 +57360,18 @@ function oq(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function sq(e) {
+function oq(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var cq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var sq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function lq(e, t) {
+function cq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function cEe(e, t) {
+function lEe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -57380,13 +57380,13 @@ function cEe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var uq = (e) => {
- var t = nW(e);
+var lq = (e) => {
+ var t = tW(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, dq = (e) => e.tooltip.settings.axisId;
+}, uq = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function fq(e) {
+function dq(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -57427,13 +57427,13 @@ function fq(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var pq = (e, t) => {
+var fq = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!_K(t)) {
+ if (!gK(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- dU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ uU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
}
return n !== void 0 && r !== void 0 ? [n, r] : void 0;
}
@@ -57443,14 +57443,14 @@ var pq = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function mq(e, t) {
+function pq(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function hq(e) {
+function mq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = lEe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = uEe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -57476,15 +57476,15 @@ function hq(e) {
right: i
};
}
-function lEe(e) {
- return (t, n) => mq(e(t), n);
+function uEe(e) {
+ return (t, n) => pq(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function gq(e) {
+function hq(e) {
return e === null ? NaN : +e;
}
-function* uEe(e, t) {
+function* dEe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -57493,52 +57493,52 @@ function* uEe(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var _q = hq(mq), vq = _q.right;
-_q.left, hq(gq).center;
+var gq = mq(pq), _q = gq.right;
+gq.left, mq(hq).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var yq = class extends Map {
- constructor(e, t = pEe) {
+var vq = class extends Map {
+ constructor(e, t = mEe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(bq(this, e));
+ return super.get(yq(this, e));
}
has(e) {
- return super.has(bq(this, e));
+ return super.has(yq(this, e));
}
set(e, t) {
- return super.set(dEe(this, e), t);
+ return super.set(fEe(this, e), t);
}
delete(e) {
- return super.delete(fEe(this, e));
+ return super.delete(pEe(this, e));
}
};
-function bq({ _intern: e, _key: t }, n) {
+function yq({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function dEe({ _intern: e, _key: t }, n) {
+function fEe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function fEe({ _intern: e, _key: t }, n) {
+function pEe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function pEe(e) {
+function mEe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var xq = Math.sqrt(50), Sq = Math.sqrt(10), Cq = Math.sqrt(2);
-function wq(e, t, n) {
+var bq = Math.sqrt(50), xq = Math.sqrt(10), Sq = Math.sqrt(2);
+function Cq(e, t, n) {
var r, i = -1, a, o, s;
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
- if ((r = t < e) && (a = e, e = t, t = a), (s = Tq(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = wq(e, t, n)) === 0 || !isFinite(s)) return [];
if (s > 0) {
let n = Math.round(e / s), r = Math.round(t / s);
for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;
@@ -57549,17 +57549,17 @@ function wq(e, t, n) {
}
return r && o.reverse(), o;
}
-function Tq(e, t, n) {
+function wq(e, t, n) {
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;
- return i >= 0 ? (a >= xq ? 10 : a >= Sq ? 5 : a >= Cq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= xq ? 10 : a >= Sq ? 5 : a >= Cq ? 2 : 1);
+ return i >= 0 ? (a >= bq ? 10 : a >= xq ? 5 : a >= Sq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= bq ? 10 : a >= xq ? 5 : a >= Sq ? 2 : 1);
}
-function Eq(e, t, n) {
+function Tq(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;
- return a >= xq ? i *= 10 : a >= Sq ? i *= 5 : a >= Cq && (i *= 2), t < e ? -i : i;
+ return a >= bq ? i *= 10 : a >= xq ? i *= 5 : a >= Sq && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function Dq(e, t) {
+function Eq(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -57570,7 +57570,7 @@ function Dq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function Oq(e, t) {
+function Dq(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -57581,36 +57581,36 @@ function Oq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function kq(e, t, n = 0, r = e.length - 1, i = mq) {
+function Oq(e, t, n = 0, r = e.length - 1, i = pq) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
- kq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ Oq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
}
let a = e[t], o = n, s = r;
- for (Aq(e, n, t), i(e[r], a) > 0 && Aq(e, n, r); o < s;) {
- for (Aq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (kq(e, n, t), i(e[r], a) > 0 && kq(e, n, r); o < s;) {
+ for (kq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? Aq(e, n, s) : (++s, Aq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? kq(e, n, s) : (++s, kq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function Aq(e, t, n) {
+function kq(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function mEe(e, t, n) {
- if (e = Float64Array.from(uEe(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return Oq(e);
- if (t >= 1) return Dq(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = Dq(kq(e, a).subarray(0, a + 1));
- return o + (Oq(e.subarray(a + 1)) - o) * (i - a);
+function hEe(e, t, n) {
+ if (e = Float64Array.from(dEe(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return Dq(e);
+ if (t >= 1) return Eq(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = Eq(Oq(e, a).subarray(0, a + 1));
+ return o + (Dq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function hEe(e, t, n = gq) {
+function gEe(e, t, n = hq) {
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);
@@ -57620,14 +57620,14 @@ function hEe(e, t, n = gq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function gEe(e, t, n) {
+function _Ee(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;
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function jq(e, t) {
+function Aq(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -57638,7 +57638,7 @@ function jq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function Mq(e, t) {
+function jq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -57648,7 +57648,7 @@ function Mq(e, t) {
}
return this;
}
-function Nq(e, t) {
+function Mq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -57660,20 +57660,20 @@ function Nq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var Pq = Symbol("implicit");
-function Fq() {
- var e = new yq(), t = [], n = [], r = Pq;
+var Nq = Symbol("implicit");
+function Pq() {
+ var e = new vq(), t = [], n = [], r = Nq;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== Pq) return r;
+ if (r !== Nq) return r;
e.set(i, a = t.push(i) - 1);
}
return n[a % n.length];
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new yq();
+ t = [], e = new vq();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -57681,18 +57681,18 @@ function Fq() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return Fq(t, n).unknown(r);
- }, Mq.apply(i, arguments), i;
+ return Pq(t, n).unknown(r);
+ }, jq.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function Iq() {
- var e = Fq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function Fq() {
+ var e = Pq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
delete e.unknown;
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 = gEe(e).map(function(e) {
+ var m = _Ee(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -57718,32 +57718,32 @@ function Iq() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return Iq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, Mq.apply(d(), arguments);
+ return Fq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, jq.apply(d(), arguments);
}
-function Lq(e) {
+function Iq(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return Lq(t());
+ return Iq(t());
}, e;
}
-function _Ee() {
- return Lq(Iq.apply(null, arguments).paddingInner(1));
+function vEe() {
+ return Iq(Fq.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function Rq(e, t, n) {
+function Lq(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function zq(e, t) {
+function Rq(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n;
}
//#endregion
//#region node_modules/d3-color/src/color.js
-function Bq() {}
-var Vq = .7, Hq = 1 / Vq, Uq = "\\s*([+-]?\\d+)\\s*", Wq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Gq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", vEe = /^#([0-9a-f]{3,8})$/, yEe = RegExp(`^rgb\\(${Uq},${Uq},${Uq}\\)$`), bEe = RegExp(`^rgb\\(${Gq},${Gq},${Gq}\\)$`), xEe = RegExp(`^rgba\\(${Uq},${Uq},${Uq},${Wq}\\)$`), SEe = RegExp(`^rgba\\(${Gq},${Gq},${Gq},${Wq}\\)$`), CEe = RegExp(`^hsl\\(${Wq},${Gq},${Gq}\\)$`), wEe = RegExp(`^hsla\\(${Wq},${Gq},${Gq},${Wq}\\)$`), Kq = {
+function zq() {}
+var Bq = .7, Vq = 1 / Bq, Hq = "\\s*([+-]?\\d+)\\s*", Uq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Wq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", yEe = /^#([0-9a-f]{3,8})$/, bEe = RegExp(`^rgb\\(${Hq},${Hq},${Hq}\\)$`), xEe = RegExp(`^rgb\\(${Wq},${Wq},${Wq}\\)$`), SEe = RegExp(`^rgba\\(${Hq},${Hq},${Hq},${Uq}\\)$`), CEe = RegExp(`^rgba\\(${Wq},${Wq},${Wq},${Uq}\\)$`), wEe = RegExp(`^hsl\\(${Uq},${Wq},${Wq}\\)$`), TEe = RegExp(`^hsla\\(${Uq},${Wq},${Wq},${Uq}\\)$`), Gq = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -57893,170 +57893,170 @@ var Vq = .7, Hq = 1 / Vq, Uq = "\\s*([+-]?\\d+)\\s*", Wq = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-Rq(Bq, Yq, {
+Lq(zq, Jq, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: qq,
- formatHex: qq,
- formatHex8: TEe,
- formatHsl: EEe,
- formatRgb: Jq,
- toString: Jq
+ hex: Kq,
+ formatHex: Kq,
+ formatHex8: EEe,
+ formatHsl: DEe,
+ formatRgb: qq,
+ toString: qq
});
-function qq() {
+function Kq() {
return this.rgb().formatHex();
}
-function TEe() {
+function EEe() {
return this.rgb().formatHex8();
}
-function EEe() {
- return oJ(this).formatHsl();
+function DEe() {
+ return aJ(this).formatHsl();
}
-function Jq() {
+function qq() {
return this.rgb().formatRgb();
}
-function Yq(e) {
+function Jq(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = vEe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Xq(t) : n === 3 ? new $q(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Zq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Zq(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 = yEe.exec(e)) ? new $q(t[1], t[2], t[3], 1) : (t = bEe.exec(e)) ? new $q(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = xEe.exec(e)) ? Zq(t[1], t[2], t[3], t[4]) : (t = SEe.exec(e)) ? Zq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = CEe.exec(e)) ? aJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = wEe.exec(e)) ? aJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Kq.hasOwnProperty(e) ? Xq(Kq[e]) : e === "transparent" ? new $q(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = yEe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Yq(t) : n === 3 ? new Qq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Xq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Xq(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 = bEe.exec(e)) ? new Qq(t[1], t[2], t[3], 1) : (t = xEe.exec(e)) ? new Qq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = SEe.exec(e)) ? Xq(t[1], t[2], t[3], t[4]) : (t = CEe.exec(e)) ? Xq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = wEe.exec(e)) ? iJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = TEe.exec(e)) ? iJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Gq.hasOwnProperty(e) ? Yq(Gq[e]) : e === "transparent" ? new Qq(NaN, NaN, NaN, 0) : null;
}
-function Xq(e) {
- return new $q(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function Yq(e) {
+ return new Qq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function Zq(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new $q(e, t, n, r);
+function Xq(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new Qq(e, t, n, r);
}
-function DEe(e) {
- return e instanceof Bq || (e = Yq(e)), e ? (e = e.rgb(), new $q(e.r, e.g, e.b, e.opacity)) : new $q();
+function OEe(e) {
+ return e instanceof zq || (e = Jq(e)), e ? (e = e.rgb(), new Qq(e.r, e.g, e.b, e.opacity)) : new Qq();
}
-function Qq(e, t, n, r) {
- return arguments.length === 1 ? DEe(e) : new $q(e, t, n, r ?? 1);
+function Zq(e, t, n, r) {
+ return arguments.length === 1 ? OEe(e) : new Qq(e, t, n, r ?? 1);
}
-function $q(e, t, n, r) {
+function Qq(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-Rq($q, Qq, zq(Bq, {
+Lq(Qq, Zq, Rq(zq, {
brighter(e) {
- return e = e == null ? Hq : Hq ** +e, new $q(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? Vq : Vq ** +e, new Qq(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? Vq : Vq ** +e, new $q(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? Bq : Bq ** +e, new Qq(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new $q(rJ(this.r), rJ(this.g), rJ(this.b), nJ(this.opacity));
+ return new Qq(nJ(this.r), nJ(this.g), nJ(this.b), tJ(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: eJ,
- formatHex: eJ,
- formatHex8: OEe,
- formatRgb: tJ,
- toString: tJ
+ hex: $q,
+ formatHex: $q,
+ formatHex8: kEe,
+ formatRgb: eJ,
+ toString: eJ
}));
-function eJ() {
- return `#${iJ(this.r)}${iJ(this.g)}${iJ(this.b)}`;
+function $q() {
+ return `#${rJ(this.r)}${rJ(this.g)}${rJ(this.b)}`;
}
-function OEe() {
- return `#${iJ(this.r)}${iJ(this.g)}${iJ(this.b)}${iJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+function kEe() {
+ return `#${rJ(this.r)}${rJ(this.g)}${rJ(this.b)}${rJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function tJ() {
- let e = nJ(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${rJ(this.r)}, ${rJ(this.g)}, ${rJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function eJ() {
+ let e = tJ(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${nJ(this.r)}, ${nJ(this.g)}, ${nJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function nJ(e) {
+function tJ(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function rJ(e) {
+function nJ(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function iJ(e) {
- return e = rJ(e), (e < 16 ? "0" : "") + e.toString(16);
+function rJ(e) {
+ return e = nJ(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function aJ(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new sJ(e, t, n, r);
+function iJ(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 sJ) return new sJ(e.h, e.s, e.l, e.opacity);
- if (e instanceof Bq || (e = Yq(e)), !e) return new sJ();
- if (e instanceof sJ) return e;
+function aJ(e) {
+ if (e instanceof oJ) return new oJ(e.h, e.s, e.l, e.opacity);
+ if (e instanceof zq || (e = Jq(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 sJ(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 kEe(e, t, n, r) {
- return arguments.length === 1 ? oJ(e) : new sJ(e, t, n, r ?? 1);
+function AEe(e, t, n, r) {
+ return arguments.length === 1 ? aJ(e) : new oJ(e, t, n, r ?? 1);
}
-function sJ(e, t, n, r) {
+function oJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-Rq(sJ, kEe, zq(Bq, {
+Lq(oJ, AEe, Rq(zq, {
brighter(e) {
- return e = e == null ? Hq : Hq ** +e, new sJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? Vq : Vq ** +e, new oJ(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? Vq : Vq ** +e, new sJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? Bq : Bq ** +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 $q(uJ(e >= 240 ? e - 240 : e + 120, i, r), uJ(e, i, r), uJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new Qq(lJ(e >= 240 ? e - 240 : e + 120, i, r), lJ(e, i, r), lJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new sJ(cJ(this.h), lJ(this.s), lJ(this.l), nJ(this.opacity));
+ return new oJ(sJ(this.h), cJ(this.s), cJ(this.l), tJ(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 = nJ(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${cJ(this.h)}, ${lJ(this.s) * 100}%, ${lJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = tJ(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${sJ(this.h)}, ${cJ(this.s) * 100}%, ${cJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function cJ(e) {
+function sJ(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function lJ(e) {
+function cJ(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function uJ(e, t, n) {
+function lJ(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 dJ = (e) => () => e;
+var uJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function AEe(e, t) {
+function jEe(e, t) {
return function(n) {
return e + n * t;
};
}
-function jEe(e, t, n) {
+function MEe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function MEe(e) {
- return (e = +e) == 1 ? fJ : function(t, n) {
- return n - t ? jEe(t, n, e) : dJ(isNaN(t) ? n : t);
+function NEe(e) {
+ return (e = +e) == 1 ? dJ : function(t, n) {
+ return n - t ? MEe(t, n, e) : uJ(isNaN(t) ? n : t);
};
}
-function fJ(e, t) {
+function dJ(e, t) {
var n = t - e;
- return n ? AEe(e, n) : dJ(isNaN(e) ? t : e);
+ return n ? jEe(e, n) : uJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var pJ = (function e(t) {
- var n = MEe(t);
+var fJ = (function e(t) {
+ var n = NEe(t);
function r(e, t) {
- var r = n((e = Qq(e)).r, (t = Qq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = fJ(e.opacity, t.opacity);
+ var r = n((e = Zq(e)).r, (t = Zq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = dJ(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 + "";
};
@@ -58065,7 +58065,7 @@ var pJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function NEe(e, t) {
+function PEe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -58073,14 +58073,14 @@ function NEe(e, t) {
return r;
};
}
-function PEe(e) {
+function FEe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function FEe(e, t) {
+function IEe(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] = _J(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = gJ(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);
@@ -58089,7 +58089,7 @@ function FEe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function IEe(e, t) {
+function LEe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -58097,16 +58097,16 @@ function IEe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function mJ(e, t) {
+function pJ(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 LEe(e, t) {
+function REe(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] = _J(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] = gJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -58114,45 +58114,45 @@ function LEe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var hJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, gJ = new RegExp(hJ.source, "g");
-function REe(e) {
+var mJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, hJ = new RegExp(mJ.source, "g");
+function zEe(e) {
return function() {
return e;
};
}
-function zEe(e) {
+function BEe(e) {
return function(t) {
return e(t) + "";
};
}
-function BEe(e, t) {
- var n = hJ.lastIndex = gJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = hJ.exec(e)) && (i = gJ.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 VEe(e, t) {
+ var n = mJ.lastIndex = hJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = mJ.exec(e)) && (i = hJ.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: mJ(r, i)
- })), n = gJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? zEe(c[0].x) : REe(t) : (t = c.length, function(e) {
+ x: pJ(r, i)
+ })), n = hJ.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? BEe(c[0].x) : zEe(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 _J(e, t) {
+function gJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? dJ(t) : (n === "number" ? mJ : n === "string" ? (r = Yq(t)) ? (t = r, pJ) : BEe : t instanceof Yq ? pJ : t instanceof Date ? IEe : PEe(t) ? NEe : Array.isArray(t) ? FEe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? LEe : mJ)(e, t);
+ return t == null || n === "boolean" ? uJ(t) : (n === "number" ? pJ : n === "string" ? (r = Jq(t)) ? (t = r, fJ) : VEe : t instanceof Jq ? fJ : t instanceof Date ? LEe : FEe(t) ? PEe : Array.isArray(t) ? IEe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? REe : pJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function vJ(e, t) {
+function _J(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 VEe(e, t) {
- t === void 0 && (t = e, e = _J);
+function HEe(e, t) {
+ t === void 0 && (t = e, e = gJ);
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)));
@@ -58161,69 +58161,69 @@ function VEe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function HEe(e) {
+function UEe(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function yJ(e) {
+function vJ(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var bJ = [0, 1];
-function xJ(e) {
+var yJ = [0, 1];
+function bJ(e) {
return e;
}
-function SJ(e, t) {
+function xJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : HEe(isNaN(t) ? NaN : .5);
+ } : UEe(isNaN(t) ? NaN : .5);
}
-function UEe(e, t) {
+function WEe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function WEe(e, t, n) {
+function GEe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = SJ(i, r), a = n(o, a)) : (r = SJ(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = xJ(i, r), a = n(o, a)) : (r = xJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function GEe(e, t, n) {
+function KEe(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] = SJ(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] = xJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = vq(e, t, 1, r) - 1;
+ var n = _q(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function CJ(e, t) {
+function SJ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function wJ() {
- var e = bJ, t = bJ, n = _J, r, i, a, o = xJ, s, c, l;
+function CJ() {
+ var e = yJ, t = yJ, n = gJ, r, i, a, o = bJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== xJ && (o = UEe(e[0], e[n - 1])), s = n > 2 ? GEe : WEe, c = l = null, d;
+ return o !== bJ && (o = WEe(e[0], e[n - 1])), s = n > 2 ? KEe : GEe, 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), mJ))(n)));
+ return o(i((l ||= s(t, e.map(r), pJ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, yJ), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, vJ), 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 = vJ, u();
+ return t = Array.from(e), n = _J, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : xJ, u()) : o !== xJ;
+ return arguments.length ? (o = e ? !0 : bJ, u()) : o !== bJ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -58232,27 +58232,27 @@ function wJ() {
return r = e, i = t, u();
};
}
-function TJ() {
- return wJ()(xJ, xJ);
+function wJ() {
+ return CJ()(bJ, bJ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function KEe(e) {
+function qEe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function EJ(e, t) {
+function TJ(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 DJ(e) {
- return e = EJ(Math.abs(e)), e ? e[1] : NaN;
+function EJ(e) {
+ return e = TJ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function qEe(e, t) {
+function JEe(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);
@@ -58260,7 +58260,7 @@ function qEe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function JEe(e) {
+function YEe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -58269,11 +58269,11 @@ function JEe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var YEe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function OJ(e) {
- if (!(t = YEe.exec(e))) throw Error("invalid format: " + e);
+var XEe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+function DJ(e) {
+ if (!(t = XEe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new kJ({
+ return new OJ({
fill: t[1],
align: t[2],
sign: t[3],
@@ -58286,16 +58286,16 @@ function OJ(e) {
type: t[10]
});
}
-OJ.prototype = kJ.prototype;
-function kJ(e) {
+DJ.prototype = OJ.prototype;
+function OJ(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 + "";
}
-kJ.prototype.toString = function() {
+OJ.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 XEe(e) {
+function ZEe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -58311,46 +58311,46 @@ function XEe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var AJ;
-function ZEe(e, t) {
- var n = EJ(e, t);
- if (!n) return AJ = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (AJ = 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") + EJ(e, Math.max(0, t + a - 1))[0];
+var kJ;
+function QEe(e, t) {
+ var n = TJ(e, t);
+ if (!n) return kJ = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (kJ = 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") + TJ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function jJ(e, t) {
- var n = EJ(e, t);
+function AJ(e, t) {
+ var n = TJ(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 MJ = {
+var jJ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: KEe,
+ d: qEe,
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) => jJ(e * 100, t),
- r: jJ,
- s: ZEe,
+ p: (e, t) => AJ(e * 100, t),
+ r: AJ,
+ s: QEe,
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 NJ(e) {
+function MJ(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var PJ = Array.prototype.map, FJ = [
+var NJ = Array.prototype.map, PJ = [
"y",
"z",
"a",
@@ -58369,13 +58369,13 @@ var PJ = Array.prototype.map, FJ = [
"Z",
"Y"
];
-function QEe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? NJ : qEe(PJ.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 ? NJ : JEe(PJ.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 $Ee(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? MJ : JEe(NJ.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 ? MJ : YEe(NJ.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 = OJ(e);
+ e = DJ(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") : MJ[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 = MJ[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : jJ[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 = jJ[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;
@@ -58383,7 +58383,7 @@ function QEe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = XEe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && AJ !== void 0 ? FJ[8 + AJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = ZEe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && kJ !== void 0 ? PJ[8 + kJ / 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;
@@ -58411,7 +58411,7 @@ function QEe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(DJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = OJ(e), e.type = "f", e), { suffix: FJ[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(EJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = DJ(e), e.type = "f", e), { suffix: PJ[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -58423,65 +58423,65 @@ function QEe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var IJ, LJ, RJ;
-$Ee({
+var FJ, IJ, LJ;
+eDe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function $Ee(e) {
- return IJ = QEe(e), LJ = IJ.format, RJ = IJ.formatPrefix, IJ;
+function eDe(e) {
+ return FJ = $Ee(e), IJ = FJ.format, LJ = FJ.formatPrefix, FJ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function eDe(e) {
- return Math.max(0, -DJ(Math.abs(e)));
+function tDe(e) {
+ return Math.max(0, -EJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function tDe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(DJ(t) / 3))) * 3 - DJ(Math.abs(e)));
+function nDe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(EJ(t) / 3))) * 3 - EJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function nDe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, DJ(t) - DJ(e)) + 1;
+function rDe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, EJ(t) - EJ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function zJ(e, t, n, r) {
- var i = Eq(e, t, n), a;
- switch (r = OJ(r ?? ",f"), r.type) {
+function RJ(e, t, n, r) {
+ var i = Tq(e, t, n), a;
+ switch (r = DJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = tDe(i, o)) && (r.precision = a), RJ(r, o);
+ return r.precision == null && !isNaN(a = nDe(i, o)) && (r.precision = a), LJ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = nDe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = rDe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = eDe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = tDe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return LJ(r);
+ return IJ(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function BJ(e) {
+function zJ(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return wq(n[0], n[n.length - 1], e ?? 10);
+ return Cq(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return zJ(r[0], r[r.length - 1], e ?? 10, n);
+ return RJ(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;
for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
- if (l = Tq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = wq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
else break;
@@ -58490,64 +58490,64 @@ function BJ(e) {
return e;
}, e;
}
-function VJ() {
- var e = TJ();
+function BJ() {
+ var e = wJ();
return e.copy = function() {
- return CJ(e, VJ());
- }, Mq.apply(e, arguments), BJ(e);
+ return SJ(e, BJ());
+ }, jq.apply(e, arguments), zJ(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function HJ(e) {
+function VJ(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, yJ), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, vJ), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return HJ(e).unknown(t);
- }, e = arguments.length ? Array.from(e, yJ) : [0, 1], BJ(n);
+ return VJ(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, vJ) : [0, 1], zJ(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function UJ(e, t) {
+function HJ(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 WJ(e) {
+function UJ(e) {
return Math.log(e);
}
-function GJ(e) {
+function WJ(e) {
return Math.exp(e);
}
-function rDe(e) {
- return -Math.log(-e);
-}
function iDe(e) {
- return -Math.exp(-e);
+ return -Math.log(-e);
}
function aDe(e) {
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
+ return -Math.exp(-e);
}
function oDe(e) {
- return e === 10 ? aDe : e === Math.E ? Math.exp : (t) => e ** +t;
+ return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
function sDe(e) {
+ return e === 10 ? oDe : e === Math.E ? Math.exp : (t) => e ** +t;
+}
+function cDe(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 KJ(e) {
+function GJ(e) {
return (t, n) => -e(-t, n);
}
-function qJ(e) {
- let t = e(WJ, GJ), n = t.domain, r = 10, i, a;
+function KJ(e) {
+ let t = e(UJ, WJ), n = t.domain, r = 10, i, a;
function o() {
- return i = sDe(r), a = oDe(r), n()[0] < 0 ? (i = KJ(i), a = KJ(a), e(rDe, iDe)) : e(WJ, GJ), t;
+ return i = cDe(r), a = sDe(r), n()[0] < 0 ? (i = GJ(i), a = GJ(a), e(iDe, aDe)) : e(UJ, WJ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -58567,100 +58567,100 @@ function qJ(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = wq(o, s, p));
- } else m = wq(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = Cq(o, s, p));
+ } else m = Cq(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 = OJ(n)).precision == null && (n.trim = !0), n = LJ(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = DJ(n)).precision == null && (n.trim = !0), n = IJ(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(UJ(n(), {
+ }, t.nice = () => n(HJ(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function JJ() {
- let e = qJ(wJ()).domain([1, 10]);
- return e.copy = () => CJ(e, JJ()).base(e.base()), Mq.apply(e, arguments), e;
+function qJ() {
+ let e = KJ(CJ()).domain([1, 10]);
+ return e.copy = () => SJ(e, qJ()).base(e.base()), jq.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function YJ(e) {
+function JJ(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function XJ(e) {
+function YJ(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function ZJ(e) {
- var t = 1, n = e(YJ(t), XJ(t));
+function XJ(e) {
+ var t = 1, n = e(JJ(t), YJ(t));
return n.constant = function(n) {
- return arguments.length ? e(YJ(t = +n), XJ(t)) : t;
- }, BJ(n);
+ return arguments.length ? e(JJ(t = +n), YJ(t)) : t;
+ }, zJ(n);
}
-function QJ() {
- var e = ZJ(wJ());
+function ZJ() {
+ var e = XJ(CJ());
return e.copy = function() {
- return CJ(e, QJ()).constant(e.constant());
- }, Mq.apply(e, arguments);
+ return SJ(e, ZJ()).constant(e.constant());
+ }, jq.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function $J(e) {
+function QJ(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function cDe(e) {
+function lDe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function lDe(e) {
+function uDe(e) {
return e < 0 ? -e * e : e * e;
}
-function eY(e) {
- var t = e(xJ, xJ), n = 1;
+function $J(e) {
+ var t = e(bJ, bJ), n = 1;
function r() {
- return n === 1 ? e(xJ, xJ) : n === .5 ? e(cDe, lDe) : e($J(n), $J(1 / n));
+ return n === 1 ? e(bJ, bJ) : n === .5 ? e(lDe, uDe) : e(QJ(n), QJ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, BJ(t);
+ }, zJ(t);
}
-function tY() {
- var e = eY(wJ());
+function eY() {
+ var e = $J(CJ());
return e.copy = function() {
- return CJ(e, tY()).exponent(e.exponent());
- }, Mq.apply(e, arguments), e;
+ return SJ(e, eY()).exponent(e.exponent());
+ }, jq.apply(e, arguments), e;
}
-function uDe() {
- return tY.apply(null, arguments).exponent(.5);
+function dDe() {
+ return eY.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function nY(e) {
+function tY(e) {
return Math.sign(e) * e * e;
}
-function dDe(e) {
+function fDe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function rY() {
- var e = TJ(), t = [0, 1], n = !1, r;
+function nY() {
+ var e = wJ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = dDe(e(t));
+ var i = fDe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert(nY(t));
+ return e.invert(tY(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, yJ)).map(nY)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, vJ)).map(tY)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -58670,20 +58670,20 @@ function rY() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return rY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, Mq.apply(i, arguments), BJ(i);
+ return nY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, jq.apply(i, arguments), zJ(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function iY() {
+function rY() {
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] = hEe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = gEe(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[vq(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[_q(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -58692,7 +58692,7 @@ function iY() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(mq), i();
+ return e.sort(pq), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -58700,15 +58700,15 @@ function iY() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return iY().domain(e).range(t).unknown(r);
- }, Mq.apply(a, arguments);
+ return rY().domain(e).range(t).unknown(r);
+ }, jq.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function aY() {
+function iY() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[vq(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[_q(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -58727,15 +58727,15 @@ function aY() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return aY().domain([e, t]).range(i).unknown(a);
- }, Mq.apply(BJ(o), arguments);
+ return iY().domain([e, t]).range(i).unknown(a);
+ }, jq.apply(zJ(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function oY() {
+function aY() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[vq(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[_q(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -58747,13 +58747,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);
- }, Mq.apply(i, arguments);
+ return aY().domain(e).range(t).unknown(n);
+ }, jq.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var sY = /* @__PURE__ */ new Date(), cY = /* @__PURE__ */ new Date();
-function lY(e, t, n, r) {
+var oY = /* @__PURE__ */ new Date(), sY = /* @__PURE__ */ new Date();
+function cY(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -58768,226 +58768,226 @@ function lY(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) => lY((t) => {
+ }, i.filter = (n) => cY((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) => (sY.setTime(+t), cY.setTime(+r), e(sY), e(cY), Math.floor(n(sY, cY))), 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), sY.setTime(+r), e(oY), e(sY), Math.floor(n(oY, sY))), 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 uY = lY(() => {}, (e, t) => {
+var lY = cY(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-uY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? lY((t) => {
+lY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? cY((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : uY), uY.range;
+}, (t, n) => (n - t) / e) : lY), lY.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var dY = 1e3, fY = dY * 60, pY = fY * 60, mY = pY * 24, hY = mY * 7, gY = mY * 30, _Y = mY * 365, vY = lY((e) => {
+var uY = 1e3, dY = uY * 60, fY = dY * 60, pY = fY * 24, mY = pY * 7, hY = pY * 30, gY = pY * 365, _Y = cY((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * dY);
-}, (e, t) => (t - e) / dY, (e) => e.getUTCSeconds());
-vY.range;
+ e.setTime(+e + t * uY);
+}, (e, t) => (t - e) / uY, (e) => e.getUTCSeconds());
+_Y.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var yY = lY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * dY);
+var vY = cY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * uY);
}, (e, t) => {
- e.setTime(+e + t * fY);
-}, (e, t) => (t - e) / fY, (e) => e.getMinutes());
-yY.range;
-var bY = lY((e) => {
+ e.setTime(+e + t * dY);
+}, (e, t) => (t - e) / dY, (e) => e.getMinutes());
+vY.range;
+var yY = cY((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * fY);
-}, (e, t) => (t - e) / fY, (e) => e.getUTCMinutes());
-bY.range;
+ e.setTime(+e + t * dY);
+}, (e, t) => (t - e) / dY, (e) => e.getUTCMinutes());
+yY.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var xY = lY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * dY - e.getMinutes() * fY);
+var bY = cY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * uY - e.getMinutes() * dY);
}, (e, t) => {
- e.setTime(+e + t * pY);
-}, (e, t) => (t - e) / pY, (e) => e.getHours());
-xY.range;
-var SY = lY((e) => {
+ e.setTime(+e + t * fY);
+}, (e, t) => (t - e) / fY, (e) => e.getHours());
+bY.range;
+var xY = cY((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * pY);
-}, (e, t) => (t - e) / pY, (e) => e.getUTCHours());
-SY.range;
+ e.setTime(+e + t * fY);
+}, (e, t) => (t - e) / fY, (e) => e.getUTCHours());
+xY.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var CY = lY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * fY) / mY, (e) => e.getDate() - 1);
-CY.range;
-var wY = lY((e) => {
+var SY = cY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * dY) / pY, (e) => e.getDate() - 1);
+SY.range;
+var CY = cY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / mY, (e) => e.getUTCDate() - 1);
-wY.range;
-var TY = lY((e) => {
+}, (e, t) => (t - e) / pY, (e) => e.getUTCDate() - 1);
+CY.range;
+var wY = cY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / mY, (e) => Math.floor(e / mY));
-TY.range;
+}, (e, t) => (t - e) / pY, (e) => Math.floor(e / pY));
+wY.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function EY(e) {
- return lY((t) => {
+function TY(e) {
+ return cY((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()) * fY) / hY);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * dY) / mY);
}
-var DY = EY(0), OY = EY(1), fDe = EY(2), pDe = EY(3), kY = EY(4), mDe = EY(5), hDe = EY(6);
-DY.range, OY.range, fDe.range, pDe.range, kY.range, mDe.range, hDe.range;
-function AY(e) {
- return lY((t) => {
+var EY = TY(0), DY = TY(1), pDe = TY(2), mDe = TY(3), OY = TY(4), hDe = TY(5), gDe = TY(6);
+EY.range, DY.range, pDe.range, mDe.range, OY.range, hDe.range, gDe.range;
+function kY(e) {
+ return cY((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) / hY);
+ }, (e, t) => (t - e) / mY);
}
-var jY = AY(0), MY = AY(1), gDe = AY(2), _De = AY(3), NY = AY(4), vDe = AY(5), yDe = AY(6);
-jY.range, MY.range, gDe.range, _De.range, NY.range, vDe.range, yDe.range;
+var AY = kY(0), jY = kY(1), _De = kY(2), vDe = kY(3), MY = kY(4), yDe = kY(5), bDe = kY(6);
+AY.range, jY.range, _De.range, vDe.range, MY.range, yDe.range, bDe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var PY = lY((e) => {
+var NY = cY((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());
-PY.range;
-var FY = lY((e) => {
+NY.range;
+var PY = cY((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());
-FY.range;
+PY.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var IY = lY((e) => {
+var FY = cY((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());
-IY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : lY((t) => {
+FY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : cY((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);
-}), IY.range;
-var LY = lY((e) => {
+}), FY.range;
+var IY = cY((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());
-LY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : lY((t) => {
+IY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : cY((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);
-}), LY.range;
+}), IY.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function RY(e, t, n, r, i, a) {
+function LY(e, t, n, r, i, a) {
let o = [
[
- vY,
+ _Y,
1,
- dY
+ uY
],
[
- vY,
+ _Y,
5,
- 5 * dY
+ 5 * uY
],
[
- vY,
+ _Y,
15,
- 15 * dY
+ 15 * uY
],
[
- vY,
+ _Y,
30,
- 30 * dY
+ 30 * uY
],
[
a,
1,
- fY
+ dY
],
[
a,
5,
- 5 * fY
+ 5 * dY
],
[
a,
15,
- 15 * fY
+ 15 * dY
],
[
a,
30,
- 30 * fY
+ 30 * dY
],
[
i,
1,
- pY
+ fY
],
[
i,
3,
- 3 * pY
+ 3 * fY
],
[
i,
6,
- 6 * pY
+ 6 * fY
],
[
i,
12,
- 12 * pY
+ 12 * fY
],
[
r,
1,
- mY
+ pY
],
[
r,
2,
- 2 * mY
+ 2 * pY
],
[
n,
1,
- hY
+ mY
],
[
t,
1,
- gY
+ hY
],
[
t,
3,
- 3 * gY
+ 3 * hY
],
[
e,
1,
- _Y
+ gY
]
];
function s(e, t, n) {
@@ -58997,32 +58997,32 @@ function RY(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = hq(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(Eq(t / _Y, n / _Y, r));
- if (a === 0) return uY.every(Math.max(Eq(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = mq(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(Tq(t / gY, n / gY, r));
+ if (a === 0) return lY.every(Math.max(Tq(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 [bDe, xDe] = RY(LY, FY, jY, TY, SY, bY), [SDe, CDe] = RY(IY, PY, DY, CY, xY, yY);
+var [xDe, SDe] = LY(IY, PY, AY, wY, xY, yY), [CDe, wDe] = LY(FY, NY, EY, SY, bY, vY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function zY(e) {
+function RY(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 BY(e) {
+function zY(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 VY(e, t, n) {
+function BY(e, t, n) {
return {
y: e,
m: t,
@@ -59033,133 +59033,133 @@ function VY(e, t, n) {
L: 0
};
}
-function wDe(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 = GY(i), u = KY(i), d = GY(a), f = KY(a), p = GY(o), m = KY(o), h = GY(s), g = KY(s), _ = GY(c), v = KY(c), y = {
+function TDe(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 = WY(i), u = GY(i), d = WY(a), f = GY(a), p = WY(o), m = GY(o), h = WY(s), g = GY(s), _ = WY(c), v = GY(c), y = {
a: N,
A: ee,
b: te,
B: P,
c: null,
- d: ZY,
- e: ZY,
- f: qDe,
- g: rOe,
- G: aOe,
- H: WDe,
- I: GDe,
- j: KDe,
- L: QY,
- m: JDe,
- M: YDe,
+ d: XY,
+ e: XY,
+ f: JDe,
+ g: iOe,
+ G: oOe,
+ H: GDe,
+ I: KDe,
+ j: qDe,
+ L: ZY,
+ m: YDe,
+ M: XDe,
p: F,
q: ne,
- Q: iX,
- s: aX,
- S: XDe,
- u: ZDe,
- U: QDe,
- V: $De,
- w: eOe,
- W: tOe,
+ Q: rX,
+ s: iX,
+ S: ZDe,
+ u: QDe,
+ U: $De,
+ V: eOe,
+ w: tOe,
+ W: nOe,
x: null,
X: null,
- y: nOe,
- Y: iOe,
- Z: oOe,
- "%": rX
+ y: rOe,
+ Y: aOe,
+ Z: sOe,
+ "%": nX
}, b = {
a: I,
A: re,
b: L,
B: ie,
c: null,
- d: eX,
- e: eX,
- f: uOe,
- g: bOe,
- G: SOe,
- H: sOe,
- I: cOe,
- j: lOe,
- L: tX,
- m: dOe,
- M: fOe,
+ d: $Y,
+ e: $Y,
+ f: dOe,
+ g: xOe,
+ G: COe,
+ H: cOe,
+ I: lOe,
+ j: uOe,
+ L: eX,
+ m: fOe,
+ M: pOe,
p: ae,
q: oe,
- Q: iX,
- s: aX,
- S: pOe,
- u: mOe,
- U: hOe,
- V: gOe,
- w: _Oe,
- W: vOe,
+ Q: rX,
+ s: iX,
+ S: mOe,
+ u: hOe,
+ U: gOe,
+ V: _Oe,
+ w: vOe,
+ W: yOe,
x: null,
X: null,
- y: yOe,
- Y: xOe,
- Z: COe,
- "%": rX
+ y: bOe,
+ Y: SOe,
+ Z: wOe,
+ "%": nX
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: YY,
- e: YY,
- f: BDe,
- g: JY,
- G: qY,
- H: XY,
- I: XY,
- j: IDe,
- L: zDe,
- m: FDe,
- M: LDe,
+ d: JY,
+ e: JY,
+ f: VDe,
+ g: qY,
+ G: KY,
+ H: YY,
+ I: YY,
+ j: LDe,
+ L: BDe,
+ m: IDe,
+ M: RDe,
p: T,
- q: PDe,
- Q: HDe,
- s: UDe,
- S: RDe,
- u: kDe,
- U: ADe,
- V: jDe,
- w: ODe,
- W: MDe,
+ q: FDe,
+ Q: UDe,
+ s: WDe,
+ S: zDe,
+ u: ADe,
+ U: jDe,
+ V: MDe,
+ w: kDe,
+ W: NDe,
x: j,
X: M,
- y: JY,
- Y: qY,
- Z: NDe,
- "%": VDe
+ y: qY,
+ Y: KY,
+ Z: PDe,
+ "%": HDe
};
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 = HY[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 = VY[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 = VY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = BY(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 = BY(VY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? MY.ceil(a) : MY(a), a = wY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = zY(VY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? OY.ceil(a) : OY(a), a = CY.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 ? BY(VY(r.y, 0, 1)).getUTCDay() : zY(VY(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, BY(r)) : zY(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = zY(BY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? jY.ceil(a) : jY(a), a = CY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = RY(BY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? DY.ceil(a) : DY(a), a = SY.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 ? zY(BY(r.y, 0, 1)).getUTCDay() : RY(BY(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, zY(r)) : RY(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 HY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in VY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -59256,244 +59256,244 @@ function wDe(e) {
}
};
}
-var HY = {
+var VY = {
"-": "",
_: " ",
0: "0"
-}, UY = /^\s*\d+/, TDe = /^%/, EDe = /[\\^$*+?|[\]().{}]/g;
-function WY(e, t, n) {
+}, HY = /^\s*\d+/, EDe = /^%/, DDe = /[\\^$*+?|[\]().{}]/g;
+function UY(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 DDe(e) {
- return e.replace(EDe, "\\$&");
+function ODe(e) {
+ return e.replace(DDe, "\\$&");
}
-function GY(e) {
- return RegExp("^(?:" + e.map(DDe).join("|") + ")", "i");
+function WY(e) {
+ return RegExp("^(?:" + e.map(ODe).join("|") + ")", "i");
}
-function KY(e) {
+function GY(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function ODe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 1));
+function kDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function kDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 1));
+function ADe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function ADe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function jDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function jDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function MDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function MDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function NDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function qY(e, t, n) {
- var r = UY.exec(t.slice(n, n + 4));
+function KY(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function JY(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function qY(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function NDe(e, t, n) {
+function PDe(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 PDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 1));
+function FDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function FDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function IDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function YY(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function JY(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function IDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 3));
+function LDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function XY(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function YY(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function LDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function RDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function RDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 2));
+function zDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function zDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 3));
+function BDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function BDe(e, t, n) {
- var r = UY.exec(t.slice(n, n + 6));
+function VDe(e, t, n) {
+ var r = HY.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function VDe(e, t, n) {
- var r = TDe.exec(t.slice(n, n + 1));
+function HDe(e, t, n) {
+ var r = EDe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function HDe(e, t, n) {
- var r = UY.exec(t.slice(n));
+function UDe(e, t, n) {
+ var r = HY.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function UDe(e, t, n) {
- var r = UY.exec(t.slice(n));
+function WDe(e, t, n) {
+ var r = HY.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function ZY(e, t) {
- return WY(e.getDate(), t, 2);
-}
-function WDe(e, t) {
- return WY(e.getHours(), t, 2);
+function XY(e, t) {
+ return UY(e.getDate(), t, 2);
}
function GDe(e, t) {
- return WY(e.getHours() % 12 || 12, t, 2);
+ return UY(e.getHours(), t, 2);
}
function KDe(e, t) {
- return WY(1 + CY.count(IY(e), e), t, 3);
-}
-function QY(e, t) {
- return WY(e.getMilliseconds(), t, 3);
+ return UY(e.getHours() % 12 || 12, t, 2);
}
function qDe(e, t) {
- return QY(e, t) + "000";
+ return UY(1 + SY.count(FY(e), e), t, 3);
+}
+function ZY(e, t) {
+ return UY(e.getMilliseconds(), t, 3);
}
function JDe(e, t) {
- return WY(e.getMonth() + 1, t, 2);
+ return ZY(e, t) + "000";
}
function YDe(e, t) {
- return WY(e.getMinutes(), t, 2);
+ return UY(e.getMonth() + 1, t, 2);
}
function XDe(e, t) {
- return WY(e.getSeconds(), t, 2);
+ return UY(e.getMinutes(), t, 2);
}
-function ZDe(e) {
+function ZDe(e, t) {
+ return UY(e.getSeconds(), t, 2);
+}
+function QDe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function QDe(e, t) {
- return WY(DY.count(IY(e) - 1, e), t, 2);
+function $De(e, t) {
+ return UY(EY.count(FY(e) - 1, e), t, 2);
}
-function $Y(e) {
+function QY(e) {
var t = e.getDay();
- return t >= 4 || t === 0 ? kY(e) : kY.ceil(e);
+ return t >= 4 || t === 0 ? OY(e) : OY.ceil(e);
}
-function $De(e, t) {
- return e = $Y(e), WY(kY.count(IY(e), e) + (IY(e).getDay() === 4), t, 2);
+function eOe(e, t) {
+ return e = QY(e), UY(OY.count(FY(e), e) + (FY(e).getDay() === 4), t, 2);
}
-function eOe(e) {
+function tOe(e) {
return e.getDay();
}
-function tOe(e, t) {
- return WY(OY.count(IY(e) - 1, e), t, 2);
-}
function nOe(e, t) {
- return WY(e.getFullYear() % 100, t, 2);
+ return UY(DY.count(FY(e) - 1, e), t, 2);
}
function rOe(e, t) {
- return e = $Y(e), WY(e.getFullYear() % 100, t, 2);
+ return UY(e.getFullYear() % 100, t, 2);
}
function iOe(e, t) {
- return WY(e.getFullYear() % 1e4, t, 4);
+ return e = QY(e), UY(e.getFullYear() % 100, t, 2);
}
function aOe(e, t) {
+ return UY(e.getFullYear() % 1e4, t, 4);
+}
+function oOe(e, t) {
var n = e.getDay();
- return e = n >= 4 || n === 0 ? kY(e) : kY.ceil(e), WY(e.getFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? OY(e) : OY.ceil(e), UY(e.getFullYear() % 1e4, t, 4);
}
-function oOe(e) {
+function sOe(e) {
var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + WY(t / 60 | 0, "0", 2) + WY(t % 60, "0", 2);
-}
-function eX(e, t) {
- return WY(e.getUTCDate(), t, 2);
+ return (t > 0 ? "-" : (t *= -1, "+")) + UY(t / 60 | 0, "0", 2) + UY(t % 60, "0", 2);
}
-function sOe(e, t) {
- return WY(e.getUTCHours(), t, 2);
+function $Y(e, t) {
+ return UY(e.getUTCDate(), t, 2);
}
function cOe(e, t) {
- return WY(e.getUTCHours() % 12 || 12, t, 2);
+ return UY(e.getUTCHours(), t, 2);
}
function lOe(e, t) {
- return WY(1 + wY.count(LY(e), e), t, 3);
-}
-function tX(e, t) {
- return WY(e.getUTCMilliseconds(), t, 3);
+ return UY(e.getUTCHours() % 12 || 12, t, 2);
}
function uOe(e, t) {
- return tX(e, t) + "000";
+ return UY(1 + CY.count(IY(e), e), t, 3);
+}
+function eX(e, t) {
+ return UY(e.getUTCMilliseconds(), t, 3);
}
function dOe(e, t) {
- return WY(e.getUTCMonth() + 1, t, 2);
+ return eX(e, t) + "000";
}
function fOe(e, t) {
- return WY(e.getUTCMinutes(), t, 2);
+ return UY(e.getUTCMonth() + 1, t, 2);
}
function pOe(e, t) {
- return WY(e.getUTCSeconds(), t, 2);
+ return UY(e.getUTCMinutes(), t, 2);
+}
+function mOe(e, t) {
+ return UY(e.getUTCSeconds(), t, 2);
}
-function mOe(e) {
+function hOe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function hOe(e, t) {
- return WY(jY.count(LY(e) - 1, e), t, 2);
+function gOe(e, t) {
+ return UY(AY.count(IY(e) - 1, e), t, 2);
}
-function nX(e) {
+function tX(e) {
var t = e.getUTCDay();
- return t >= 4 || t === 0 ? NY(e) : NY.ceil(e);
+ return t >= 4 || t === 0 ? MY(e) : MY.ceil(e);
}
-function gOe(e, t) {
- return e = nX(e), WY(NY.count(LY(e), e) + (LY(e).getUTCDay() === 4), t, 2);
+function _Oe(e, t) {
+ return e = tX(e), UY(MY.count(IY(e), e) + (IY(e).getUTCDay() === 4), t, 2);
}
-function _Oe(e) {
+function vOe(e) {
return e.getUTCDay();
}
-function vOe(e, t) {
- return WY(MY.count(LY(e) - 1, e), t, 2);
-}
function yOe(e, t) {
- return WY(e.getUTCFullYear() % 100, t, 2);
+ return UY(jY.count(IY(e) - 1, e), t, 2);
}
function bOe(e, t) {
- return e = nX(e), WY(e.getUTCFullYear() % 100, t, 2);
+ return UY(e.getUTCFullYear() % 100, t, 2);
}
function xOe(e, t) {
- return WY(e.getUTCFullYear() % 1e4, t, 4);
+ return e = tX(e), UY(e.getUTCFullYear() % 100, t, 2);
}
function SOe(e, t) {
+ return UY(e.getUTCFullYear() % 1e4, t, 4);
+}
+function COe(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? NY(e) : NY.ceil(e), WY(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? MY(e) : MY.ceil(e), UY(e.getUTCFullYear() % 1e4, t, 4);
}
-function COe() {
+function wOe() {
return "+0000";
}
-function rX() {
+function nX() {
return "%";
}
-function iX(e) {
+function rX(e) {
return +e;
}
-function aX(e) {
+function iX(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var oX, sX, cX;
-wOe({
+var aX, oX, sX;
+TOe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -59545,26 +59545,26 @@ wOe({
"Dec"
]
});
-function wOe(e) {
- return oX = wDe(e), sX = oX.format, oX.parse, cX = oX.utcFormat, oX.utcParse, oX;
+function TOe(e) {
+ return aX = TDe(e), oX = aX.format, aX.parse, sX = aX.utcFormat, aX.utcParse, aX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function TOe(e) {
+function EOe(e) {
return new Date(e);
}
-function EOe(e) {
+function DOe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function lX(e, t, n, r, i, a, o, s, c, l) {
- var u = TJ(), 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 cX(e, t, n, r, i, a, o, s, c, l) {
+ var u = wJ(), 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, EOe)) : f().map(TOe);
+ return arguments.length ? f(Array.from(e, DOe)) : f().map(EOe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -59572,23 +59572,23 @@ function lX(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(UJ(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(HJ(n, e)) : u;
}, u.copy = function() {
- return CJ(u, lX(e, t, n, r, i, a, o, s, c, l));
+ return SJ(u, cX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function DOe() {
- return Mq.apply(lX(SDe, CDe, IY, PY, DY, CY, xY, yY, vY, sX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function OOe() {
+ return jq.apply(cX(CDe, wDe, FY, NY, EY, SY, bY, vY, _Y, oX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function OOe() {
- return Mq.apply(lX(bDe, xDe, LY, FY, jY, wY, SY, bY, vY, cX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function kOe() {
+ return jq.apply(cX(xDe, SDe, IY, PY, AY, CY, xY, yY, _Y, sX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function uX() {
- var e = 0, t = 1, n, r, i, a, o = xJ, s = !1, c;
+function lX() {
+ var e = 0, t = 1, n, r, i, a, o = bJ, 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));
}
@@ -59605,68 +59605,68 @@ function uX() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(_J), l.rangeRound = u(vJ), l.unknown = function(e) {
+ return l.range = u(gJ), l.rangeRound = u(_J), 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 dX(e, t) {
+function uX(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
+function dX() {
+ var e = zJ(lX()(bJ));
+ return e.copy = function() {
+ return uX(e, dX());
+ }, Mq.apply(e, arguments);
+}
function fX() {
- var e = BJ(uX()(xJ));
+ var e = KJ(lX()).domain([1, 10]);
return e.copy = function() {
- return dX(e, fX());
- }, Nq.apply(e, arguments);
+ return uX(e, fX()).base(e.base());
+ }, Mq.apply(e, arguments);
}
function pX() {
- var e = qJ(uX()).domain([1, 10]);
+ var e = XJ(lX());
return e.copy = function() {
- return dX(e, pX()).base(e.base());
- }, Nq.apply(e, arguments);
+ return uX(e, pX()).constant(e.constant());
+ }, Mq.apply(e, arguments);
}
function mX() {
- var e = ZJ(uX());
- return e.copy = function() {
- return dX(e, mX()).constant(e.constant());
- }, Nq.apply(e, arguments);
-}
-function hX() {
- var e = eY(uX());
+ var e = $J(lX());
return e.copy = function() {
- return dX(e, hX()).exponent(e.exponent());
- }, Nq.apply(e, arguments);
+ return uX(e, mX()).exponent(e.exponent());
+ }, Mq.apply(e, arguments);
}
-function kOe() {
- return hX.apply(null, arguments).exponent(.5);
+function AOe() {
+ return mX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function gX() {
- var e = [], t = xJ;
+function hX() {
+ var e = [], t = bJ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((vq(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((_q(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(mq), n;
+ return e.sort(pq), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, 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) => mEe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => hEe(e, r / t));
}, n.copy = function() {
- return gX(t).domain(e);
- }, Nq.apply(n, arguments);
+ return hX(t).domain(e);
+ }, Mq.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function _X() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = xJ, u, d = !1, f;
+function gX() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = bJ, 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));
}
@@ -59684,7 +59684,7 @@ function _X() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = VEe(e, [
+ return arguments.length ? ([n, r, i] = t, l = HEe(e, [
n,
r,
i
@@ -59695,121 +59695,121 @@ function _X() {
];
};
}
- return p.range = m(_J), p.rangeRound = m(vJ), p.unknown = function(e) {
+ return p.range = m(gJ), p.rangeRound = m(_J), 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 vX() {
- var e = BJ(_X()(xJ));
+function _X() {
+ var e = zJ(gX()(bJ));
return e.copy = function() {
- return dX(e, vX());
- }, Nq.apply(e, arguments);
+ return uX(e, _X());
+ }, Mq.apply(e, arguments);
}
-function yX() {
- var e = qJ(_X()).domain([
+function vX() {
+ var e = KJ(gX()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return dX(e, yX()).base(e.base());
- }, Nq.apply(e, arguments);
+ return uX(e, vX()).base(e.base());
+ }, Mq.apply(e, arguments);
}
-function bX() {
- var e = ZJ(_X());
+function yX() {
+ var e = XJ(gX());
return e.copy = function() {
- return dX(e, bX()).constant(e.constant());
- }, Nq.apply(e, arguments);
+ return uX(e, yX()).constant(e.constant());
+ }, Mq.apply(e, arguments);
}
-function xX() {
- var e = eY(_X());
+function bX() {
+ var e = $J(gX());
return e.copy = function() {
- return dX(e, xX()).exponent(e.exponent());
- }, Nq.apply(e, arguments);
+ return uX(e, bX()).exponent(e.exponent());
+ }, Mq.apply(e, arguments);
}
-function AOe() {
- return xX.apply(null, arguments).exponent(.5);
+function jOe() {
+ return bX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var SX = /* @__PURE__ */ ht({
- scaleBand: () => Iq,
- scaleDiverging: () => vX,
- scaleDivergingLog: () => yX,
- scaleDivergingPow: () => xX,
- scaleDivergingSqrt: () => AOe,
- scaleDivergingSymlog: () => bX,
- scaleIdentity: () => HJ,
- scaleImplicit: () => Pq,
- scaleLinear: () => VJ,
- scaleLog: () => JJ,
- scaleOrdinal: () => Fq,
- scalePoint: () => _Ee,
- scalePow: () => tY,
- scaleQuantile: () => iY,
- scaleQuantize: () => aY,
- scaleRadial: () => rY,
- scaleSequential: () => fX,
- scaleSequentialLog: () => pX,
- scaleSequentialPow: () => hX,
- scaleSequentialQuantile: () => gX,
- scaleSequentialSqrt: () => kOe,
- scaleSequentialSymlog: () => mX,
- scaleSqrt: () => uDe,
- scaleSymlog: () => QJ,
- scaleThreshold: () => oY,
- scaleTime: () => DOe,
- scaleUtc: () => OOe,
- tickFormat: () => zJ
+var xX = /* @__PURE__ */ ht({
+ scaleBand: () => Fq,
+ scaleDiverging: () => _X,
+ scaleDivergingLog: () => vX,
+ scaleDivergingPow: () => bX,
+ scaleDivergingSqrt: () => jOe,
+ scaleDivergingSymlog: () => yX,
+ scaleIdentity: () => VJ,
+ scaleImplicit: () => Nq,
+ scaleLinear: () => BJ,
+ scaleLog: () => qJ,
+ scaleOrdinal: () => Pq,
+ scalePoint: () => vEe,
+ scalePow: () => eY,
+ scaleQuantile: () => rY,
+ scaleQuantize: () => iY,
+ scaleRadial: () => nY,
+ scaleSequential: () => dX,
+ scaleSequentialLog: () => fX,
+ scaleSequentialPow: () => mX,
+ scaleSequentialQuantile: () => hX,
+ scaleSequentialSqrt: () => AOe,
+ scaleSequentialSymlog: () => pX,
+ scaleSqrt: () => dDe,
+ scaleSymlog: () => ZJ,
+ scaleThreshold: () => aY,
+ scaleTime: () => OOe,
+ scaleUtc: () => kOe,
+ tickFormat: () => RJ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function jOe(e) {
- if (e in SX) return SX[e]();
- var t = `scale${wz(e)}`;
- if (t in SX) return SX[t]();
+function MOe(e) {
+ if (e in xX) return xX[e]();
+ var t = `scale${Cz(e)}`;
+ if (t in xX) return xX[t]();
}
-function CX(e, t, n) {
+function SX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = jOe(e);
+ var r = MOe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function wX(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? CX(e.scale, n, r) : CX(t, n, r);
+function CX(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? SX(e.scale, n, r) : SX(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function MOe(e) {
- return `scale${wz(e)}`;
-}
function NOe(e) {
- return MOe(e) in SX;
+ return `scale${Cz(e)}`;
}
-var TX = (e, t, n) => {
+function POe(e) {
+ return NOe(e) in xX;
+}
+var wX = (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 NOe(r) ? r : "point";
+ if (typeof r == "string") return POe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function POe(e, t) {
+function FOe(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 EX(e, t) {
+function TX(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 = POe(r, e);
+ var t = FOe(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;
@@ -59819,12 +59819,12 @@ function EX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function FOe(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : EX(e, void 0);
+function IOe(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : TX(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function DX(e, t) {
+function EX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59834,30 +59834,30 @@ function DX(e, t) {
}
return n;
}
-function OX(e) {
+function DX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? DX(Object(n), !0).forEach(function(t) {
- IOe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DX(Object(n)).forEach(function(t) {
+ t % 2 ? EX(Object(n), !0).forEach(function(t) {
+ LOe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IOe(e, t, n) {
- return (t = LOe(t)) in e ? Object.defineProperty(e, t, {
+function LOe(e, t, n) {
+ return (t = ROe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LOe(e) {
- var t = ROe(e, "string");
+function ROe(e) {
+ var t = zOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ROe(e, t) {
+function zOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59867,7 +59867,7 @@ function ROe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var kX = [0, "auto"], AX = {
+var OX = [0, "auto"], kX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -59896,13 +59896,13 @@ var kX = [0, "auto"], AX = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, jX = (e, t) => e.cartesianAxis.xAxis[t], MX = (e, t) => jX(e, t) ?? AX, NX = {
+}, AX = (e, t) => e.cartesianAxis.xAxis[t], jX = (e, t) => AX(e, t) ?? kX, MX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: kX,
+ domain: OX,
hide: !0,
id: 0,
includeHidden: !1,
@@ -59925,7 +59925,7 @@ var kX = [0, "auto"], AX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, PX = (e, t) => e.cartesianAxis.yAxis[t], FX = (e, t) => PX(e, t) ?? NX, zOe = {
+}, NX = (e, t) => e.cartesianAxis.yAxis[t], PX = (e, t) => NX(e, t) ?? MX, BOe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -59938,31 +59938,31 @@ var kX = [0, "auto"], AX = {
scale: "auto",
type: "number",
unit: ""
-}, IX = (e, t) => e.cartesianAxis.zAxis[t] ?? zOe, LX = (e, t, n) => {
+}, FX = (e, t) => e.cartesianAxis.zAxis[t] ?? BOe, IX = (e, t, n) => {
switch (t) {
- case "xAxis": return MX(e, n);
- case "yAxis": return FX(e, n);
- case "zAxis": return IX(e, n);
- case "angleAxis": return JK(e, n);
- case "radiusAxis": return YK(e, n);
+ case "xAxis": return jX(e, n);
+ case "yAxis": return PX(e, n);
+ case "zAxis": return FX(e, n);
+ case "angleAxis": return qK(e, n);
+ case "radiusAxis": return JK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, BOe = (e, t, n) => {
+}, VOe = (e, t, n) => {
switch (t) {
- case "xAxis": return MX(e, n);
- case "yAxis": return FX(e, n);
+ case "xAxis": return jX(e, n);
+ case "yAxis": return PX(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, RX = (e, t, n) => {
+}, LX = (e, t, n) => {
switch (t) {
- case "xAxis": return MX(e, n);
- case "yAxis": return FX(e, n);
- case "angleAxis": return JK(e, n);
- case "radiusAxis": return YK(e, n);
+ case "xAxis": return jX(e, n);
+ case "yAxis": return PX(e, n);
+ case "angleAxis": return qK(e, n);
+ case "radiusAxis": return JK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, zX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function BX(e, t) {
+}, RX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function zX(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -59974,58 +59974,58 @@ function BX(e, t) {
}
};
}
-var VX = (e) => e.graphicalItems.cartesianItems, VOe = $([rq, iq], BX), HX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), UX = $([
- VX,
- LX,
- VOe
-], HX, { memoizeOptions: { resultEqualityCheck: lq } }), WX = $([UX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(sq)), GX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), HOe = $([UX], GX), KX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), UOe = $([UX], KX, { memoizeOptions: { resultEqualityCheck: lq } }), qX = (e, t) => {
+var BX = (e) => e.graphicalItems.cartesianItems, HOe = $([nq, rq], zX), VX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), HX = $([
+ BX,
+ IX,
+ HOe
+], VX, { memoizeOptions: { resultEqualityCheck: cq } }), UX = $([HX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(oq)), WX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), UOe = $([HX], WX), GX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), WOe = $([HX], GX, { memoizeOptions: { resultEqualityCheck: cq } }), KX = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, JX = $([UOe, hK], qX), YX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: hU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: hU(e, t.dataKey) })), XX = $([
- JX,
- LX,
- UX
-], YX);
-function ZX(e) {
- if (_z(e) || e instanceof Date) {
+}, qX = $([WOe, mK], KX), JX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: mU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: mU(e, t.dataKey) })), YX = $([
+ qX,
+ IX,
+ HX
+], JX);
+function XX(e) {
+ if (gz(e) || e instanceof Date) {
var t = Number(e);
- if (dU(t)) return t;
+ if (uU(t)) return t;
}
}
-function QX(e) {
+function ZX(e) {
if (Array.isArray(e)) {
- var t = [ZX(e[0]), ZX(e[1])];
- return _K(t) ? t : void 0;
+ var t = [XX(e[0]), XX(e[1])];
+ return gK(t) ? t : void 0;
}
- var n = ZX(e);
+ var n = XX(e);
if (n != null) return [n, n];
}
-function $X(e) {
- return e.map(ZX).filter(Tz);
+function QX(e) {
+ return e.map(XX).filter(wz);
}
-function WOe(e, t) {
- var n = ZX(e), r = ZX(t);
+function GOe(e, t) {
+ var n = XX(e), r = XX(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var GOe = $([XX], (e) => e?.map((e) => e.value).sort(WOe));
-function eZ(e, t) {
+var KOe = $([YX], (e) => e?.map((e) => e.value).sort(GOe));
+function $X(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function KOe(e, t, n) {
- return !n || typeof t != "number" || hz(t) || !n.length ? [] : $X(n.flatMap((n) => {
- var r = hU(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!dU(i) || !dU(a))) return [t - i, t + a];
+function qOe(e, t, n) {
+ return !n || typeof t != "number" || mz(t) || !n.length ? [] : QX(n.flatMap((n) => {
+ var r = mU(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!uU(i) || !uU(a))) return [t - i, t + a];
}));
}
-var tZ = (e) => RX(e, uq(e), dq(e)), nZ = $([tZ], (e) => e?.dataKey), qOe = $([
- WX,
- hK,
- tZ
-], oq), rZ = (e, t, n, r) => {
+var eZ = (e) => LX(e, lq(e), uq(e)), tZ = $([eZ], (e) => e?.dataKey), JOe = $([
+ UX,
+ mK,
+ eZ
+], aq), nZ = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -60034,168 +60034,168 @@ var tZ = (e) => RX(e, uq(e), dq(e)), nZ = $([tZ], (e) => e?.dataKey), qOe = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: qSe(e, o.map(aq), n),
+ stackedData: JSe(e, o.map(iq), n),
graphicalItems: o
}];
}));
-}, iZ = $([
- qOe,
- WX,
- NK,
- PK
-], rZ), aZ = (e, t, n, r) => {
+}, rZ = $([
+ JOe,
+ UX,
+ MK,
+ NK
+], nZ), iZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = XSe(e, i, a);
+ var o = ZSe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, JOe = $([LX], (e) => e.allowDataOverflow), oZ = (e) => {
- if (e == null || !("domain" in e)) return kX;
+}, YOe = $([IX], (e) => e.allowDataOverflow), aZ = (e) => {
+ if (e == null || !("domain" in e)) return OX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = $X(e.ticks);
+ var t = QX(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? kX;
-}, sZ = $([LX], oZ), cZ = $([sZ, JOe], yK), YOe = $([
- iZ,
- pK,
- rq,
- cZ
-], aZ, { memoizeOptions: { resultEqualityCheck: cq } }), lZ = (e) => e.errorBars, XOe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => eZ(n, e)), uZ = function() {
+ return e?.domain ?? OX;
+}, oZ = $([IX], aZ), sZ = $([oZ, YOe], vK), XOe = $([
+ rZ,
+ fK,
+ nq,
+ sZ
+], iZ, { memoizeOptions: { resultEqualityCheck: sq } }), cZ = (e) => e.errorBars, ZOe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => $X(n, e)), lZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, dZ = (e, t, n, r, i) => {
+}, uZ = (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) => eZ(i, e)), c = hU(e, t.dataKey ?? n.dataKey), l = KOe(e, c, s);
+ var s = r[n.id]?.filter((e) => $X(i, e)), c = mU(e, t.dataKey ?? n.dataKey), l = qOe(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 = QX(c);
+ var f = ZX(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 = QX(hU(e, t.dataKey));
+ var n = ZX(mU(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]));
- }), dU(a) && dU(o)) return [a, o];
-}, ZOe = $([
- JX,
- LX,
- HOe,
- lZ,
- rq
-], dZ, { memoizeOptions: { resultEqualityCheck: cq } });
-function QOe(e) {
+ }), uU(a) && uU(o)) return [a, o];
+}, QOe = $([
+ qX,
+ IX,
+ UOe,
+ cZ,
+ nq
+], uZ, { memoizeOptions: { resultEqualityCheck: sq } });
+function $Oe(e) {
var { value: t } = e;
- if (_z(t) || t instanceof Date) return t;
-}
-var $Oe = (e, t, n) => {
- var r = e.map(QOe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && bz(r)) ? fK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, fZ = (e) => e.referenceElements.dots, pZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), eke = $([
- fZ,
- rq,
- iq
-], pZ), mZ = (e) => e.referenceElements.areas, tke = $([
- mZ,
- rq,
- iq
-], pZ), hZ = (e) => e.referenceElements.lines, nke = $([
+ if (gz(t) || t instanceof Date) return t;
+}
+var eke = (e, t, n) => {
+ var r = e.map($Oe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && yz(r)) ? dK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, dZ = (e) => e.referenceElements.dots, fZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), tke = $([
+ dZ,
+ nq,
+ rq
+], fZ), pZ = (e) => e.referenceElements.areas, mZ = $([
+ pZ,
+ nq,
+ rq
+], fZ), hZ = (e) => e.referenceElements.lines, nke = $([
hZ,
- rq,
- iq
-], pZ), gZ = (e, t) => {
+ nq,
+ rq
+], fZ), gZ = (e, t) => {
if (e != null) {
- var n = $X(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = QX(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, rke = $(eke, rq, gZ), _Z = (e, t) => {
+}, rke = $(tke, nq, gZ), _Z = (e, t) => {
if (e != null) {
- var n = $X(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = QX(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)];
}
-}, ike = $([tke, rq], _Z);
+}, ike = $([mZ, nq], _Z);
function ake(e) {
- if (e.x != null) return $X([e.x]);
+ if (e.x != null) return QX([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : $X(t);
+ return t == null || t.length === 0 ? [] : QX(t);
}
function oke(e) {
- if (e.y != null) return $X([e.y]);
+ if (e.y != null) return QX([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : $X(t);
+ return t == null || t.length === 0 ? [] : QX(t);
}
var vZ = (e, t) => {
if (e != null) {
var n = e.flatMap((e) => t === "xAxis" ? ake(e) : oke(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, ske = $(rke, $([nke, rq], vZ), ike, (e, t, n) => uZ(e, n, t)), yZ = (e, t, n, r, i, a, o, s) => n ?? eEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? uZ(r, a, i) : uZ(a, i), e.allowDataOverflow), cke = $([
- LX,
+}, ske = $(rke, $([nke, nq], vZ), ike, (e, t, n) => lZ(e, n, t)), yZ = (e, t, n, r, i, a, o, s) => n ?? tEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? lZ(r, a, i) : lZ(a, i), e.allowDataOverflow), cke = $([
+ IX,
+ oZ,
sZ,
- cZ,
- YOe,
- ZOe,
+ XOe,
+ QOe,
ske,
- nW,
- rq
-], yZ, { memoizeOptions: { resultEqualityCheck: cq } }), lke = [0, 1], bZ = (e, t, n, r, i, a, o) => {
+ tW,
+ nq
+], yZ, { memoizeOptions: { resultEqualityCheck: sq } }), lke = [0, 1], bZ = (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 = gU(t, a);
- return l && s == null ? fK(0, n?.length ?? 0) : c === "category" ? $Oe(r, e, l) : i === "expand" ? lke : o;
+ var { dataKey: s, type: c } = e, l = hU(t, a);
+ return l && s == null ? dK(0, n?.length ?? 0) : c === "category" ? eke(r, e, l) : i === "expand" ? lke : o;
}
}, xZ = $([
- LX,
- nW,
- JX,
- XX,
- NK,
- rq,
+ IX,
+ tW,
+ qX,
+ YX,
+ MK,
+ nq,
cke
], bZ), SZ = $([
- LX,
- zX,
- FK
-], TX), CZ = (e, t, n) => {
+ IX,
+ RX,
+ PK
+], wX), CZ = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = oZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && _K(e)) {
- if (a) return DK(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return OK(e, t.tickCount, t.allowDecimals, r);
+ var i = aZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && gK(e)) {
+ if (a) return EK(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return DK(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && _K(e)) return DK(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && _K(e)) return OK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && gK(e)) return EK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && gK(e)) return DK(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
}, wZ = $([
xZ,
- RX,
+ LX,
SZ
], CZ), TZ = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && _K(t) && Array.isArray(n) && n.length > 0) {
+ if (r !== "angleAxis" && e?.type === "number" && gK(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;
}, uke = $([
- LX,
+ IX,
xZ,
wZ,
- rq
-], TZ), EZ = $($(XX, LX, (e, t) => {
+ nq
+], TZ), EZ = $($(YX, IX, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from($X(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(QX(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;
@@ -60208,22 +60208,22 @@ var vZ = (e, t) => {
}
return n / o;
}
-}), nW, jK, IU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!dU(e)) return 0;
+}), tW, AK, FU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!uU(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = yz(n, e * a), s = e * a / 2;
+ var o = vz(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
}), dke = (e, t, n) => {
- var r = MX(e, t);
+ var r = jX(e, t);
return r == null || typeof r.padding != "string" ? 0 : EZ(e, "xAxis", t, n, r.padding);
}, fke = (e, t, n) => {
- var r = FX(e, t);
+ var r = PX(e, t);
return r == null || typeof r.padding != "string" ? 0 : EZ(e, "yAxis", t, n, r.padding);
-}, pke = $(MX, dke, (e, t) => {
+}, pke = $(jX, dke, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -60236,7 +60236,7 @@ var vZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), mke = $(FX, fke, (e, t) => {
+}), mke = $(PX, fke, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -60250,20 +60250,20 @@ var vZ = (e, t) => {
bottom: (n.bottom ?? 0) + t
};
}), hke = $([
- IU,
+ FU,
pke,
- BU,
zU,
+ RU,
(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];
}), gke = $([
- IU,
- nW,
+ FU,
+ tW,
mke,
- BU,
zU,
+ RU,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
@@ -60272,42 +60272,42 @@ var vZ = (e, t) => {
switch (t) {
case "xAxis": return hke(e, n, r);
case "yAxis": return gke(e, n, r);
- case "zAxis": return IX(e, n)?.range;
- case "angleAxis": return eq(e);
- case "radiusAxis": return tq(e, n);
+ case "zAxis": return FX(e, n)?.range;
+ case "angleAxis": return $K(e);
+ case "radiusAxis": return eq(e, n);
default: return;
}
-}, OZ = $([LX, DZ], HK), kZ = $([
- LX,
+}, OZ = $([IX, DZ], VK), kZ = $([
+ IX,
SZ,
- $([SZ, uke], pq),
+ $([SZ, uke], fq),
OZ
-], wX), AZ = (e, t, n, r) => {
+], CX), AZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (gU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (hU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, jZ = $([
- nW,
- XX,
- RX,
- rq
-], AZ), MZ = $([kZ], fq);
-$([kZ], FOe), $([kZ, GOe], EX), $([
- UX,
- lZ,
- rq
-], XOe);
+ tW,
+ YX,
+ LX,
+ nq
+], AZ), MZ = $([kZ], dq);
+$([kZ], IOe), $([kZ, KOe], TX), $([
+ HX,
+ cZ,
+ nq
+], ZOe);
function NZ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(NZ)), vke = $(NU, PZ, FZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(NZ)), IZ = (e, t) => ({
+var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(jU, PZ, FZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(NZ)), vke = $(MU, PZ, FZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(NZ)), IZ = (e, t) => ({
width: e.width,
height: t.height
}), yke = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), LZ = $(IU, MX, IZ), bke = (e, t, n) => {
+}), LZ = $(FU, jX, IZ), bke = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
@@ -60319,7 +60319,7 @@ var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.fi
case "right": return n - e.right;
default: return 0;
}
-}, Ske = $(AU, IU, _ke, PZ, FZ, (e, t, n, r, i) => {
+}, Ske = $(kU, FU, _ke, PZ, FZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = IZ(t, n);
@@ -60327,7 +60327,7 @@ var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.fi
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), Cke = $(kU, IU, vke, PZ, FZ, (e, t, n, r, i) => {
+}), Cke = $(OU, FU, vke, PZ, FZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = yke(t, n);
@@ -60336,10 +60336,10 @@ var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.fi
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
}), wke = $([
- IU,
- MX,
+ FU,
+ jX,
(e, t) => {
- var n = MX(e, t);
+ var n = jX(e, t);
if (n != null) return Ske(e, n.orientation, n.mirror);
},
(e, t) => t
@@ -60355,10 +60355,10 @@ var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.fi
};
}
}), Tke = $([
- IU,
- FX,
+ FU,
+ PX,
(e, t) => {
- var n = FX(e, t);
+ var n = PX(e, t);
if (n != null) return Cke(e, n.orientation, n.mirror);
},
(e, t) => t
@@ -60373,7 +60373,7 @@ var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.fi
y: e.top
};
}
-}), RZ = $(IU, FX, (e, t) => ({
+}), RZ = $(FU, PX, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), zZ = (e, t, n) => {
@@ -60384,27 +60384,27 @@ var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.fi
}
}, BZ = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = gU(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && bz(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = hU(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && yz(c)) return c;
}
}, VZ = $([
- nW,
- XX,
- LX,
- rq
+ tW,
+ YX,
+ IX,
+ nq
], BZ), HZ = $([
- nW,
- BOe,
+ tW,
+ VOe,
SZ,
MZ,
VZ,
jZ,
DZ,
wZ,
- rq
+ nq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = gU(e, c);
+ var l = hU(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -60428,105 +60428,105 @@ var PZ = (e, t) => t, FZ = (e, t, n) => n, _ke = $(MU, PZ, FZ, (e, t, n) => e.fi
}
}), UZ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = gU(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 ? mz(a[0] - a[1]) * 2 * m : m;
+ var l = hU(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 ? pz(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);
- return dU(i) ? {
+ return uU(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(Tz) : l && s ? s.map((e, t) => {
+ }).filter(wz) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(Tz) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(wz) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(Tz) : r.domain().map((e, t) => {
+ }).filter(wz) : r.domain().map((e, t) => {
var n = r.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(Tz);
+ }).filter(wz);
}
}, WZ = $([
- nW,
- RX,
+ tW,
+ LX,
SZ,
MZ,
wZ,
DZ,
VZ,
jZ,
- rq
+ nq
], UZ), GZ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = gU(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? mz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = hU(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? pz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return dU(r) ? {
+ return uU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(Tz) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(wz) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return dU(r) ? {
+ return uU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(Tz) : n.domain().map((e, t) => {
+ }).filter(wz) : n.domain().map((e, t) => {
var r = n.map(e);
- return dU(r) ? {
+ return uU(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(Tz);
+ }).filter(wz);
}
}, KZ = $([
- nW,
- RX,
+ tW,
+ LX,
MZ,
DZ,
VZ,
jZ,
- rq
-], GZ), qZ = $(LX, MZ, (e, t) => {
- if (e != null && t != null) return OX(OX({}, e), {}, { scale: t });
+ nq
+], GZ), qZ = $(IX, MZ, (e, t) => {
+ if (e != null && t != null) return DX(DX({}, e), {}, { scale: t });
});
-$((e, t, n) => IX(e, n), $([$([
- LX,
+$((e, t, n) => FX(e, n), $([$([
+ IX,
SZ,
xZ,
OZ
-], wX)], fq), (e, t) => {
- if (e != null && t != null) return OX(OX({}, e), {}, { scale: t });
+], CX)], dq), (e, t) => {
+ if (e != null && t != null) return DX(DX({}, e), {}, { scale: t });
});
var Eke = $([
- nW,
- MU,
- NU
+ tW,
+ jU,
+ MU
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -60564,14 +60564,14 @@ function Dke(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var QZ = (e, t) => {
var n, r = Number(t);
- if (!(hz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+ if (!(mz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
}, Oke = (e) => e.tooltip.settings, $Z = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, eQ = IH({
+}, eQ = FH({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -60604,23 +60604,23 @@ var QZ = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(qW(t.payload));
+ e.tooltipItemPayloads.push(KW(t.payload));
},
- prepare: MH()
+ prepare: jH()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CH(e).tooltipItemPayloads.indexOf(qW(n));
- i > -1 && (e.tooltipItemPayloads[i] = qW(r));
+ var { prev: n, next: r } = t.payload, i = SH(e).tooltipItemPayloads.indexOf(KW(n));
+ i > -1 && (e.tooltipItemPayloads[i] = KW(r));
},
- prepare: MH()
+ prepare: jH()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = CH(e).tooltipItemPayloads.indexOf(qW(t.payload));
+ var n = SH(e).tooltipItemPayloads.indexOf(KW(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: MH()
+ prepare: jH()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -60738,14 +60738,14 @@ function Uke(e, t) {
}
function Wke(e, t, n) {
if (n == null || t == null) return !0;
- var r = hU(e, t);
- return r == null || !_K(n) || Uke(r, n);
+ var r = mU(e, t);
+ return r == null || !gK(n) || Uke(r, n);
}
var lQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!dU(a)) return i;
+ if (!uU(a)) return i;
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
@@ -60852,7 +60852,7 @@ var _Q = (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 = Qke(d, s), m = Array.isArray(p) ? uU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? Sz(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = Qke(d, s), m = Array.isArray(p) ? lU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? xz(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
var n = Zke(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = hQ(hQ({}, f), {}, {
name: r,
@@ -60860,71 +60860,71 @@ var _Q = (e, t, n, r, i, a, o) => {
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(DU({
+ e.push(EU({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: hU(a, i),
+ value: mU(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(DU({
+ }) : e.push(EU({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: hU(_, h),
- name: hU(_, g) ?? f?.name
+ value: mU(_, h),
+ name: mU(_, g) ?? f?.name
})), e;
}, []);
}
}, vQ = $([
- tZ,
- zX,
- FK
-], TX), yQ = $([
+ eZ,
+ RX,
+ PK
+], wX), yQ = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- tZ,
- $([uq, dq], BX)
-], HX, { memoizeOptions: { resultEqualityCheck: lq } }), $ke = $([yQ], (e) => e.filter(sq)), bQ = $([$([yQ], KX, { memoizeOptions: { resultEqualityCheck: lq } }), pK], qX), eAe = $([
+ eZ,
+ $([lq, uq], zX)
+], VX, { memoizeOptions: { resultEqualityCheck: cq } }), $ke = $([yQ], (e) => e.filter(oq)), bQ = $([$([yQ], GX, { memoizeOptions: { resultEqualityCheck: cq } }), fK], KX), eAe = $([
$ke,
- pK,
- tZ
-], oq), xQ = $([
+ fK,
+ eZ
+], aq), xQ = $([
bQ,
- tZ,
+ eZ,
yQ
-], YX), SQ = $([tZ], oZ), CQ = $([SQ, $([tZ], (e) => e.allowDataOverflow)], yK), tAe = $([
+], JX), SQ = $([eZ], aZ), CQ = $([SQ, $([eZ], (e) => e.allowDataOverflow)], vK), tAe = $([
$([
eAe,
- $([yQ], (e) => e.filter(sq)),
- NK,
- PK
- ], rZ),
- pK,
- uq,
+ $([yQ], (e) => e.filter(oq)),
+ MK,
+ NK
+ ], nZ),
+ fK,
+ lq,
CQ
-], aZ), nAe = $([
+], iZ), nAe = $([
bQ,
- tZ,
- $([yQ], GX),
- lZ,
+ eZ,
+ $([yQ], WX),
+ cZ,
+ lq
+], uZ, { memoizeOptions: { resultEqualityCheck: sq } }), rAe = $([$([
+ dZ,
+ lq,
uq
-], dZ, { memoizeOptions: { resultEqualityCheck: cq } }), rAe = $([$([
- fZ,
- uq,
- dq
-], pZ), uq], gZ), iAe = $([$([
- mZ,
- uq,
- dq
-], pZ), uq], _Z), wQ = $([
- tZ,
- nW,
+], fZ), lq], gZ), iAe = $([$([
+ pZ,
+ lq,
+ uq
+], fZ), lq], _Z), wQ = $([
+ eZ,
+ tW,
bQ,
xQ,
- NK,
- uq,
+ MK,
+ lq,
$([
- tZ,
+ eZ,
SQ,
CQ,
tAe,
@@ -60933,69 +60933,69 @@ var _Q = (e, t, n, r, i, a, o) => {
rAe,
$([$([
hZ,
- uq,
- dq
- ], pZ), uq], vZ),
+ lq,
+ uq
+ ], fZ), lq], vZ),
iAe
- ], uZ),
- nW,
- uq
+ ], lZ),
+ tW,
+ lq
], yZ)
], bZ), aAe = $([
- tZ,
+ eZ,
wQ,
$([
wQ,
- tZ,
+ eZ,
vQ
], CZ),
- uq
-], TZ), TQ = (e) => DZ(e, uq(e), dq(e), !1), EQ = $([tZ, TQ], HK), DQ = $([$([
- tZ,
+ lq
+], TZ), TQ = (e) => DZ(e, lq(e), uq(e), !1), EQ = $([eZ, TQ], VK), DQ = $([$([
+ eZ,
vQ,
aAe,
EQ
-], wX)], fq), OQ = $([
- nW,
- tZ,
+], CX)], dq), OQ = $([
+ tW,
+ eZ,
vQ,
DQ,
TQ,
$([
- nW,
+ tW,
xQ,
- tZ,
- uq
+ eZ,
+ lq
], BZ),
$([
- nW,
+ tW,
xQ,
- tZ,
- uq
+ eZ,
+ lq
], AZ),
- uq
+ lq
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = gU(e, s);
+ var { type: c } = t, l = hU(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 ? mz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? pz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(Tz) : r.domain().map((e, t) => {
+ }).filter(wz) : r.domain().map((e, t) => {
var n = r.map(e);
- return dU(n) ? {
+ return uU(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(Tz);
+ }).filter(wz);
}
}
}), kQ = $([
@@ -61010,7 +61010,7 @@ var _Q = (e, t, n, r, i, a, o) => {
], cQ), NQ = $([
MQ,
bQ,
- nZ,
+ tZ,
wQ
], lQ), PQ = $([OQ, NQ], QZ), FQ = $([MQ], (e) => {
if (e) return e.dataKey;
@@ -61022,18 +61022,18 @@ var _Q = (e, t, n, r, i, a, o) => {
AQ,
jQ
], dQ), sAe = $([MQ, $([
+ OU,
kU,
- AU,
- nW,
- IU,
+ tW,
+ FU,
OQ,
jQ,
IQ
], uQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), cAe = $([MQ], (e) => e?.active ?? !1), lAe = $([$([
IQ,
NQ,
- pK,
- nZ,
+ fK,
+ tZ,
PQ,
fQ,
kQ
@@ -61088,9 +61088,9 @@ function fAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var pAe = () => Q(tZ), mAe = () => {
+var pAe = () => Q(eZ), mAe = () => {
var e = pAe(), t = Q(OQ), n = Q(DQ);
- return EU(!e || !n ? void 0 : RQ(RQ({}, e), {}, { scale: n }), t);
+ return TU(!e || !n ? void 0 : RQ(RQ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -61158,13 +61158,13 @@ var vAe = (e, t, n, r) => {
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return BQ(BQ(BQ({}, r), iK(r.cx, r.cy, o, a)), {}, {
+ return BQ(BQ(BQ({}, r), rK(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return BQ(BQ(BQ({}, r), iK(r.cx, r.cy, s, c)), {}, {
+ return BQ(BQ(BQ({}, r), rK(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -61193,9 +61193,9 @@ var VQ = (e, t, n, r, i) => {
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 (mz(c - s) !== mz(l - c)) {
+ if (pz(c - s) !== pz(l - c)) {
var d = [];
- if (mz(l - c) === mz(i[1] - i[0])) {
+ if (pz(l - c) === pz(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);
@@ -61220,7 +61220,7 @@ var VQ = (e, t, n, r, i) => {
}
}
return -1;
-}, HQ = () => Q(FK), UQ = (e, t) => t, WQ = (e, t, n) => n, GQ = (e, t, n, r) => r, xAe = $(OQ, (e) => XB(e, (e) => e.coordinate)), KQ = $([
+}, HQ = () => Q(PK), UQ = (e, t) => t, WQ = (e, t, n) => n, GQ = (e, t, n, r) => r, xAe = $(OQ, (e) => YB(e, (e) => e.coordinate)), KQ = $([
pQ,
UQ,
WQ,
@@ -61228,7 +61228,7 @@ var VQ = (e, t, n, r, i) => {
], cQ), qQ = $([
KQ,
bQ,
- nZ,
+ tZ,
wQ
], lQ), SAe = (e, t, n) => {
if (t != null) {
@@ -61241,18 +61241,18 @@ var VQ = (e, t, n, r, i) => {
WQ,
GQ
], dQ), YQ = $([
+ OU,
kU,
- AU,
- nW,
- IU,
+ tW,
+ FU,
OQ,
GQ,
JQ
], uQ), CAe = $([KQ, YQ], (e, t) => e.coordinate ?? t), XQ = $([OQ, qQ], QZ), wAe = $([
JQ,
qQ,
- pK,
- nZ,
+ fK,
+ tZ,
XQ,
fQ,
UQ
@@ -61261,7 +61261,7 @@ var VQ = (e, t, n, r, i) => {
activeIndex: t
})), EAe = (e, t, n, r, i, a, o) => {
if (!(!e || !n || !r || !i) && bAe(e, o)) {
- var s = VQ(ZSe(e, t), a, i, n, r), c = vAe(t, i, s, e);
+ var s = VQ(QSe(e, t), a, i, n, r), c = vAe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
@@ -61269,9 +61269,9 @@ var VQ = (e, t, n, r, i) => {
}
}, DAe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = VTe(e, n);
+ var s = HTe(e, n);
if (s) {
- var c = VQ(QSe(s, t), o, a, r, i), l = yAe(t, a, c, s);
+ var c = VQ($Se(s, t), o, a, r, i), l = yAe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
@@ -61286,9 +61286,9 @@ var VQ = (e, t, n, r, i) => {
if (r != null) return n ? r.panoramaElement : r.element;
}
}), AAe = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(zK));
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(RK));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: cEe } });
+}, { memoizeOptions: { resultEqualityCheck: lEe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function ZQ(e, t) {
@@ -61334,15 +61334,15 @@ function NAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var PAe = { zIndexMap: Object.values(zK).reduce((e, t) => QQ(QQ({}, e), {}, { [t]: {
+var PAe = { zIndexMap: Object.values(RK).reduce((e, t) => QQ(QQ({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, FAe = new Set(Object.values(zK));
+} }), {}) }, FAe = new Set(Object.values(RK));
function IAe(e) {
return FAe.has(e);
}
-var $Q = IH({
+var $Q = FH({
name: "zIndex",
initialState: PAe,
reducers: {
@@ -61355,42 +61355,42 @@ var $Q = IH({
panoramaElement: void 0
};
},
- prepare: MH()
+ prepare: jH()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !IAe(n) && delete e.zIndexMap[n]);
},
- prepare: MH()
+ prepare: jH()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = qW(r) : e.zIndexMap[n].element = qW(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = KW(r) : e.zIndexMap[n].element = KW(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : qW(r),
- panoramaElement: i ? qW(r) : void 0
+ element: i ? void 0 : KW(r),
+ panoramaElement: i ? KW(r) : void 0
};
},
- prepare: MH()
+ prepare: jH()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: MH()
+ prepare: jH()
}
}
}), { registerZIndexPortal: LAe, unregisterZIndexPortal: RAe, registerZIndexPortalElement: zAe, unregisterZIndexPortalElement: BAe } = $Q.actions, VAe = $Q.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function e$(e) {
- var { zIndex: t, children: n } = e, r = DCe() && t !== void 0 && t !== 0, i = RU(), a = wB();
+ var { zIndex: t, children: n } = e, r = OCe() && t !== void 0 && t !== 0, i = LU(), a = CB();
(0, B.useLayoutEffect)(() => r ? (a(LAe({ zIndex: t })), () => {
a(RAe({ zIndex: t }));
- }) : Ez, [
+ }) : Tz, [
a,
t,
r
@@ -61460,10 +61460,10 @@ function KAe(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 = Gwe, h = zK.cursorLine;
- else if (l === "BarChart") p = Kwe(o, u, i, a), m = $G, h = zK.cursorRectangle;
- else if (o === "radial" && Mz(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = aK(u);
+ if (l === "ScatterChart") p = u, m = Kwe, h = RK.cursorLine;
+ else if (l === "BarChart") p = qwe(o, u, i, a), m = QG, h = RK.cursorRectangle;
+ else if (o === "radial" && jz(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = iK(u);
p = {
cx: g,
cy: _,
@@ -61471,12 +61471,12 @@ function KAe(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = uK, h = zK.cursorLine;
- } else p = { points: QTe(o, u, i) }, m = EG, h = zK.cursorLine;
+ }, m = lK, h = RK.cursorLine;
+ } else p = { points: $Te(o, u, i) }, m = TG, h = RK.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = r$(r$(r$(r$({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), sR(s)), {}, {
+ }, i), p), oR(s)), {}, {
payload: d,
payloadIndex: f,
className: qr("recharts-tooltip-cursor", x)
@@ -61488,7 +61488,7 @@ function KAe(e) {
}));
}
function qAe(e) {
- var t = mAe(), n = $U(), r = rW(), i = HQ();
+ var t = mAe(), n = QU(), r = nW(), i = HQ();
return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(KAe, t$({}, e, {
offset: n,
layout: r,
@@ -61588,9 +61588,9 @@ var i$ = /*#__PURE__*/ (0, B.createContext)(null), JAe = () => (0, B.useContext)
})))(), 1)).default, a$ = new YAe(), o$ = "recharts.syncEvent.tooltip", s$ = "recharts.syncEvent.brush", c$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!hz(n)) return e[n];
+ if (!mz(n)) return e[n];
}
-}, l$ = IH({
+}, l$ = FH({
name: "options",
initialState: {
chartName: "",
@@ -61607,7 +61607,7 @@ var i$ = /*#__PURE__*/ (0, B.createContext)(null), JAe = () => (0, B.useContext)
function QAe(e) {
return e.tooltip.syncInteraction;
}
-var u$ = IH({
+var u$ = FH({
name: "chartData",
initialState: {
chartData: void 0,
@@ -61617,7 +61617,7 @@ var u$ = IH({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = qW(t.payload), t.payload == null) {
+ if (e.chartData = KW(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -61694,9 +61694,9 @@ function sje(e, t) {
return n;
}
function cje() {
- var e = Q(IK), t = Q(RK), n = wB(), r = Q(LK), i = Q(OQ), a = rW(), o = QU(), s = Q((e) => e.rootProps.className);
+ var e = Q(FK), t = Q(LK), n = CB(), r = Q(IK), i = Q(OQ), a = nW(), o = ZU(), s = Q((e) => e.rootProps.className);
(0, B.useEffect)(() => {
- if (e == null) return Ez;
+ if (e == null) return Tz;
var s = (s, c, l) => {
if (t !== l && e === s) {
if (r === "index") {
@@ -61764,9 +61764,9 @@ function cje() {
]);
}
function lje() {
- var e = Q(IK), t = Q(RK), n = wB();
+ var e = Q(FK), t = Q(LK), n = CB();
(0, B.useEffect)(() => {
- if (e == null) return Ez;
+ if (e == null) return Tz;
var r = (r, i, a) => {
t !== a && e === r && n($Ae(i));
};
@@ -61780,13 +61780,13 @@ function lje() {
]);
}
function uje() {
- var e = wB();
+ var e = CB();
(0, B.useEffect)(() => {
e(ZAe());
}, [e]), cje(), lje();
}
function dje(e, t, n, r, i, a) {
- var o = Q((n) => SAe(n, e, t)), s = Q(oAe), c = Q(RK), l = Q(IK), u = Q(LK), d = Q(QAe)?.active, f = QU();
+ var o = Q((n) => SAe(n, e, t)), s = Q(oAe), c = Q(LK), l = Q(FK), u = Q(IK), d = Q(QAe)?.active, f = ZU();
(0, B.useEffect)(() => {
if (!d && l != null && c != null) {
var e = iQ({
@@ -61863,7 +61863,7 @@ function hje(e) {
return e.dataKey;
}
function gje(e, t) {
- return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(xwe, t);
+ return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(Swe, t);
}
var g$ = [], _je = {
allowEscapeViewBox: {
@@ -61892,7 +61892,7 @@ var g$ = [], _je = {
wrapperStyle: {}
};
function vje(e) {
- var t = Iz(e, _je), { 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 = wB(), S = typeof v == "number" ? String(v) : v;
+ var t = Fz(e, _je), { 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 = CB(), S = typeof v == "number" ? String(v) : v;
(0, B.useEffect)(() => {
x(Mke({
shared: g,
@@ -61909,12 +61909,12 @@ function vje(e) {
n,
S
]);
- var C = QU(), w = gG(), T = Dke(g), { activeIndex: E, isActive: D } = Q((e) => TAe(e, T, _, S)) ?? {}, O = Q((e) => wAe(e, T, _, S)), k = Q((e) => XQ(e, T, _, S)), A = Q((e) => CAe(e, T, _, S)), j = O, M = JAe(), N = n ?? D ?? !1, [ee, te] = nV([j, N]), P = T === "axis" ? k : void 0;
+ var C = ZU(), w = hG(), T = Dke(g), { activeIndex: E, isActive: D } = Q((e) => TAe(e, T, _, S)) ?? {}, O = Q((e) => wAe(e, T, _, S)), k = Q((e) => XQ(e, T, _, S)), A = Q((e) => CAe(e, T, _, S)), j = O, M = JAe(), N = n ?? D ?? !1, [ee, te] = tV([j, N]), P = T === "axis" ? k : void 0;
dje(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
var ne = j ?? g$;
- N || (ne = g$), s && ne.length && (ne = vB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, hje));
+ N || (ne = g$), s && ne.length && (ne = _B(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, hje));
var I = ne.length > 0, re = h$(h$({}, t), {}, {
payload: ne,
label: P,
@@ -61922,7 +61922,7 @@ function vje(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), L = /*#__PURE__*/ B.createElement(jwe, {
+ }), L = /*#__PURE__*/ B.createElement(Mwe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -62076,7 +62076,7 @@ var S$ = (e, t) => {
}
}, C$ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || fG.isSsr) return {
+ if (e == null || dG.isSsr) return {
width: 0,
height: 0
};
@@ -62138,7 +62138,7 @@ var O$ = class e {
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, hz(e) && (this.unit = ""), t !== "" && !Mje.test(t) && (this.num = NaN, this.unit = ""), Ije(t) && (this.num = Lje(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, mz(e) && (this.unit = ""), t !== "" && !Mje.test(t) && (this.num = NaN, this.unit = ""), Ije(t) && (this.num = Lje(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -62156,7 +62156,7 @@ var O$ = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return hz(this.num);
+ return mz(this.num);
}
};
w$ = O$, kje(O$, "NaN", new w$(NaN, ""));
@@ -62246,7 +62246,7 @@ var P$ = /[ \f\n\r\t\v\u2028\u2029]+/, F$ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return Cz(t) || (i = n ? t.toString().split("") : t.toString().split(P$)), {
+ return Sz(t) || (i = n ? t.toString().split("") : t.toString().split(P$)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: C$(e, r).width
@@ -62261,7 +62261,7 @@ function I$(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
function Wje(e) {
- return Cz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+ return Sz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var L$ = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
@@ -62296,11 +62296,11 @@ var L$ = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, B$ = (e) => [{
- words: Cz(e) ? [] : e.toString().split(P$),
+ words: Sz(e) ? [] : e.toString().split(P$),
width: void 0
}], qje = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !fG.isSsr) {
+ if ((t || n) && !dG.isSsr) {
var s, c, l = F$({
breakAll: a,
children: r,
@@ -62330,7 +62330,7 @@ var L$ = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, H$ = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = Iz(e, Jje), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = N$(n, Vje), f = (0, B.useMemo)(() => qje({
+ var n = Fz(e, Jje), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = N$(n, Vje), f = (0, B.useMemo)(() => qje({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -62345,9 +62345,9 @@ var L$ = (e, t, n, r) => e.reduce((e, i) => {
d.style,
d.width
]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = N$(d, Hje);
- if (!_z(r) || !_z(i) || f.length === 0) return null;
+ if (!gz(r) || !gz(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!dU(y) || !dU(b)) return null;
+ if (!uU(y) || !uU(b)) return null;
var x;
switch (u) {
case "start":
@@ -62363,7 +62363,7 @@ var L$ = (e, t, n, r) => e.reduce((e, i) => {
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", M$({}, cR(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", M$({}, sR(v), {
ref: t,
x: y,
y: b,
@@ -62426,7 +62426,7 @@ function Zje(e, t) {
return (t === "string" ? String : Number)(e);
}
var Qje = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = ZU(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;
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = XU(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 = {
x: d + l / 2,
@@ -62507,9 +62507,9 @@ var Qje = (e) => {
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || gz(n.x)) && (Z(n.y) || gz(n.y)) ? W$({
- x: o + yz(n.x, m),
- y: s + yz(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || hz(n.x)) && (Z(n.y) || hz(n.y)) ? W$({
+ x: o + vz(n.x, m),
+ y: s + vz(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
}, k) : W$({
@@ -62607,8 +62607,8 @@ var Y$ = /*#__PURE__*/ (0, B.createContext)(null), X$ = (e) => {
]);
return /*#__PURE__*/ B.createElement(Y$.Provider, { value: c }, s);
}, Z$ = () => {
- var e = (0, B.useContext)(Y$), t = QU();
- return e || (t ? ZU(t) : void 0);
+ var e = (0, B.useContext)(Y$), t = ZU();
+ return e || (t ? XU(t) : void 0);
}, Q$ = /*#__PURE__*/ (0, B.createContext)(null), aMe = (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,
@@ -62629,12 +62629,12 @@ var Y$ = /*#__PURE__*/ (0, B.createContext)(null), X$ = (e) => {
]);
return /*#__PURE__*/ B.createElement(Q$.Provider, { value: l }, c);
}, $$ = () => {
- var e = (0, B.useContext)(Q$), t = Q(nq);
+ var e = (0, B.useContext)(Q$), t = Q(tq);
return e || t;
}, oMe = (e) => {
- var { value: t, formatter: n } = e, r = Cz(e.children) ? t : e.children;
+ var { value: t, formatter: n } = e, r = Sz(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, e1 = (e) => e != null && typeof e == "function", sMe = (e, t) => mz(t - e) * Math.min(Math.abs(t - e), 360), cMe = (e, t, n, r, i) => {
+}, e1 = (e) => e != null && typeof e == "function", sMe = (e, t) => pz(t - e) * Math.min(Math.abs(t - e), 360), cMe = (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 = sMe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
@@ -62649,9 +62649,9 @@ var Y$ = /*#__PURE__*/ (0, B.createContext)(null), X$ = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = iK(s, c, m, _), b = iK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = rK(s, c, m, _), b = rK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = Cz(e.id) ? vz("recharts-radial-line-") : e.id;
+ ${b.x},${b.y}`, S = Sz(e.id) ? _z("recharts-radial-line-") : e.id;
return /*#__PURE__*/ B.createElement("text", J$({}, r, {
dominantBaseline: "central",
className: qr("recharts-radial-bar-label", o)
@@ -62662,7 +62662,7 @@ var Y$ = /*#__PURE__*/ (0, B.createContext)(null), X$ = (e) => {
}, lMe = (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 } = iK(r, i, o + t, l);
+ var { x: u, y: d } = rK(r, i, o + t, l);
return {
x: u,
y: d,
@@ -62688,7 +62688,7 @@ var Y$ = /*#__PURE__*/ (0, B.createContext)(null), X$ = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = iK(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = rK(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
@@ -62698,7 +62698,7 @@ var Y$ = /*#__PURE__*/ (0, B.createContext)(null), X$ = (e) => {
}, t1 = (e) => e != null && "cx" in e && Z(e.cx), uMe = {
angle: 0,
offset: 5,
- zIndex: zK.label,
+ zIndex: RK.label,
position: "middle",
textBreakAll: !1
};
@@ -62715,8 +62715,8 @@ function dMe(e) {
};
}
function n1(e) {
- var t = Iz(e, uMe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = $$(), f = Z$(), p = n == null ? i === "center" ? f : d ?? f : t1(n) ? n : ZU(n), m, h, g = dMe(p);
- if (!p || Cz(a) && Cz(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;
+ var t = Fz(e, uMe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = $$(), f = Z$(), p = n == null ? i === "center" ? f : d ?? f : t1(n) ? n : XU(n), m, h, g = dMe(p);
+ if (!p || Sz(a) && Sz(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;
var _ = q$(q$({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, B.isValidElement)(s)) {
var { labelRef: v } = _, y = G$(_, $je);
@@ -62726,7 +62726,7 @@ function n1(e) {
var { content: b } = _, x = G$(_, eMe);
if (m = /*#__PURE__*/ (0, B.createElement)(s, x), /*#__PURE__*/ (0, B.isValidElement)(m)) return m;
} else m = oMe(t);
- var S = cR(t);
+ var S = sR(t);
if (t1(p)) {
if (i === "insideStart" || i === "insideEnd" || i === "end") return cMe(t, i, m, S, p);
h = lMe(p, t.offset, t.position);
@@ -62761,7 +62761,7 @@ var r1 = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ B.createElement(n1, J$({ key: "label-implicit" }, r)) : _z(e) ? /*#__PURE__*/ B.createElement(n1, J$({
+ return e === !0 ? /*#__PURE__*/ B.createElement(n1, J$({ key: "label-implicit" }, r)) : gz(e) ? /*#__PURE__*/ B.createElement(n1, J$({
key: "label-implicit",
value: e
}, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === n1 ? /*#__PURE__*/ (0, B.cloneElement)(e, q$({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement(n1, J$({
@@ -62828,9 +62828,9 @@ function yMe() {
}
function u1(e) {
var { valueAccessor: t = gMe } = e, n = o1(e, pMe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = o1(n, mMe), l = vMe(), u = yMe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ B.createElement(e$, { zIndex: s ?? zK.label }, /*#__PURE__*/ B.createElement(fR, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = Cz(r) ? t(e, i) : hU(e.payload, r), l = Cz(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ B.createElement(n1, a1({ key: `label-${i}` }, cR(e), c, l, {
+ return !d || !d.length ? null : /*#__PURE__*/ B.createElement(e$, { zIndex: s ?? RK.label }, /*#__PURE__*/ B.createElement(dR, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = Sz(r) ? t(e, i) : mU(e.payload, r), l = Sz(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ B.createElement(n1, a1({ key: `label-${i}` }, sR(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -62900,7 +62900,7 @@ var p1 = (e) => e != null && e.x === +e.x && e.y === +e.y, TMe = function() {
}, m1 = (e, t) => {
var n = TMe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => pz(xMe ||= wMe([
+ var r = n.map((e) => e.reduce((e, t, n) => fz(xMe ||= wMe([
"",
"",
"",
@@ -62917,20 +62917,20 @@ var p1 = (e) => e != null && e.x === +e.x && e.y === +e.y, TMe = function() {
var o = qr("recharts-polygon", n);
if (r && r.length) {
var s = a.stroke && a.stroke !== "none", c = EMe(t, r, i);
- return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", f1({}, cR(a), {
+ return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", f1({}, sR(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ B.createElement("path", f1({}, cR(a), {
+ })), s ? /*#__PURE__*/ B.createElement("path", f1({}, sR(a), {
fill: "none",
d: m1(t, i)
- })) : null, s ? /*#__PURE__*/ B.createElement("path", f1({}, cR(a), {
+ })) : null, s ? /*#__PURE__*/ B.createElement("path", f1({}, sR(a), {
fill: "none",
d: m1(r, i)
})) : null);
}
var l = m1(t, i);
- return /*#__PURE__*/ B.createElement("path", f1({}, cR(a), {
+ return /*#__PURE__*/ B.createElement("path", f1({}, sR(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -62949,7 +62949,7 @@ function g1() {
}
var _1 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = qr("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", g1({}, oR(e), Nz(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", g1({}, aR(e), Mz(e), {
className: a,
cx: t,
cy: n,
@@ -62957,69 +62957,69 @@ var _1 = (e) => {
})) : null;
}, v1 = (e) => e.graphicalItems.polarItems, y1 = $([
v1,
- LX,
- $([rq, iq], BX)
-], HX), b1 = $([$([y1], KX), mK], qX), x1 = $([
+ IX,
+ $([nq, rq], zX)
+], VX), b1 = $([$([y1], GX), pK], KX), x1 = $([
b1,
- LX,
+ IX,
y1
-], YX);
+], JX);
$([
b1,
- LX,
+ IX,
y1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: hU(e, t.dataKey ?? n.dataKey),
+ value: mU(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: hU(e, t.dataKey),
+ value: mU(e, t.dataKey),
errorDomain: []
})));
var S1 = () => void 0, C1 = $([
- LX,
- nW,
+ IX,
+ tW,
b1,
x1,
- NK,
- rq,
+ MK,
+ nq,
$([
- LX,
+ IX,
+ oZ,
sZ,
- cZ,
S1,
$([
b1,
- LX,
+ IX,
y1,
- lZ,
- rq
- ], dZ),
+ cZ,
+ nq
+ ], uZ),
S1,
- nW,
- rq
+ tW,
+ nq
], yZ)
], bZ), w1 = $([
C1,
- RX,
+ LX,
SZ
], CZ), DMe = $([SZ, $([
- LX,
+ IX,
C1,
w1,
- rq
-], TZ)], pq), T1 = (e, t, n) => {
+ nq
+], TZ)], fq), T1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return JK(e, n);
- case "radiusAxis": return YK(e, n);
+ case "angleAxis": return qK(e, n);
+ case "radiusAxis": return JK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, E1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return oEe(e, n);
- case "radiusAxis": return sEe(e, n);
+ case "angleAxis": return sEe(e, n);
+ case "radiusAxis": return cEe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, D1 = $([$([
@@ -63027,13 +63027,13 @@ var S1 = () => void 0, C1 = $([
SZ,
DMe,
E1
-], wX)], fq), O1 = $([
- nW,
+], CX)], dq), O1 = $([
+ tW,
x1,
- RX,
- rq
+ LX,
+ nq
], AZ), k1 = $([
- nW,
+ tW,
T1,
SZ,
D1,
@@ -63041,7 +63041,7 @@ var S1 = () => void 0, C1 = $([
E1,
VZ,
O1,
- rq
+ nq
], UZ), OMe = $([k1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
@@ -63051,13 +63051,13 @@ var S1 = () => void 0, C1 = $([
}), Array.from(t.values());
}
}), kMe = $([
- nW,
+ tW,
T1,
D1,
E1,
VZ,
O1,
- rq
+ nq
], GZ), AMe = $([(e, t) => k1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
}), jMe = $([(e, t) => k1(e, "radiusAxis", t, !1)], (e) => {
@@ -63148,15 +63148,15 @@ function LMe(e, t) {
var RMe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = iK(t, n, e, r);
+ var o = rK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
}, zMe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = M1({ stroke: "#ccc" }, oR(e));
+ var s = M1({ stroke: "#ccc" }, aR(e));
return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = iK(t, n, r, e), o = iK(t, n, i, e);
+ var a = rK(t, n, r, e), o = rK(t, n, i, e);
return /*#__PURE__*/ B.createElement("line", A1({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
@@ -63168,7 +63168,7 @@ var RMe = (e, t, n, r) => {
var { cx: t, cy: n, radius: r } = e, i = M1({
stroke: "#ccc",
fill: "none"
- }, oR(e));
+ }, aR(e));
return /*#__PURE__*/ B.createElement("circle", A1({}, i, {
className: qr("recharts-polar-grid-concentric-circle", e.className),
cx: t,
@@ -63179,7 +63179,7 @@ var RMe = (e, t, n, r) => {
var { radius: t } = e, n = M1({
stroke: "#ccc",
fill: "none"
- }, oR(e));
+ }, aR(e));
return /*#__PURE__*/ B.createElement("path", A1({}, n, {
className: qr("recharts-polar-grid-concentric-polygon", e.className),
d: RMe(t, e.cx, e.cy, e.polarAngles)
@@ -63203,9 +63203,9 @@ var RMe = (e, t, n, r) => {
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: zK.grid
+ zIndex: RK.grid
}, F1 = (e) => {
- var t = Iz(e, VMe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = NMe(t, MMe), m = Q(nq), h = Q((e) => AMe(e, i)), g = Q((e) => jMe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = Fz(e, VMe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = NMe(t, MMe), m = Q(tq), h = Q((e) => AMe(e, i)), g = Q((e) => jMe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = M1({
cx: m?.cx ?? o ?? 0,
@@ -63238,11 +63238,11 @@ function I1(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function HMe(e, t = Vz) {
+function HMe(e, t = Bz) {
if (e == null) return;
let n = I1(e);
if (n.length === 0) return;
- let r = hB(t), i, a;
+ let r = mB(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);
@@ -63251,11 +63251,11 @@ function HMe(e, t = Vz) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function UMe(e, t = Vz) {
+function UMe(e, t = Bz) {
if (e == null) return;
let n = I1(e);
if (n.length === 0) return;
- let r = hB(t), i, a;
+ let r = mB(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);
@@ -63264,7 +63264,7 @@ function UMe(e, t = Vz) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var L1 = IH({
+var L1 = FH({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -63272,13 +63272,13 @@ var L1 = IH({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = qW(t.payload);
+ e.radiusAxis[t.payload.id] = KW(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = qW(t.payload);
+ e.angleAxis[t.payload.id] = KW(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
@@ -63375,17 +63375,17 @@ function tNe(e, t) {
}
var nNe = "radiusAxis";
function rNe(e) {
- var t = wB(), n = oW(), r = (0, B.useMemo)(() => {
- var { type: t } = e, r = H1(e, YMe), i = UK(n, "radiusAxis", t);
+ var t = CB(), n = aW(), r = (0, B.useMemo)(() => {
+ var { type: t } = e, r = H1(e, YMe), i = HK(n, "radiusAxis", t);
if (i != null) return V1(V1({}, r), {}, { type: i });
}, [e, n]);
- return (0, B.useEffect)(() => r == null ? Ez : (t(WMe(r)), () => {
+ return (0, B.useEffect)(() => r == null ? Tz : (t(WMe(r)), () => {
t(GMe(r));
}), [t, r]), null;
}
var iNe = (e, t, n, r) => {
var { coordinate: i } = e;
- return iK(n, r, i, t);
+ return rK(n, r, i, t);
}, aNe = (e) => {
var t;
switch (e) {
@@ -63410,7 +63410,7 @@ var iNe = (e, t, n, r) => {
clockWise: !1
};
}, sNe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = H1(e, XMe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = iK(n, r, s[0], i), l = iK(n, r, s[1], i), u = V1(V1(V1({}, oR(o)), {}, { fill: "none" }, oR(a)), {}, {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = H1(e, XMe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = rK(n, r, s[0], i), l = rK(n, r, s[1], i), u = V1(V1(V1({}, aR(o)), {}, { fill: "none" }, aR(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
@@ -63418,7 +63418,7 @@ var iNe = (e, t, n, r) => {
});
return /*#__PURE__*/ B.createElement("line", z1({ className: "recharts-polar-radius-axis-line" }, u));
}, cNe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(H$, z1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), lNe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = H1(e, ZMe), s = aNe(e.orientation), c = oR(o), l = sR(a), u = t.map((t, o) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = H1(e, ZMe), s = aNe(e.orientation), c = aR(o), l = oR(a), u = t.map((t, o) => {
var u = iNe(t, e.angle, e.cx, e.cy), d = V1(V1(V1(V1({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
@@ -63426,20 +63426,20 @@ var iNe = (e, t, n, r) => {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ B.createElement(fR, z1({
+ return /*#__PURE__*/ B.createElement(dR, z1({
className: qr("recharts-polar-radius-axis-tick", R1(a)),
key: `tick-${t.coordinate}`
- }, Pz(e, t, o)), cNe(a, d, r ? r(t.value, o) : t.value));
+ }, Nz(e, t, o)), cNe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ B.createElement(fR, { className: "recharts-polar-radius-axis-ticks" }, u);
+ return /*#__PURE__*/ B.createElement(dR, { className: "recharts-polar-radius-axis-ticks" }, u);
}, uNe = (e) => {
- var { radiusAxisId: t } = e, n = Q(nq), r = Q((e) => D1(e, "radiusAxis", t)), i = Q((e) => k1(e, "radiusAxis", t, !1));
+ var { radiusAxisId: t } = e, n = Q(tq), r = Q((e) => D1(e, "radiusAxis", t)), i = Q((e) => k1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = V1(V1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ B.createElement(e$, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(fR, { className: qr("recharts-polar-radius-axis", nNe, a.className) }, s && sNe(a, i), o && lNe(a, i), /*#__PURE__*/ B.createElement(aMe, oNe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(fMe, { label: a.label }), a.children)));
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(dR, { className: qr("recharts-polar-radius-axis", nNe, a.className) }, s && sNe(a, i), o && lNe(a, i), /*#__PURE__*/ B.createElement(aMe, oNe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(fMe, { label: a.label }), a.children)));
};
function U1(e) {
- var t = Iz(e, VK);
+ var t = Fz(e, BK);
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rNe, {
domain: t.domain,
id: t.radiusAxisId,
@@ -63533,18 +63533,18 @@ function gNe(e, t) {
}
return n;
}
-var J1 = 1e-5, _Ne = Math.cos(rK(45)), vNe = "angleAxis";
+var J1 = 1e-5, _Ne = Math.cos(nK(45)), vNe = "angleAxis";
function yNe(e) {
- var t = wB(), n = oW(), r = (0, B.useMemo)(() => {
- var { children: t, type: r } = e, i = q1(e, dNe), a = UK(n, "angleAxis", r);
+ var t = CB(), n = aW(), r = (0, B.useMemo)(() => {
+ var { children: t, type: r } = e, i = q1(e, dNe), a = HK(n, "angleAxis", r);
if (a != null) return K1(K1({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => JK(e, r?.id));
- return (0, B.useEffect)(() => r == null ? Ez : (t(KMe(r)), () => {
+ }, [e, n]), i = r === Q((e) => qK(e, r?.id));
+ return (0, B.useEffect)(() => r == null ? Tz : (t(KMe(r)), () => {
t(qMe(r));
}), [t, r]), i ? e.children : null;
}
var bNe = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = iK(n, r, i, e.coordinate), l = iK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = rK(n, r, i, e.coordinate), l = rK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
@@ -63552,27 +63552,27 @@ var bNe = (e, t) => {
y2: l.y
};
}, xNe = (e, t) => {
- var n = Math.cos(rK(-e.coordinate));
+ var n = Math.cos(nK(-e.coordinate));
return n > J1 ? t === "outer" ? "start" : "end" : n < -J1 ? t === "outer" ? "end" : "start" : "middle";
}, SNe = (e) => {
- var t = Math.cos(rK(-e.coordinate)), n = Math.sin(rK(-e.coordinate));
+ var t = Math.cos(nK(-e.coordinate)), n = Math.sin(nK(-e.coordinate));
return Math.abs(t) <= _Ne ? n > 0 ? "start" : "end" : "middle";
}, CNe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = K1(K1({}, oR(e)), {}, { fill: "none" }, oR(a));
+ var s = K1(K1({}, aR(e)), {}, { fill: "none" }, aR(a));
if (i === "circle") return /*#__PURE__*/ B.createElement(_1, W1({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => iK(t, n, r, e.coordinate));
+ var c = o.map((e) => rK(t, n, r, e.coordinate));
return /*#__PURE__*/ B.createElement(h1, W1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
}, wNe = (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(H$, W1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
}, TNe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = oR(e), { ref: s } = o, c = q1(o, fNe), l = sR(t), u = K1(K1({}, c), {}, { fill: "none" }, oR(n)), d = a.map((a, o) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = aR(e), { ref: s } = o, c = q1(o, fNe), l = oR(t), u = K1(K1({}, c), {}, { fill: "none" }, aR(n)), d = a.map((a, o) => {
var s = bNe(a, e), d = xNe(a, e.orientation), f = SNe(a), p = K1(K1(K1({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
@@ -63584,27 +63584,27 @@ var bNe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ B.createElement(fR, W1({
+ return /*#__PURE__*/ B.createElement(dR, W1({
className: qr("recharts-polar-angle-axis-tick", R1(t)),
key: `tick-${a.coordinate}`
- }, Pz(e, a, o)), n && /*#__PURE__*/ B.createElement("line", W1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(wNe, {
+ }, Nz(e, a, o)), n && /*#__PURE__*/ B.createElement("line", W1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(wNe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ B.createElement(fR, { className: "recharts-polar-angle-axis-ticks" }, d);
+ return /*#__PURE__*/ B.createElement(dR, { className: "recharts-polar-angle-axis-ticks" }, d);
}, ENe = (e) => {
- var { angleAxisId: t } = e, n = Q(nq), r = Q((e) => D1(e, "angleAxis", t)), i = RU(), a = Q((e) => OMe(e, "angleAxis", t, i));
+ var { angleAxisId: t } = e, n = Q(tq), r = Q((e) => D1(e, "angleAxis", t)), i = LU(), a = Q((e) => OMe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = K1(K1(K1({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ B.createElement(e$, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(fR, { className: qr("recharts-polar-angle-axis", vNe, o.className) }, /*#__PURE__*/ B.createElement(CNe, o), /*#__PURE__*/ B.createElement(TNe, o)));
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(dR, { className: qr("recharts-polar-angle-axis", vNe, o.className) }, /*#__PURE__*/ B.createElement(CNe, o), /*#__PURE__*/ B.createElement(TNe, o)));
};
function Y1(e) {
- var t = Iz(e, BK);
+ var t = Fz(e, zK);
return /*#__PURE__*/ B.createElement(yNe, {
id: t.angleAxisId,
scale: t.scale,
@@ -63662,13 +63662,13 @@ var DNe = /* @__PURE__ */ mt(((e) => {
if (e === Z1 && Array.isArray(Q1)) return Q1;
var t = [];
return B.Children.forEach(e, (e) => {
- Cz(e) || ((0, ONe.isFragment)(e) ? t = t.concat($1(e.props.children)) : t.push(e));
+ Sz(e) || ((0, ONe.isFragment)(e) ? t = t.concat($1(e.props.children)) : t.push(e));
}), Q1 = t, Z1 = e, t;
};
function e0(e, t) {
var n = [], r = [];
return r = Array.isArray(t) ? t.map((e) => X1(e)) : [X1(t)], $1(e).forEach((e) => {
- var t = dz(e, "type.displayName") || dz(e, "type.name");
+ var t = uz(e, "type.displayName") || uz(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
@@ -63745,24 +63745,24 @@ function a0(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 = pz(ANe ||= a0([
+ var a = n - r, o = fz(ANe ||= a0([
"M ",
",",
""
]), e, t);
- return o += pz(jNe ||= a0([
+ return o += fz(jNe ||= a0([
"L ",
",",
""
- ]), e + n, t), o += pz(MNe ||= a0([
+ ]), e + n, t), o += fz(MNe ||= a0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += pz(NNe ||= a0([
+ ]), e + n - a / 2, t + i), o += fz(NNe ||= a0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += pz(PNe ||= a0([
+ ]), e + n - a / 2 - r, t + i), o += fz(PNe ||= a0([
"L ",
",",
" Z"
@@ -63778,7 +63778,7 @@ var o0 = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, zNe = (e) => {
- var t = Iz(e, RNe), { 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 = GG(e, "trapezoid-");
+ var t = Fz(e, RNe), { 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 = WG(e, "trapezoid-");
if ((0, B.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -63786,12 +63786,12 @@ 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 = qr("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", i0({}, cR(t), {
+ if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", i0({}, sR(t), {
className: x,
d: o0(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 = jG(["strokeDasharray"], l, c);
- return /*#__PURE__*/ B.createElement(WG, {
+ 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 = AG(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ B.createElement(UG, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -63800,13 +63800,13 @@ var o0 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = xz(S, i, e), c = xz(C, a, e), l = xz(w, o, e), u = xz(T, n, e), d = xz(E, r, e);
+ var s = bz(S, i, e), c = bz(C, a, e), l = bz(w, o, e), u = bz(T, n, e), d = bz(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", i0({}, cR(t), {
+ return /*#__PURE__*/ B.createElement("path", i0({}, sR(t), {
className: x,
d: o0(u, d, s, c, l),
ref: f,
@@ -63889,13 +63889,13 @@ function qNe(e, t) {
function l0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ B.createElement($G, n);
+ case "rectangle": return /*#__PURE__*/ B.createElement(QG, n);
case "trapezoid": return /*#__PURE__*/ B.createElement(zNe, n);
- case "sector": return /*#__PURE__*/ B.createElement(uK, n);
+ case "sector": return /*#__PURE__*/ B.createElement(lK, n);
case "symbols":
- if (qNe(t, n)) return /*#__PURE__*/ B.createElement(jz, n);
+ if (qNe(t, n)) return /*#__PURE__*/ B.createElement(Az, n);
break;
- case "curve": return /*#__PURE__*/ B.createElement(EG, n);
+ case "curve": return /*#__PURE__*/ B.createElement(TG, n);
default: return null;
}
}
@@ -63919,12 +63919,12 @@ function u0(e) {
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ B.createElement(fR, { className: r }, o) : /*#__PURE__*/ B.createElement(fR, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ B.createElement(dR, { className: r }, o) : /*#__PURE__*/ B.createElement(dR, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var d0 = (e, t, n) => {
- var r = wB();
+ var r = CB();
return (i, a) => (o) => {
e?.(i, a, o), r(tQ({
activeIndex: String(a),
@@ -63934,12 +63934,12 @@ var d0 = (e, t, n) => {
}));
};
}, f0 = (e) => {
- var t = wB();
+ var t = CB();
return (n, r) => (i) => {
e?.(n, r, i), t(Nke());
};
}, p0 = (e, t, n) => {
- var r = wB();
+ var r = CB();
return (i, a) => (o) => {
e?.(i, a, o), r(Pke({
activeIndex: String(a),
@@ -63952,7 +63952,7 @@ var d0 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function m0(e) {
- var { tooltipEntrySettings: t } = e, n = wB(), r = RU(), i = (0, B.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = CB(), r = LU(), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
r || (i.current === null ? n(kke(t)) : i.current !== t && n(Ake({
prev: i.current,
@@ -63969,9 +63969,9 @@ function m0(e) {
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function h0(e) {
- var { legendPayload: t } = e, n = wB(), r = RU(), i = (0, B.useRef)(null);
+ var { legendPayload: t } = e, n = CB(), r = LU(), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- r || (i.current === null ? n(XW(t)) : i.current !== t && n(ZW({
+ r || (i.current === null ? n(YW(t)) : i.current !== t && n(XW({
prev: i.current,
next: t
})), i.current = t);
@@ -63980,13 +63980,13 @@ function h0(e) {
r,
t
]), (0, B.useLayoutEffect)(() => () => {
- i.current &&= (n(QW(i.current)), null);
+ i.current &&= (n(ZW(i.current)), null);
}, [n]), null;
}
function g0(e) {
- var { legendPayload: t } = e, n = wB(), r = Q(nW), i = (0, B.useRef)(null);
+ var { legendPayload: t } = e, n = CB(), r = Q(tW), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(XW(t)) : i.current !== t && n(ZW({
+ (r === "centric" || r === "radial") && (i.current === null ? n(YW(t)) : i.current !== t && n(XW({
prev: i.current,
next: t
})), i.current = t);
@@ -63995,13 +63995,13 @@ function g0(e) {
r,
t
]), (0, B.useLayoutEffect)(() => () => {
- i.current &&= (n(QW(i.current)), null);
+ i.current &&= (n(ZW(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
var YNe = B.useId ?? (() => {
- var [e] = B.useState(() => vz("uid-"));
+ var [e] = B.useState(() => _z("uid-"));
return e;
});
//#endregion
@@ -64015,7 +64015,7 @@ function XNe(e, t) {
var ZNe = /*#__PURE__*/ (0, B.createContext)(void 0), _0 = (e) => {
var { id: t, type: n, children: r } = e, i = XNe(`recharts-${n}`, t);
return /*#__PURE__*/ B.createElement(ZNe.Provider, { value: i }, r(i));
-}, v0 = IH({
+}, v0 = FH({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -64024,47 +64024,47 @@ var ZNe = /*#__PURE__*/ (0, B.createContext)(void 0), _0 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(qW(t.payload));
+ e.cartesianItems.push(KW(t.payload));
},
- prepare: MH()
+ prepare: jH()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CH(e).cartesianItems.indexOf(qW(n));
- i > -1 && (e.cartesianItems[i] = qW(r));
+ var { prev: n, next: r } = t.payload, i = SH(e).cartesianItems.indexOf(KW(n));
+ i > -1 && (e.cartesianItems[i] = KW(r));
},
- prepare: MH()
+ prepare: jH()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = CH(e).cartesianItems.indexOf(qW(t.payload));
+ var n = SH(e).cartesianItems.indexOf(KW(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: MH()
+ prepare: jH()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(qW(t.payload));
+ e.polarItems.push(KW(t.payload));
},
- prepare: MH()
+ prepare: jH()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = CH(e).polarItems.indexOf(qW(t.payload));
+ var n = SH(e).polarItems.indexOf(KW(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: MH()
+ prepare: jH()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CH(e).polarItems.indexOf(qW(n));
- i > -1 && (e.polarItems[i] = qW(r));
+ var { prev: n, next: r } = t.payload, i = SH(e).polarItems.indexOf(KW(n));
+ i > -1 && (e.polarItems[i] = KW(r));
},
- prepare: MH()
+ prepare: jH()
}
}
}), { addCartesianGraphicalItem: QNe, replaceCartesianGraphicalItem: $Ne, removeCartesianGraphicalItem: ePe, addPolarGraphicalItem: tPe, removePolarGraphicalItem: nPe, replacePolarGraphicalItem: rPe } = v0.actions, iPe = v0.reducer, y0 = /*#__PURE__*/ (0, B.memo)((e) => {
- var t = wB(), n = (0, B.useRef)(null);
+ var t = CB(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
n.current === null ? t(QNe(e)) : n.current !== e && t($Ne({
prev: n.current,
@@ -64074,7 +64074,7 @@ var ZNe = /*#__PURE__*/ (0, B.createContext)(void 0), _0 = (e) => {
n.current &&= (t(ePe(n.current)), null);
}, [t]), null;
}), b0 = /*#__PURE__*/ (0, B.memo)((e) => {
- var t = wB(), n = (0, B.useRef)(null);
+ var t = CB(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
n.current === null ? t(tPe(e)) : n.current !== e && t(rPe({
prev: n.current,
@@ -64092,7 +64092,7 @@ function aPe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
function oPe(e) {
- if (!(!Hz(e) || e.length === 0)) return aPe(I1(e));
+ if (!(!Vz(e) || e.length === 0)) return aPe(I1(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
@@ -64178,9 +64178,9 @@ function mPe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function w0(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = zK.scatter } = e;
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = RK.scatter } = e;
if (!mPe(t, n)) return null;
- var u = t0(n), d = cbe(n), f = t.map((e, r) => {
+ var u = t0(n), d = lbe(n), f = t.map((e, r) => {
var s = S0(S0(S0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -64197,7 +64197,7 @@ function w0(e) {
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(e$, { zIndex: l }, /*#__PURE__*/ B.createElement(fR, C0({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(e$, { zIndex: l }, /*#__PURE__*/ B.createElement(dR, C0({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -64244,7 +64244,7 @@ function _Pe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var D0 = IH({
+var D0 = FH({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -64254,60 +64254,60 @@ var D0 = IH({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = qW(t.payload);
+ e.xAxis[t.payload.id] = KW(t.payload);
},
- prepare: MH()
+ prepare: jH()
},
replaceXAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = qW(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = KW(r));
},
- prepare: MH()
+ prepare: jH()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: MH()
+ prepare: jH()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = qW(t.payload);
+ e.yAxis[t.payload.id] = KW(t.payload);
},
- prepare: MH()
+ prepare: jH()
},
replaceYAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = qW(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = KW(r));
},
- prepare: MH()
+ prepare: jH()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: MH()
+ prepare: jH()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = qW(t.payload);
+ e.zAxis[t.payload.id] = KW(t.payload);
},
- prepare: MH()
+ prepare: jH()
},
replaceZAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = qW(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = KW(r));
},
- prepare: MH()
+ prepare: jH()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: MH()
+ prepare: jH()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -64323,14 +64323,14 @@ var D0 = IH({
}
}
}), { addXAxis: vPe, replaceXAxis: yPe, removeXAxis: bPe, addYAxis: xPe, replaceYAxis: SPe, removeYAxis: CPe, addZAxis: wPe, replaceZAxis: TPe, removeZAxis: EPe, updateYAxisWidth: DPe } = D0.actions, OPe = D0.reducer, kPe = $([
- $([IU], (e) => ({
+ $([FU], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- kU,
- AU
+ OU,
+ kU
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -64398,17 +64398,17 @@ var PPe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), sR(i)), Nz(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(_1, s);
- return /*#__PURE__*/ B.createElement(fR, {
+ }), oR(i)), Mz(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(_1, s);
+ return /*#__PURE__*/ B.createElement(dR, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
function j0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = zK.activeDot } = e, s = Q(NQ), c = APe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = RK.activeDot } = e, s = Q(NQ), c = APe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return Cz(l) ? null : /*#__PURE__*/ B.createElement(e$, { zIndex: o }, /*#__PURE__*/ B.createElement(PPe, {
+ return Sz(l) ? null : /*#__PURE__*/ B.createElement(e$, { zIndex: o }, /*#__PURE__*/ B.createElement(PPe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -64464,14 +64464,14 @@ function LPe(e, t) {
}
var P0 = (e, t) => D1(e, "radiusAxis", t), RPe = $([P0], (e) => {
if (e != null) return { scale: e };
-}), zPe = $([YK, P0], (e, t) => {
+}), zPe = $([JK, P0], (e, t) => {
if (e != null && t != null) return N0(N0({}, e), {}, { scale: t });
-}), BPe = (e, t, n, r) => k1(e, "radiusAxis", t, r), F0 = (e, t, n) => JK(e, n), I0 = (e, t, n) => D1(e, "angleAxis", n), VPe = $([F0, I0], (e, t) => {
+}), BPe = (e, t, n, r) => k1(e, "radiusAxis", t, r), F0 = (e, t, n) => qK(e, n), I0 = (e, t, n) => D1(e, "angleAxis", n), VPe = $([F0, I0], (e, t) => {
if (e != null && t != null) return N0(N0({}, e), {}, { scale: t });
}), HPe = (e, t, n, r) => k1(e, "angleAxis", n, r), UPe = $([
F0,
I0,
- nq
+ tq
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -64481,15 +64481,15 @@ var P0 = (e, t) => D1(e, "radiusAxis", t), RPe = $([P0], (e) => {
cy: n.cy
};
}), WPe = (e, t, n, r, i) => i, GPe = $([
- nW,
+ tW,
zPe,
BPe,
VPe,
HPe
-], (e, t, n, r, i) => gU(e, "radiusAxis") ? EU(t, n, !1) : EU(r, i, !1)), KPe = $([
+], (e, t, n, r, i) => hU(e, "radiusAxis") ? TU(t, n, !1) : TU(r, i, !1)), KPe = $([
RPe,
UPe,
- mK,
+ pK,
$([v1, WPe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
@@ -64584,20 +64584,20 @@ var $Pe = (e) => {
dataKey: t,
type: a,
color: B0(r, i),
- value: OU(n, t),
+ value: DU(n, t),
payload: e
}];
}, eFe = /*#__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: Ez,
+ getPosition: Tz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: OU(a, t),
+ name: DU(a, t),
hide: o,
type: s,
color: B0(n, i),
@@ -64608,7 +64608,7 @@ var $Pe = (e) => {
return /*#__PURE__*/ B.createElement(m0, { tooltipEntrySettings: l });
});
function tFe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = oR(ZPe(n, qPe));
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = aR(ZPe(n, qPe));
return /*#__PURE__*/ B.createElement(w0, {
points: t,
dot: r,
@@ -64621,8 +64621,8 @@ function tFe(e) {
function nFe(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 = hU(e, n.dataKey, r), d = hU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? oPe(d) : d, m = Cz(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(z0(z0({}, iK(o, s, m, f)), {}, {
+ var a = mU(e, n.dataKey, r), d = mU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? oPe(d) : d, m = Sz(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(z0(z0({}, rK(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -64635,8 +64635,8 @@ function nFe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = Cz(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(z0(z0({}, e), {}, { radius: r }, iK(o, s, r, e.angle)));
+ var n = e.value[0], r = Sz(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(z0(z0({}, e), {}, { radius: r }, rK(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -64667,7 +64667,7 @@ function rFe(e) {
function iFe(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, z0(z0({}, r), {}, { points: t })) : typeof i == "function" ? i(z0(z0({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(h1, L0({}, cR(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, z0(z0({}, r), {}, { points: t })) : typeof i == "function" ? i(z0(z0({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(h1, L0({}, sR(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -64680,7 +64680,7 @@ function iFe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ B.createElement(fR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(tFe, {
+ return /*#__PURE__*/ B.createElement(dR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(tFe, {
props: r,
points: t
}));
@@ -64688,15 +64688,15 @@ function iFe(e) {
var V0 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
return a ? z0(z0({}, r), {}, {
- x: xz(a.x, r.x, n),
- y: xz(a.y, r.y, n)
+ x: bz(a.x, r.x, n),
+ y: bz(a.y, r.y, n)
}) : z0(z0({}, r), {}, {
- x: xz(r.cx, r.x, n),
- y: xz(r.cy, r.y, n)
+ x: bz(r.cx, r.x, n),
+ y: bz(r.cy, r.y, n)
});
};
function aFe(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 = GG(t, "recharts-radar-"), [_, v] = (0, B.useState)(!1), y = !_, b = (0, B.useCallback)(() => {
+ 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 = WG(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);
@@ -64704,7 +64704,7 @@ function aFe(e) {
return /*#__PURE__*/ B.createElement(rFe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ B.createElement(WG, {
+ }, /*#__PURE__*/ B.createElement(UG, {
animationId: g,
begin: s,
duration: c,
@@ -64742,13 +64742,13 @@ var sFe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: zK.area
+ zIndex: RK.area
};
function cFe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = qr("recharts-radar", n);
- return /*#__PURE__*/ B.createElement(e$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(fR, { className: i }, /*#__PURE__*/ B.createElement(oFe, e)), /*#__PURE__*/ B.createElement(j0, {
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(dR, { className: i }, /*#__PURE__*/ B.createElement(oFe, e)), /*#__PURE__*/ B.createElement(j0, {
points: r,
mainColor: B0(e.stroke, e.fill),
itemDataKey: e.dataKey,
@@ -64756,7 +64756,7 @@ function cFe(e) {
}));
}
function lFe(e) {
- var t = RU(), n = Q((n) => KPe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ var t = LU(), n = Q((n) => KPe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
return n?.points == null ? null : /*#__PURE__*/ B.createElement(cFe, L0({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
@@ -64764,7 +64764,7 @@ function lFe(e) {
}));
}
function H0(e) {
- var t = Iz(e, sFe);
+ var t = Fz(e, sFe);
return /*#__PURE__*/ B.createElement(_0, {
id: t.id,
type: "radar"
@@ -64809,9 +64809,9 @@ function G0(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
var K0 = (e, t, n) => {
var r = n ?? e;
- if (!Cz(r)) return yz(r, t, 0);
+ if (!Sz(r)) return vz(r, t, 0);
}, q0 = (e, t, n) => {
- var r = {}, i = e.filter(sq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ 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;
}, r), s = Object.entries(o).map((e) => {
@@ -64876,8 +64876,8 @@ function fFe(e, t) {
function pFe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = yz(e, n, 0, !0), s, c = [];
- if (dU(r[0]?.barSize)) {
+ var o = vz(e, n, 0, !0), s, c = [];
+ if (uU(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);
var f = {
@@ -64896,11 +64896,11 @@ function pFe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = yz(t, n, 0, !0);
+ var p = vz(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);
- var h = dU(i) ? Math.min(m, i) : m;
+ var h = uU(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -64914,10 +64914,10 @@ function pFe(e, t, n, r, i) {
}
}
var X0 = (e, t, n, r, i, a, o) => {
- var s = Cz(o) ? t : o, c = pFe(n, r, i === a ? a : i, e, s);
+ var s = Sz(o) ? t : o, c = pFe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => Y0(Y0({}, e), {}, { position: Y0(Y0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, Z0 = (e, t) => {
- var n = aq(t);
+ var n = iq(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -64979,76 +64979,76 @@ function gFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var t2 = $([(e, t) => YK(e, t), (e, t) => D1(e, "radiusAxis", t)], (e, t) => {
+var t2 = $([(e, t) => JK(e, t), (e, t) => D1(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return e2(e2({}, e), {}, { scale: t });
-}), n2 = (e, t) => kMe(e, "radiusAxis", t, !1), r2 = $([(e, t, n) => JK(e, n), (e, t, n) => D1(e, "angleAxis", n)], (e, t) => {
+}), n2 = (e, t) => kMe(e, "radiusAxis", t, !1), r2 = $([(e, t, n) => qK(e, n), (e, t, n) => D1(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return e2(e2({}, e), {}, { scale: t });
}), i2 = (e, t, n) => k1(e, "angleAxis", n, !1), a2 = $([v1, (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 = $([
- nW,
+ tW,
t2,
n2,
r2,
i2
-], (e, t, n, r, i) => gU(e, "radiusAxis") ? EU(t, n, !1) : EU(r, i, !1)), _Fe = $([
+], (e, t, n, r, i) => hU(e, "radiusAxis") ? TU(t, n, !1) : TU(r, i, !1)), _Fe = $([
r2,
t2,
- nW
+ tW
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return CU({ numericAxis: r });
+ if (r != null && r.scale != null) return SU({ numericAxis: r });
}), vFe = (e, t, n, r, i) => i, yFe = (e, t, n, r, i) => n, bFe = (e, t, n, r, i) => t, s2 = (e, t, n, r, i) => r.maxBarSize, c2 = (e) => e.type === "radialBar", xFe = $([$([
$([
$([
- nW,
+ tW,
v1,
yFe,
bFe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(c2)),
- MK,
+ jK,
() => void 0
], q0),
+ OK,
kK,
AK,
- jK,
$([
- nW,
- kK,
+ tW,
+ OK,
r2,
i2,
t2,
n2,
s2
], (e, t, n, r, i, a, o) => {
- var s = Cz(o) ? t : o;
- return e === "centric" ? EU(n, r, !0) ?? s ?? 0 : EU(i, a, !0) ?? s ?? 0;
+ var s = Sz(o) ? t : o;
+ return e === "centric" ? TU(n, r, !0) ?? s ?? 0 : TU(i, a, !0) ?? s ?? 0;
}),
o2,
s2
-], X0), a2], Q0), l2 = $([y1], (e) => e.filter(c2).filter(sq)), u2 = $([
+], X0), a2], Q0), l2 = $([y1], (e) => e.filter(c2).filter(oq)), u2 = $([
$([
l2,
- mK,
- tZ
- ], oq),
+ pK,
+ eZ
+ ], aq),
l2,
- NK,
- PK
-], rZ), SFe = $([
+ MK,
+ NK
+], nZ), SFe = $([
r2,
i2,
t2,
n2,
- pK,
+ fK,
a2,
o2,
- nW,
+ tW,
_Fe,
- nq,
+ tq,
vFe,
xFe,
- $([(e, t, n) => nW(e) === "centric" ? u2(e, "radiusAxis", t) : u2(e, "angleAxis", n), a2], Z0)
+ $([(e, t, n) => tW(e) === "centric" ? u2(e, "radiusAxis", t) : u2(e, "angleAxis", n), a2], Z0)
], (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 [];
@@ -65074,7 +65074,7 @@ var t2 = $([(e, t) => YK(e, t), (e, t) => D1(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), CFe = $([mK, (e, t) => t], (e, t) => {
+}), CFe = $([pK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -65088,7 +65088,7 @@ var t2 = $([(e, t) => YK(e, t), (e, t) => D1(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function d2(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && dU(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && uU(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
@@ -65193,12 +65193,12 @@ function jFe(e) {
return /*#__PURE__*/ B.createElement(_Me, { value: t ? i : void 0 }, r);
}
function MFe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = h2(n, wFe), l = oR(c), u = Q(NQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = h2(n, TFe), h = d0(d, n.dataKey, s), g = f0(p), _ = p0(f, n.dataKey, s);
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = h2(n, wFe), l = aR(c), u = Q(NQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = h2(n, TFe), h = d0(d, n.dataKey, s), g = f0(p), _ = p0(f, n.dataKey, s);
return t == null ? null : /*#__PURE__*/ B.createElement(jFe, {
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 = m2(m2(m2(m2({}, l), {}, { cornerRadius: W0(o) }, e), Pz(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = m2(m2(m2(m2({}, l), {}, { cornerRadius: W0(o) }, e), Nz(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -65210,18 +65210,18 @@ function MFe(e) {
index: t
});
return n ? /*#__PURE__*/ B.createElement(e$, {
- zIndex: zK.activeBar,
+ zIndex: RK.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
}, /*#__PURE__*/ B.createElement(G0, f)) : /*#__PURE__*/ B.createElement(G0, f2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ B.createElement(d1, { label: n.label }), n.children);
}
function NFe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = GG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, B.useState)(!1), m = (0, B.useCallback)(() => {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = WG(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)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ B.createElement(WG, {
+ return /*#__PURE__*/ B.createElement(UG, {
animationId: u,
begin: a,
duration: o,
@@ -65234,11 +65234,11 @@ function NFe(e) {
var i = e === 1 ? r : (r ?? g2).map((t, n) => {
var r = d && d[n];
if (r) return m2(m2({}, t), {}, {
- startAngle: xz(r.startAngle, t.startAngle, e),
- endAngle: xz(r.endAngle, t.endAngle, e)
+ startAngle: bz(r.startAngle, t.startAngle, e),
+ endAngle: bz(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return m2(m2({}, t), {}, { endAngle: xz(a, i, e) });
+ return m2(m2({}, t), {}, { endAngle: bz(a, i, e) });
});
return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(MFe, {
sectors: i ?? g2,
@@ -65261,7 +65261,7 @@ function FFe(e) {
var IFe = /*#__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: Ez,
+ getPosition: Tz,
settings: {
graphicalItemId: l,
stroke: r,
@@ -65269,7 +65269,7 @@ var IFe = /*#__PURE__*/ B.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: OU(a, t),
+ name: DU(a, t),
hide: o,
type: c,
color: s,
@@ -65280,11 +65280,11 @@ var IFe = /*#__PURE__*/ B.memo((e) => {
}), LFe = class extends B.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = sR(this.props.background);
- return /*#__PURE__*/ B.createElement(e$, { zIndex: d2(this.props.background, zK.barBackground) }, e.map((e, r) => {
+ var { cornerRadius: t } = this.props, n = oR(this.props.background);
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: d2(this.props.background, RK.barBackground) }, e.map((e, r) => {
var { value: i, background: a } = e, o = h2(e, EFe);
if (!a) return null;
- var s = m2(m2(m2(m2(m2({ cornerRadius: W0(t) }, o), {}, { fill: "#eee" }, a), n), Pz(this.props, e, r)), {}, {
+ var s = m2(m2(m2(m2(m2({ cornerRadius: W0(t) }, o), {}, { fill: "#eee" }, a), n), Nz(this.props, e, r)), {}, {
index: r,
className: qr("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
@@ -65297,7 +65297,7 @@ var IFe = /*#__PURE__*/ B.memo((e) => {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = qr("recharts-area", n);
- return /*#__PURE__*/ B.createElement(e$, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(fR, { className: i }, r && /*#__PURE__*/ B.createElement(fR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(fR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(PFe, this.props))));
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(dR, { className: i }, r && /*#__PURE__*/ B.createElement(dR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(dR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(PFe, this.props))));
}
};
function RFe(e) {
@@ -65307,7 +65307,7 @@ function RFe(e) {
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: bU(e.stackId),
+ stackId: yU(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -65350,14 +65350,14 @@ var _2 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: zK.bar
+ zIndex: RK.bar
};
function zFe(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 ? g2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = yU(n[r + t], i) : (b = hU(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 = SU({
+ if (n ? b = vU(n[r + t], i) : (b = mU(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 = xU({
axis: c,
ticks: l,
bandSize: u,
@@ -65368,7 +65368,7 @@ function zFe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = mz(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = pz(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -65380,7 +65380,7 @@ function zFe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = SU({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = xU({
axis: f,
ticks: g,
bandSize: u,
@@ -65391,7 +65391,7 @@ function zFe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = mz(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = pz(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -65408,7 +65408,7 @@ function zFe(e) {
});
}
function v2(e) {
- var t = Iz(e, _2);
+ var t = Fz(e, _2);
return /*#__PURE__*/ B.createElement(_0, {
id: t.id,
type: "radialBar"
@@ -65420,7 +65420,7 @@ function v2(e) {
hide: t.hide ?? _2.hide,
angleAxisId: t.angleAxisId ?? _2.angleAxisId,
radiusAxisId: t.radiusAxisId ?? _2.radiusAxisId,
- stackId: bU(t.stackId),
+ stackId: yU(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
@@ -65430,7 +65430,7 @@ v2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var y2 = (e) => {
- var { chartData: t } = e, n = wB(), r = RU();
+ var { chartData: t } = e, n = CB(), r = LU();
return (0, B.useEffect)(() => r ? () => {} : (n(d$(t)), () => {
n(d$(void 0));
}), [
@@ -65449,7 +65449,7 @@ var y2 = (e) => {
bottom: 0,
left: 0
}
-}, x2 = IH({
+}, x2 = FH({
name: "brush",
initialState: b2,
reducers: { setBrushSettings(e, t) {
@@ -65479,7 +65479,7 @@ function WFe(e) {
var GFe = function(e) {
var { width: t, height: n } = e, r = WFe(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);
-}, S2 = IH({
+}, S2 = FH({
name: "referenceElements",
initialState: {
dots: [],
@@ -65491,26 +65491,26 @@ var GFe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = CH(e).dots.findIndex((e) => e === t.payload);
+ var n = SH(e).dots.findIndex((e) => e === t.payload);
n !== -1 && e.dots.splice(n, 1);
},
addArea: (e, t) => {
e.areas.push(t.payload);
},
removeArea: (e, t) => {
- var n = CH(e).areas.findIndex((e) => e === t.payload);
+ var n = SH(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(qW(t.payload));
+ e.lines.push(KW(t.payload));
},
removeLine: (e, t) => {
- var n = CH(e).lines.findIndex((e) => e === t.payload);
+ var n = SH(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
}), { addDot: KFe, removeDot: qFe, addArea: JFe, removeArea: YFe, addLine: XFe, removeLine: ZFe } = S2.actions, QFe = S2.reducer, C2 = /*#__PURE__*/ (0, B.createContext)(void 0), $Fe = (e) => {
- var { children: t } = e, [n] = (0, B.useState)(`${vz("recharts")}-clip`), r = O0();
+ var { children: t } = e, [n] = (0, B.useState)(`${_z("recharts")}-clip`), r = O0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
return /*#__PURE__*/ B.createElement(C2.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {
@@ -65602,13 +65602,13 @@ var aIe = (e, t) => {
if (/*#__PURE__*/ B.isValidElement(e)) n = /*#__PURE__*/ B.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!dU(t.x1) || !dU(t.y1) || !dU(t.x2) || !dU(t.y2)) return null;
+ if (!uU(t.x1) || !uU(t.y1) || !uU(t.x2) || !uU(t.y2)) return null;
n = /*#__PURE__*/ B.createElement("line", E2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
}, oIe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!dU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!uU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -65619,7 +65619,7 @@ var aIe = (e, t) => {
return r === "left" ? l.reverse() : l;
}, sIe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!dU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!uU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -65638,26 +65638,26 @@ var aIe = (e, t) => {
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
}, lIe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = _z(s);
- return _z(c) ? oIe(c, u, r, a, t, n) : d ? sIe(s, u, r, i, e, n) : l != null && l.length === 2 ? cIe(l, u, r, new tIe({
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = gz(s);
+ return gz(c) ? oIe(c, u, r, a, t, n) : d ? sIe(s, u, r, i, e, n) : l != null && l.length === 2 ? cIe(l, u, r, new tIe({
x: e,
y: t
})) : null;
};
function uIe(e) {
- var t = wB();
+ var t = CB();
return (0, B.useEffect)(() => (t(XFe(e)), () => {
t(ZFe(e));
})), null;
}
function dIe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = RU(), s = eIe(), c = Q((e) => MX(e, t)), l = Q((e) => FX(e, n)), u = Q((e) => MZ(e, "xAxis", t, o)), d = Q((e) => MZ(e, "yAxis", n, o)), f = QU();
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = LU(), s = eIe(), c = Q((e) => jX(e, t)), l = Q((e) => PX(e, n)), u = Q((e) => MZ(e, "xAxis", t, o)), d = Q((e) => MZ(e, "yAxis", n, o)), f = ZU();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
var p = lIe(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 = T2(T2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, cR(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = T2(T2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, sR(e)), {}, {
x1: g,
y1: _,
x2: v,
@@ -65668,7 +65668,7 @@ function dIe(e) {
x2: v,
y2: y
});
- return /*#__PURE__*/ B.createElement(e$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(fR, { className: qr("recharts-reference-line", i) }, aIe(r, b), /*#__PURE__*/ B.createElement(X$, E2({}, x, {
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(dR, { className: qr("recharts-reference-line", i) }, aIe(r, b), /*#__PURE__*/ B.createElement(X$, E2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ B.createElement(i1, { label: e.label }), e.children)));
@@ -65683,10 +65683,10 @@ var fIe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: zK.line
+ zIndex: RK.line
};
function D2(e) {
- var t = Iz(e, fIe);
+ var t = Fz(e, fIe);
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(uIe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
@@ -65848,7 +65848,7 @@ function SIe(e, t, n, r, i, a) {
function M2(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) || fG.isSsr) return hIe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || dG.isSsr) return hIe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? C$(u, {
fontSize: t,
letterSpacing: n
@@ -65864,7 +65864,7 @@ function M2(e, t, n) {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? mz(_.coordinate - g.coordinate) : 1, y = mIe(a, v, p);
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? pz(_.coordinate - g.coordinate) : 1, y = mIe(a, v, p);
return c === "equidistantPreserveStart" ? gIe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? _Ie(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? SIe(v, y, h, i, o, c === "preserveStartEnd") : xIe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
@@ -65882,7 +65882,7 @@ var CIe = (e) => {
return Math.round(l);
}
return 0;
-}, N2 = IH({
+}, N2 = FH({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -65891,7 +65891,7 @@ var CIe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = qW(i);
+ e[n][r] = KW(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
@@ -66000,12 +66000,12 @@ var L2 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: zK.axis
+ zIndex: RK.axis
};
function NIe(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 = I2(I2(I2({}, c), oR(s)), {}, { fill: "none" });
+ var l = I2(I2(I2({}, c), aR(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = I2(I2({}, l), {}, {
@@ -66023,7 +66023,7 @@ function NIe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ B.createElement("line", P2({}, l, { className: qr("recharts-cartesian-axis-line", dz(s, "className")) }));
+ return /*#__PURE__*/ B.createElement("line", P2({}, l, { className: qr("recharts-cartesian-axis-line", uz(s, "className")) }));
}
function PIe(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;
@@ -66078,8 +66078,8 @@ function LIe(e) {
return i;
}
function RIe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = wB();
- return (0, B.useEffect)(() => r == null || n == null ? Ez : (i(wIe({
+ var { ticks: t, axisType: n, axisId: r } = e, i = CB();
+ return (0, B.useEffect)(() => r == null || n == null ? Tz : (i(wIe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -66101,14 +66101,14 @@ function RIe(e) {
]), null;
}
var zIe = /*#__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 = M2(I2(I2({}, b), {}, { ticks: n }), v, y), T = oR(b), E = sR(r), D = I$(T.textAnchor) ? T.textAnchor : FIe(u, d), O = IIe(u, d), k = {};
+ 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 = M2(I2(I2({}, b), {}, { ticks: n }), v, y), T = aR(b), E = oR(r), D = I$(T.textAnchor) ? T.textAnchor : FIe(u, d), O = IIe(u, d), k = {};
typeof i == "object" && (k = i);
var A = I2(I2({}, T), {}, { fill: "none" }, k), j = w.map((e) => I2({ entry: e }, PIe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ B.createElement(fR, {
+ return /*#__PURE__*/ B.createElement(dR, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ B.createElement("line", P2({}, A, n, { className: qr("recharts-cartesian-axis-tick-line", dz(i, "className")) })));
+ }, i && /*#__PURE__*/ B.createElement("line", P2({}, A, n, { className: qr("recharts-cartesian-axis-tick-line", uz(i, "className")) })));
}), N = j.map((e, t) => {
var { entry: n, tick: i } = e, u = I2(I2({}, I2(I2(I2(I2({ verticalAnchor: O }, T), {}, {
textAnchor: D,
@@ -66121,10 +66121,10 @@ var zIe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ B.createElement(fR, P2({
+ return /*#__PURE__*/ B.createElement(dR, P2({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, Pz(x, n, t)), r && /*#__PURE__*/ B.createElement(LIe, {
+ }, Nz(x, n, t)), r && /*#__PURE__*/ B.createElement(LIe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
@@ -66134,7 +66134,7 @@ var zIe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ B.createElement(e$, { zIndex: zK.label }, /*#__PURE__*/ B.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ B.createElement(e$, { zIndex: RK.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));
@@ -66158,7 +66158,7 @@ var zIe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(e$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(fR, { className: qr("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(NIe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(e$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(dR, { className: qr("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(NIe, {
x: e.x,
y: e.y,
width: r,
@@ -66166,7 +66166,7 @@ var zIe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: oR(e)
+ otherSvgProps: aR(e)
}), /*#__PURE__*/ B.createElement(zIe, {
ref: g,
axisType: c,
@@ -66203,7 +66203,7 @@ var zIe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), R2 = /*#__PURE__*/ B.forwardRef((e, t) => {
- var n = Iz(e, L2);
+ var n = Fz(e, L2);
return /*#__PURE__*/ B.createElement(BIe, P2({}, n, { ref: t }));
});
R2.displayName = "CartesianAxis";
@@ -66307,7 +66307,7 @@ function U2(e) {
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 = oR(H2(n, VIe)) ?? {}, { offset: u } = l, d = H2(l, HIe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = aR(H2(n, VIe)) ?? {}, { offset: u } = l, d = H2(l, HIe);
r = /*#__PURE__*/ B.createElement("line", V2({}, d, {
x1: i,
y1: a,
@@ -66407,8 +66407,8 @@ function $Ie(e) {
}
var eLe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return _U(M2(B2(B2(B2({}, L2), n), {}, {
- ticks: vU(n, !0),
+ return gU(M2(B2(B2(B2({}, L2), n), {}, {
+ ticks: _U(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -66418,8 +66418,8 @@ var eLe = (e, t) => {
})), a.left, a.left + a.width, t);
}, tLe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return _U(M2(B2(B2(B2({}, L2), n), {}, {
- ticks: vU(n, !0),
+ return gU(M2(B2(B2(B2({}, L2), n), {}, {
+ ticks: _U(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -66439,16 +66439,16 @@ var eLe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: zK.grid
+ zIndex: RK.grid
};
function W2(e) {
- var t = eW(), n = tW(), r = $U(), i = B2(B2({}, Iz(e, nLe)), {}, {
+ var t = $U(), n = eW(), r = QU(), i = B2(B2({}, Fz(e, nLe)), {}, {
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 = RU(), h = Q((e) => HZ(e, "xAxis", a, m)), g = Q((e) => HZ(e, "yAxis", o, m));
- if (!fU(l) || !fU(u) || !Z(s) || !Z(c)) return null;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = LU(), h = Q((e) => HZ(e, "xAxis", a, m)), g = Q((e) => HZ(e, "yAxis", o, m));
+ if (!dU(l) || !dU(u) || !Z(s) || !Z(c)) return null;
var _ = i.verticalCoordinatesGenerator || eLe, v = i.horizontalCoordinatesGenerator || tLe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
@@ -66457,7 +66457,7 @@ function W2(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- VU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ BU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
@@ -66466,7 +66466,7 @@ function W2(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- VU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ BU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
return /*#__PURE__*/ B.createElement(e$, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(YIe, {
fill: i.fill,
@@ -66491,7 +66491,7 @@ function W2(e) {
W2.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var G2 = IH({
+var G2 = FH({
name: "errorBars",
initialState: {},
reducers: {
@@ -66545,7 +66545,7 @@ function K2(e) {
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
function q2(e, t) {
- var n = Q((t) => MX(t, e)), r = Q((e) => FX(e, t)), i = n?.allowDataOverflow ?? AX.allowDataOverflow, a = r?.allowDataOverflow ?? NX.allowDataOverflow;
+ var n = Q((t) => jX(t, e)), r = Q((e) => PX(e, t)), i = n?.allowDataOverflow ?? kX.allowDataOverflow, a = r?.allowDataOverflow ?? MX.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
@@ -66566,24 +66566,24 @@ function J2(e) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
var Y2 = (e, t, n, r) => qZ(e, "xAxis", t, r), X2 = (e, t, n, r) => KZ(e, "xAxis", t, r), Z2 = (e, t, n, r) => qZ(e, "yAxis", n, r), Q2 = (e, t, n, r) => KZ(e, "yAxis", n, r), dLe = $([
- nW,
+ tW,
Y2,
Z2,
X2,
Q2
-], (e, t, n, r, i) => gU(e, "xAxis") ? EU(t, r, !1) : EU(n, i, !1)), fLe = (e, t, n, r, i) => i;
+], (e, t, n, r, i) => hU(e, "xAxis") ? TU(t, r, !1) : TU(n, i, !1)), fLe = (e, t, n, r, i) => i;
function pLe(e) {
return e.type === "line";
}
var mLe = $([
- nW,
+ tW,
Y2,
Z2,
X2,
Q2,
- $([VX, fLe], (e, t) => e.filter(pLe).find((e) => e.id === t)),
+ $([BX, fLe], (e, t) => e.filter(pLe).find((e) => e.id === t)),
dLe,
- hK
+ mK
], (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")) {
@@ -66603,7 +66603,7 @@ var mLe = $([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function $2(e) {
- var t = sR(e), n = 3, r = 2;
+ var t = oR(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), {
@@ -66717,20 +66717,20 @@ var SLe = (e) => {
dataKey: t,
type: i,
color: r,
- value: OU(n, t),
+ value: DU(n, t),
payload: e
}];
}, CLe = /*#__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: Ez,
+ getPosition: Tz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: OU(o, t),
+ name: DU(o, t),
hide: s,
type: l,
color: r,
@@ -66762,7 +66762,7 @@ var TLe = (e, t, n) => {
].map((e) => `${e}px`).join(", ");
};
function ELe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = oR(r4(r, hLe));
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = aR(r4(r, hLe));
return /*#__PURE__*/ B.createElement(w0, {
points: n,
dot: i,
@@ -66795,7 +66795,7 @@ function DLe(e) {
return /*#__PURE__*/ B.createElement(c1, { value: t ? i : void 0 }, n);
}
function a4(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 = n4(n4({}, cR(r4(a, gLe))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = n4(n4({}, sR(r4(a, gLe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -66822,7 +66822,7 @@ function OLe(e) {
}
}
function kLe(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 = GG(o, "recharts-line-"), y = (0, B.useRef)(v), [b, x] = (0, B.useState)(!1), S = !b, C = (0, B.useCallback)(() => {
+ 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 = WG(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);
@@ -66832,7 +66832,7 @@ function kLe(e) {
return /*#__PURE__*/ B.createElement(DLe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ B.createElement(WG, {
+ }, n.children, /*#__PURE__*/ B.createElement(UG, {
animationId: v,
begin: l,
duration: u,
@@ -66842,20 +66842,20 @@ function kLe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = xz(D, T + D, e), u = Math.min(l, T), d = c ? s ? TLe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : i4(T, u) : s == null ? void 0 : String(s);
+ var l = bz(D, T + D, e), u = Math.min(l, T), d = c ? s ? TLe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : i4(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 n4(n4({}, t), {}, {
- x: xz(i.x, t.x, e),
- y: xz(i.y, t.y, e)
+ x: bz(i.x, t.x, e),
+ y: bz(i.y, t.y, e)
});
}
return f ? n4(n4({}, t), {}, {
- x: xz(p * 2, t.x, e),
- y: xz(m / 2, t.y, e)
+ x: bz(p * 2, t.x, e),
+ y: bz(m / 2, t.y, e)
}) : n4(n4({}, t), {}, {
x: t.x,
y: t.y
@@ -66892,13 +66892,13 @@ var jLe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: hU(e.payload, t)
+ errorVal: mU(e.payload, t)
}), MLe = 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 = qr("recharts-line", r), m = u, { r: h, strokeWidth: g } = $2(t), _ = t0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ B.createElement(e$, { zIndex: f }, /*#__PURE__*/ B.createElement(fR, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(J2, {
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: f }, /*#__PURE__*/ B.createElement(dR, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(J2, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -66941,11 +66941,11 @@ var jLe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: zK.line,
+ zIndex: RK.line,
type: "linear"
};
function NLe(e) {
- var t = Iz(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 = r4(t, _Le), { needClip: _ } = q2(p, m), v = O0(), y = rW(), b = RU(), x = Q((e) => mLe(e, p, m, b, h));
+ var t = Fz(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 = r4(t, _Le), { needClip: _ } = q2(p, m), v = O0(), y = nW(), b = LU(), x = Q((e) => mLe(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(MLe, e4({}, g, {
@@ -66975,20 +66975,20 @@ function NLe(e) {
function PLe(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 = hU(e, o);
+ var l = mU(e, o);
if (t === "horizontal") return {
- x: xU({
+ x: bU({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (Cz(l) ? null : r.scale.map(l)) ?? null,
+ y: (Sz(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = Cz(l) ? null : n.scale.map(l), d = xU({
+ var u = Sz(l) ? null : n.scale.map(l), d = bU({
axis: r,
ticks: a,
bandSize: s,
@@ -67004,7 +67004,7 @@ function PLe(e) {
}).filter(Boolean);
}
function FLe(e) {
- var t = Iz(e, o4), n = RU();
+ var t = Fz(e, o4), n = LU();
return /*#__PURE__*/ B.createElement(_0, {
id: t.id,
type: "line"
@@ -67031,7 +67031,7 @@ function FLe(e) {
isPanorama: n
}), /*#__PURE__*/ B.createElement(NLe, e4({}, t, { id: e }))));
}
-var s4 = /*#__PURE__*/ B.memo(FLe, tG);
+var s4 = /*#__PURE__*/ B.memo(FLe, eG);
s4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -67044,30 +67044,30 @@ function l4(e, t) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
var u4 = (e, t, n) => qZ(e, "xAxis", c4(e, t), n), d4 = (e, t, n) => KZ(e, "xAxis", c4(e, t), n), f4 = (e, t, n) => qZ(e, "yAxis", l4(e, t), n), p4 = (e, t, n) => KZ(e, "yAxis", l4(e, t), n), ILe = $([
- nW,
+ tW,
u4,
f4,
d4,
p4
-], (e, t, n, r, i) => gU(e, "xAxis") ? EU(t, r, !1) : EU(n, i, !1)), m4 = $([VX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), h4 = (e) => gU(nW(e), "xAxis") ? "yAxis" : "xAxis", LLe = (e, t) => h4(e) === "yAxis" ? l4(e, t) : c4(e, t), RLe = $([
- nW,
+], (e, t, n, r, i) => hU(e, "xAxis") ? TU(t, r, !1) : TU(n, i, !1)), m4 = $([BX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), h4 = (e) => hU(tW(e), "xAxis") ? "yAxis" : "xAxis", LLe = (e, t) => h4(e) === "yAxis" ? l4(e, t) : c4(e, t), RLe = $([
+ tW,
u4,
f4,
d4,
p4,
- $([m4, (e, t, n) => iZ(e, h4(e), LLe(e, t), n)], (e, t) => {
+ $([m4, (e, t, n) => rZ(e, h4(e), LLe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = aq(e);
+ var { stackId: n } = e, r = iq(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- gK,
+ hK,
ILe,
m4,
- nEe
+ rEe
], (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)) {
@@ -67182,20 +67182,20 @@ var GLe = (e) => {
dataKey: t,
type: a,
color: b4(r, i),
- value: OU(n, t),
+ value: DU(n, t),
payload: e
}];
}, KLe = /*#__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: Ez,
+ getPosition: Tz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: OU(o, t),
+ name: DU(o, t),
hide: s,
type: l,
color: b4(r, a),
@@ -67206,7 +67206,7 @@ var GLe = (e) => {
return /*#__PURE__*/ B.createElement(m0, { tooltipEntrySettings: d });
});
function qLe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = oR(r);
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = aR(r);
return /*#__PURE__*/ B.createElement(w0, {
points: n,
dot: a,
@@ -67239,8 +67239,8 @@ function JLe(e) {
return /*#__PURE__*/ B.createElement(c1, { value: t ? i : void 0 }, n);
}
function x4(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 = _4(a, zLe), p = oR(f), m = cR(f);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(fR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(EG, g4({}, m, {
+ 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 = _4(a, zLe), p = aR(f), m = sR(f);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(dR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(TG, g4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -67249,14 +67249,14 @@ function x4(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ B.createElement(EG, g4({}, p, {
+ })), c !== "none" && /*#__PURE__*/ B.createElement(TG, g4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(EG, g4({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(TG, g4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
@@ -67271,7 +67271,7 @@ function x4(e) {
}
function YLe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!dU(a) || !dU(o)) return null;
+ if (!uU(a) || !uU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ B.createElement("rect", {
x: 0,
@@ -67282,7 +67282,7 @@ function YLe(e) {
}
function XLe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!dU(a) || !dU(o)) return null;
+ if (!uU(a) || !uU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ B.createElement("rect", {
x: a < o ? a : a - s,
@@ -67306,10 +67306,10 @@ function ZLe(e) {
});
}
function QLe(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 = GG((0, B.useMemo)(() => ({
+ 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 = WG((0, B.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = iW(), [g, _] = (0, B.useState)(!1), v = !g, y = (0, B.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = rW(), [g, _] = (0, B.useState)(!1), v = !g, y = (0, B.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, B.useCallback)(() => {
typeof f == "function" && f(), _(!0);
@@ -67319,7 +67319,7 @@ function QLe(e) {
return /*#__PURE__*/ B.createElement(JLe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ B.createElement(WG, {
+ }, r.children, /*#__PURE__*/ B.createElement(UG, {
animationId: m,
begin: l,
duration: u,
@@ -67335,18 +67335,18 @@ function QLe(e) {
if (x[r]) {
var i = x[r];
return y4(y4({}, t), {}, {
- x: xz(i.x, t.x, e),
- y: xz(i.y, t.y, e)
+ x: bz(i.x, t.x, e),
+ y: bz(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? xz(S, s, e) : Cz(s) || hz(s) ? xz(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? bz(S, s, e) : Sz(s) || mz(s) ? bz(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
return y4(y4({}, t), {}, {
- x: xz(i.x, t.x, e),
- y: xz(i.y, t.y, e)
+ x: bz(i.x, t.x, e),
+ y: bz(i.y, t.y, e)
});
}
return t;
@@ -67359,13 +67359,13 @@ function QLe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(fR, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(ZLe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(dR, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(ZLe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ B.createElement(fR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(x4, {
+ }))), /*#__PURE__*/ B.createElement(dR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(x4, {
points: o,
baseLine: s,
needClip: t,
@@ -67389,7 +67389,7 @@ var eRe = class extends B.PureComponent {
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 = qr("recharts-area", r), h = d, { r: g, strokeWidth: _ } = $2(t), v = t0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ B.createElement(e$, { zIndex: p }, /*#__PURE__*/ B.createElement(fR, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(J2, {
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: p }, /*#__PURE__*/ B.createElement(dR, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(J2, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -67434,10 +67434,10 @@ var eRe = class extends B.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: zK.area
+ zIndex: RK.area
};
function nRe(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 = _4(e, BLe), g = rW(), _ = HQ(), { needClip: v } = q2(p, m), y = RU(), { points: b, isRange: x, baseLine: S } = Q((t) => RLe(t, e.id, y)) ?? {}, C = O0();
+ 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 = _4(e, BLe), g = nW(), _ = HQ(), { needClip: v } = q2(p, m), y = LU(), { points: b, isRange: x, baseLine: S } = Q((t) => RLe(t, e.id, y)) ?? {}, C = O0();
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(eRe, g4({}, h, {
@@ -67481,12 +67481,12 @@ function iRe(e) {
var a;
if (m) a = i[u + n];
else {
- var o = hU(e, r);
+ var o = mU(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && hU(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && mU(e, r) == null;
return g ? {
- x: xU({
+ x: bU({
axis: s,
ticks: d,
bandSize: p,
@@ -67498,7 +67498,7 @@ function iRe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: xU({
+ y: bU({
axis: c,
ticks: f,
bandSize: p,
@@ -67527,7 +67527,7 @@ function iRe(e) {
};
}
function aRe(e) {
- var t = Iz(e, tRe), n = RU();
+ var t = Fz(e, tRe), n = LU();
return /*#__PURE__*/ B.createElement(_0, {
id: t.id,
type: "area"
@@ -67550,7 +67550,7 @@ function aRe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: bU(t.stackId),
+ stackId: yU(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
@@ -67558,7 +67558,7 @@ function aRe(e) {
connectNulls: t.connectNulls
}), /*#__PURE__*/ B.createElement(nRe, g4({}, t, { id: e }))));
}
-var S4 = /*#__PURE__*/ B.memo(aRe, tG);
+var S4 = /*#__PURE__*/ B.memo(aRe, eG);
S4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
@@ -67588,23 +67588,23 @@ var cRe = 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) || Cz(n);
+ var i = Z(n) || Sz(n);
return i ? e(n, r) : (!i && sRe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, lRe = (e, t, n) => n, T4 = $([VX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), uRe = $([T4], (e) => e?.maxBarSize), dRe = (e, t, n, r) => r, fRe = $([
- nW,
- VX,
+}, lRe = (e, t, n) => n, T4 = $([BX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), uRe = $([T4], (e) => e?.maxBarSize), dRe = (e, t, n, r) => r, fRe = $([
+ tW,
+ BX,
c4,
l4,
lRe
], (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")), pRe = (e, t, n) => {
- var r = nW(e), i = c4(e, t), a = l4(e, t);
- if (i != null && a != null) return r === "horizontal" ? iZ(e, "yAxis", a, n) : iZ(e, "xAxis", i, n);
+ var r = tW(e), i = c4(e, t), a = l4(e, t);
+ if (i != null && a != null) return r === "horizontal" ? rZ(e, "yAxis", a, n) : rZ(e, "xAxis", i, n);
}, mRe = $([
fRe,
- MK,
+ jK,
(e, t) => {
- var n = nW(e), r = c4(e, t), i = l4(e, t);
+ var n = tW(e), r = c4(e, t), i = l4(e, t);
if (r != null && i != null) return n === "horizontal" ? zZ(e, "xAxis", r) : zZ(e, "yAxis", i);
}
], q0), hRe = (e, t, n) => {
@@ -67612,17 +67612,17 @@ var cRe = function(e) {
if (r == null) return 0;
var i = c4(e, t), a = l4(e, t);
if (i == null || a == null) return 0;
- var o = nW(e), s = kK(e), { maxBarSize: c } = r, l = Cz(c) ? s : c, u, d;
- return o === "horizontal" ? (u = qZ(e, "xAxis", i, n), d = KZ(e, "xAxis", i, n)) : (u = qZ(e, "yAxis", a, n), d = KZ(e, "yAxis", a, n)), EU(u, d, !0) ?? l ?? 0;
+ var o = tW(e), s = OK(e), { maxBarSize: c } = r, l = Sz(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = qZ(e, "xAxis", i, n), d = KZ(e, "xAxis", i, n)) : (u = qZ(e, "yAxis", a, n), d = KZ(e, "yAxis", a, n)), TU(u, d, !0) ?? l ?? 0;
}, E4 = (e, t, n) => {
- var r = nW(e), i = c4(e, t), a = l4(e, t);
+ var r = tW(e), i = c4(e, t), a = l4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = qZ(e, "xAxis", i, n), s = KZ(e, "xAxis", i, n)) : (o = qZ(e, "yAxis", a, n), s = KZ(e, "yAxis", a, n)), EU(o, s);
+ return r === "horizontal" ? (o = qZ(e, "xAxis", i, n), s = KZ(e, "xAxis", i, n)) : (o = qZ(e, "yAxis", a, n), s = KZ(e, "yAxis", a, n)), TU(o, s);
}
}, gRe = $([
+ FU,
IU,
- LU,
(e, t, n) => {
var r = c4(e, t);
if (r != null) return qZ(e, "xAxis", r, n);
@@ -67641,15 +67641,15 @@ var cRe = function(e) {
},
$([$([
mRe,
+ OK,
kK,
AK,
- jK,
hRe,
E4,
uRe
], X0), T4], Q0),
- nW,
- gK,
+ tW,
+ hK,
E4,
$([pRe, T4], Z0),
T4,
@@ -67706,7 +67706,7 @@ function yRe(e, t) {
var O4 = /*#__PURE__*/ (0, B.createContext)(void 0), bRe = (e) => {
var t = (0, B.useContext)(O4);
if (t != null) return t.stackId;
- if (e != null) return bU(e);
+ if (e != null) return yU(e);
}, xRe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, SRe = (e) => {
var t = (0, B.useContext)(O4);
if (t != null) {
@@ -67715,7 +67715,7 @@ var O4 = /*#__PURE__*/ (0, B.createContext)(void 0), bRe = (e) => {
}
}, k4 = (e) => {
var { index: t } = e, n = vRe(e, _Re), r = SRe(t);
- return /*#__PURE__*/ B.createElement(fR, D4({
+ return /*#__PURE__*/ B.createElement(dR, D4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
@@ -67809,20 +67809,20 @@ var jRe = (e) => {
dataKey: t,
type: i,
color: r,
- value: OU(n, t),
+ value: DU(n, t),
payload: e
}];
}, MRe = /*#__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: Ez,
+ getPosition: Tz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: OU(a, t),
+ name: DU(a, t),
hide: o,
type: c,
color: i,
@@ -67835,14 +67835,14 @@ var jRe = (e) => {
function NRe(e) {
var t = Q(NQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = N4(a, CRe), u = d0(o, r, a.id), d = f0(s), f = p0(c, r, a.id);
if (!i || n == null) return null;
- var p = sR(i);
- return /*#__PURE__*/ B.createElement(e$, { zIndex: d2(i, zK.barBackground) }, n.map((e, n) => {
+ var p = oR(i);
+ return /*#__PURE__*/ B.createElement(e$, { zIndex: d2(i, RK.barBackground) }, n.map((e, n) => {
var { value: a, background: o, tooltipPosition: s } = e, c = N4(e, wRe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = M4(M4(M4(M4(M4({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), Pz(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), Nz(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -67892,7 +67892,7 @@ function FRe(e) {
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ B.createElement(e$, { zIndex: zK.activeBar }, /*#__PURE__*/ B.createElement(k4, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ B.createElement(e$, { zIndex: RK.activeBar }, /*#__PURE__*/ B.createElement(k4, { index: i.originalDataIndex }, v)) : v;
}
function IRe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
@@ -67904,12 +67904,12 @@ function IRe(e) {
}));
}
function LRe(e) {
- var { data: t, props: n } = e, r = oR(n) ?? {}, { id: i } = r, a = N4(r, TRe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = N4(n, ERe), p = d0(l, s, i), m = f0(d), h = p0(u, s, i);
+ var { data: t, props: n } = e, r = aR(n) ?? {}, { id: i } = r, a = N4(r, TRe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = N4(n, ERe), p = d0(l, s, i), m = f0(d), h = p0(u, s, i);
return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(k4, A4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, Pz(f, e, t), {
+ }, Nz(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
@@ -67929,7 +67929,7 @@ function LRe(e) {
})))) : null;
}
function RRe(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 = GG(t, "recharts-bar-"), [p, m] = (0, B.useState)(!1), h = !p, g = (0, B.useCallback)(() => {
+ 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 = WG(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);
@@ -67937,7 +67937,7 @@ function RRe(e) {
return /*#__PURE__*/ B.createElement(PRe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ B.createElement(WG, {
+ }, /*#__PURE__*/ B.createElement(UG, {
animationId: f,
begin: o,
duration: s,
@@ -67950,25 +67950,25 @@ function RRe(e) {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
if (r) return M4(M4({}, t), {}, {
- x: xz(r.x, t.x, e),
- y: xz(r.y, t.y, e),
- width: xz(r.width, t.width, e),
- height: xz(r.height, t.height, e)
+ x: bz(r.x, t.x, e),
+ y: bz(r.y, t.y, e),
+ width: bz(r.width, t.width, e),
+ height: bz(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = xz(0, t.height, e), o = xz(t.stackedBarStart, t.y, e);
+ var a = bz(0, t.height, e), o = bz(t.stackedBarStart, t.y, e);
return M4(M4({}, t), {}, {
y: o,
height: a
});
}
- var s = xz(0, t.width, e), c = xz(t.stackedBarStart, t.x, e);
+ var s = bz(0, t.width, e), c = bz(t.stackedBarStart, t.x, e);
return M4(M4({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(fR, null, /*#__PURE__*/ B.createElement(LRe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(dR, null, /*#__PURE__*/ B.createElement(LRe, {
props: t,
data: a
}));
@@ -67987,21 +67987,21 @@ var P4 = 0, BRe = (e, t) => {
x: e.x,
y: e.y,
value: n,
- errorVal: hU(e, t)
+ errorVal: mU(e, t)
};
}, VRe = 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 = qr("recharts-bar", r), u = c;
- return /*#__PURE__*/ B.createElement(fR, {
+ return /*#__PURE__*/ B.createElement(dR, {
className: l,
id: c
}, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(J2, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ B.createElement(fR, {
+ })), /*#__PURE__*/ B.createElement(dR, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
}, /*#__PURE__*/ B.createElement(NRe, {
@@ -68024,10 +68024,10 @@ var P4 = 0, BRe = (e, t) => {
minPointSize: P4,
xAxisId: 0,
yAxisId: 0,
- zIndex: zK.bar
+ zIndex: RK.bar
};
function URe(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 } = q2(t, n), f = rW(), p = RU(), m = e0(e.children, _$), h = Q((t) => gRe(t, e.id, p, m));
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = q2(t, n), f = nW(), p = LU(), m = e0(e.children, _$), h = Q((t) => gRe(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(K2, {
@@ -68053,19 +68053,19 @@ function URe(e) {
})));
}
function WRe(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 = CU({ numericAxis: _ }), b = _.scale.map(y);
+ 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 = SU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = yU(E, v);
- } else _ = hU(e, n), Array.isArray(_) || (_ = [y, _]);
+ _ = vU(E, v);
+ } else _ = mU(e, n), Array.isArray(_) || (_ = [y, _]);
var D = cRe(r, P4)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = SU({
+ x = xU({
axis: s,
ticks: l,
bandSize: o,
@@ -68074,19 +68074,19 @@ function WRe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = hz(A) ? 0 : A, T = {
+ if (w = mz(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 = mz(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = pz(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = s.scale.map(_[0]), N = s.scale.map(_[1]);
if (M == null || N == null) return null;
- if (x = M, S = SU({
+ if (x = M, S = xU({
axis: c,
ticks: u,
bandSize: o,
@@ -68099,7 +68099,7 @@ function WRe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var ee = mz(C || D) * (Math.abs(D) - Math.abs(C));
+ var ee = pz(C || D) * (Math.abs(D) - Math.abs(C));
C += ee;
}
}
@@ -68122,7 +68122,7 @@ function WRe(e) {
}).filter(Boolean);
}
function GRe(e) {
- var t = Iz(e, HRe), n = bRe(t.stackId), r = RU();
+ var t = Fz(e, HRe), n = bRe(t.stackId), r = LU();
return /*#__PURE__*/ B.createElement(_0, {
id: t.id,
type: "bar"
@@ -68153,7 +68153,7 @@ function GRe(e) {
hasCustomShape: t.shape != null
}), /*#__PURE__*/ B.createElement(e$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(URe, A4({}, t, { id: e })))));
}
-var F4 = /*#__PURE__*/ B.memo(GRe, tG);
+var F4 = /*#__PURE__*/ B.memo(GRe, eG);
F4.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
@@ -68182,7 +68182,7 @@ function L4(e, t) {
function R4(e, t) {
if (e === t) return !0;
var { domain: n, range: r } = e, i = I4(e, KRe), { domain: a, range: o } = t, s = I4(t, qRe);
- return !L4(n, a) || !L4(r, o) ? !1 : tG(i, s);
+ return !L4(n, a) || !L4(r, o) ? !1 : eG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
@@ -68262,7 +68262,7 @@ function tze(e, t) {
return n;
}
function nze(e) {
- var t = wB(), n = (0, B.useRef)(null), r = iW(), { type: i } = e, a = H4(e, YRe), o = UK(r, "xAxis", i), s = (0, B.useMemo)(() => {
+ var t = CB(), n = (0, B.useRef)(null), r = rW(), { type: i } = e, a = H4(e, YRe), o = HK(r, "xAxis", i), s = (0, B.useMemo)(() => {
if (o != null) return V4(V4({}, a), {}, { type: o });
}, [a, o]);
return (0, B.useLayoutEffect)(() => {
@@ -68275,7 +68275,7 @@ function nze(e) {
}, [t]), null;
}
var rze = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(LU), i = RU(), a = "xAxis", o = Q((e) => WZ(e, a, t, i)), s = Q((e) => LZ(e, t)), c = Q((e) => wke(e, t)), l = Q((e) => jX(e, t));
+ var { xAxisId: t, className: n } = e, r = Q(IU), i = LU(), a = "xAxis", o = Q((e) => WZ(e, a, t, i)), s = Q((e) => LZ(e, t)), c = Q((e) => wke(e, t)), l = Q((e) => AX(e, t));
if (s == null || c == null || l == null) return null;
var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = H4(e, XRe), { id: m, scale: h } = l, g = H4(l, ZRe);
return /*#__PURE__*/ B.createElement(R2, z4({}, p, g, {
@@ -68290,31 +68290,31 @@ var rze = (e) => {
axisId: t
}));
}, ize = {
- allowDataOverflow: AX.allowDataOverflow,
- allowDecimals: AX.allowDecimals,
- allowDuplicatedCategory: AX.allowDuplicatedCategory,
- angle: AX.angle,
+ allowDataOverflow: kX.allowDataOverflow,
+ allowDecimals: kX.allowDecimals,
+ allowDuplicatedCategory: kX.allowDuplicatedCategory,
+ angle: kX.angle,
axisLine: L2.axisLine,
- height: AX.height,
+ height: kX.height,
hide: !1,
- includeHidden: AX.includeHidden,
- interval: AX.interval,
+ includeHidden: kX.includeHidden,
+ interval: kX.interval,
label: !1,
- minTickGap: AX.minTickGap,
- mirror: AX.mirror,
- orientation: AX.orientation,
- padding: AX.padding,
- reversed: AX.reversed,
- scale: AX.scale,
- tick: AX.tick,
- tickCount: AX.tickCount,
+ minTickGap: kX.minTickGap,
+ mirror: kX.mirror,
+ orientation: kX.orientation,
+ padding: kX.padding,
+ reversed: kX.reversed,
+ scale: kX.scale,
+ tick: kX.tick,
+ tickCount: kX.tickCount,
tickLine: L2.tickLine,
tickSize: L2.tickSize,
- type: AX.type,
- niceTicks: AX.niceTicks,
+ type: kX.type,
+ niceTicks: kX.niceTicks,
xAxisId: 0
}, U4 = /*#__PURE__*/ B.memo((e) => {
- var t = Iz(e, ize);
+ var t = Fz(e, ize);
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(nze, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
@@ -68422,7 +68422,7 @@ function dze(e, t) {
return n;
}
function fze(e) {
- var t = wB(), n = (0, B.useRef)(null), r = iW(), { type: i } = e, a = q4(e, aze), o = UK(r, "yAxis", i), s = (0, B.useMemo)(() => {
+ var t = CB(), n = (0, B.useRef)(null), r = rW(), { type: i } = e, a = q4(e, aze), o = HK(r, "yAxis", i), s = (0, B.useMemo)(() => {
if (o != null) return K4(K4({}, a), {}, { type: o });
}, [o, a]);
return (0, B.useLayoutEffect)(() => {
@@ -68435,7 +68435,7 @@ function fze(e) {
}, [t]), null;
}
function pze(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(LU), c = RU(), l = wB(), u = "yAxis", d = Q((e) => RZ(e, t)), f = Q((e) => Tke(e, t)), p = Q((e) => WZ(e, u, t, c)), m = Q((e) => PX(e, t));
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(IU), c = LU(), l = CB(), u = "yAxis", d = Q((e) => RZ(e, t)), f = Q((e) => Tke(e, t)), p = Q((e) => WZ(e, u, t, c)), m = Q((e) => NX(e, t));
if ((0, B.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || e1(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {
var e = a.current;
@@ -68473,31 +68473,31 @@ function pze(e) {
}));
}
var mze = {
- allowDataOverflow: NX.allowDataOverflow,
- allowDecimals: NX.allowDecimals,
- allowDuplicatedCategory: NX.allowDuplicatedCategory,
- angle: NX.angle,
+ allowDataOverflow: MX.allowDataOverflow,
+ allowDecimals: MX.allowDecimals,
+ allowDuplicatedCategory: MX.allowDuplicatedCategory,
+ angle: MX.angle,
axisLine: L2.axisLine,
hide: !1,
- includeHidden: NX.includeHidden,
- interval: NX.interval,
+ includeHidden: MX.includeHidden,
+ interval: MX.interval,
label: !1,
- minTickGap: NX.minTickGap,
- mirror: NX.mirror,
- orientation: NX.orientation,
- padding: NX.padding,
- reversed: NX.reversed,
- scale: NX.scale,
- tick: NX.tick,
- tickCount: NX.tickCount,
+ minTickGap: MX.minTickGap,
+ mirror: MX.mirror,
+ orientation: MX.orientation,
+ padding: MX.padding,
+ reversed: MX.reversed,
+ scale: MX.scale,
+ tick: MX.tick,
+ tickCount: MX.tickCount,
tickLine: L2.tickLine,
tickSize: L2.tickSize,
- type: NX.type,
- niceTicks: NX.niceTicks,
- width: NX.width,
+ type: MX.type,
+ niceTicks: MX.niceTicks,
+ width: MX.width,
yAxisId: 0
}, J4 = /*#__PURE__*/ B.memo((e) => {
- var t = Iz(e, mze);
+ var t = Fz(e, mze);
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(fze, {
interval: t.interval,
id: t.yAxisId,
@@ -68529,13 +68529,13 @@ var mze = {
J4.displayName = "YAxis";
var Y4 = $([
(e, t) => t,
- nW,
- nq,
- uq,
+ tW,
+ tq,
+ lq,
EQ,
OQ,
xAe,
- IU
+ FU
], OAe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
@@ -68559,7 +68559,7 @@ function X4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var Z4 = DH("mouseClick"), Q4 = sU();
+var Z4 = EH("mouseClick"), Q4 = oU();
Q4.startListening({
actionCreator: Z4,
effect: (e, t) => {
@@ -68571,7 +68571,7 @@ Q4.startListening({
}));
}
});
-var $4 = DH("mouseMove"), e3 = sU(), t3 = null, n3 = null, r3 = null;
+var $4 = EH("mouseMove"), e3 = oU(), t3 = null, n3 = null, r3 = null;
e3.startListening({
actionCreator: $4,
effect: (e, t) => {
@@ -68619,17 +68619,17 @@ var i3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, a3 = IH({
+}, a3 = FH({
name: "rootProps",
initialState: i3,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? i3.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;
} }
-}), _ze = a3.reducer, { updateOptions: vze } = a3.actions, o3 = IH({
+}), _ze = a3.reducer, { updateOptions: vze } = a3.actions, o3 = FH({
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: yze } = o3.actions, bze = o3.reducer, s3 = DH("keyDown"), c3 = DH("focus"), l3 = DH("blur"), u3 = sU(), d3 = null, f3 = null, p3 = null;
+}), { updatePolarOptions: yze } = o3.actions, bze = o3.reducer, s3 = EH("keyDown"), c3 = EH("focus"), l3 = EH("blur"), u3 = oU(), d3 = null, f3 = null, p3 = null;
u3.startListening({
actionCreator: s3,
effect: (e, t) => {
@@ -68642,7 +68642,7 @@ u3.startListening({
if (e.rootProps.accessibilityLayer === !1) return;
var { keyboardInteraction: n } = e.tooltip, r = p3;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = lQ(n, bQ(e), nZ(e), wQ(e)), a = i == null ? -1 : Number(i);
+ var i = lQ(n, bQ(e), tZ(e), wQ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
var o = OQ(e);
if (r === "Enter") {
@@ -68717,7 +68717,7 @@ function m3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var h3 = DH("externalEvent"), g3 = sU(), _3 = /* @__PURE__ */ new Map(), v3 = /* @__PURE__ */ new Map(), y3 = /* @__PURE__ */ new Map();
+var h3 = EH("externalEvent"), g3 = oU(), _3 = /* @__PURE__ */ new Map(), v3 = /* @__PURE__ */ new Map(), y3 = /* @__PURE__ */ new Map();
g3.startListening({
actionCreator: h3,
effect: (e, t) => {
@@ -68778,7 +68778,7 @@ var xze = $([
if (i != null) return i(t);
}
}
-}), b3 = DH("touchMove"), x3 = sU(), S3 = null, C3 = null, w3 = null, T3 = null;
+}), b3 = EH("touchMove"), x3 = oU(), S3 = null, C3 = null, w3 = null, T3 = null;
x3.startListening({
actionCreator: b3,
effect: (e, t) => {
@@ -68811,7 +68811,7 @@ x3.startListening({
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(eCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = yQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(tCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = yQ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
var { dataKey: u } = l, d = xze(e, s, c);
t.dispatch(tQ({
@@ -68845,21 +68845,21 @@ var E3 = {
"scroll",
"wheel"
]
-}, D3 = IH({
+}, D3 = FH({
name: "eventSettings",
initialState: E3,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = qW(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = KW(t.payload.throttledEvents));
} }
-}), { setEventSettings: Sze } = D3.actions, Cze = D3.reducer, wze = uV({
+}), { setEventSettings: Sze } = D3.actions, Cze = D3.reducer, wze = lV({
brush: VFe,
cartesianAxis: OPe,
chartData: tje,
errorBars: oLe,
eventSettings: Cze,
graphicalItems: iPe,
- layout: VSe,
- legend: zCe,
+ layout: HSe,
+ legend: BCe,
options: XAe,
polarAxis: JMe,
polarOptions: bze,
@@ -68870,7 +68870,7 @@ var E3 = {
zIndex: VAe
}), Tze = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return pSe({
+ return mSe({
reducer: wze,
preloadedState: e,
middleware: (e) => e({
@@ -68889,9 +68889,9 @@ var E3 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(PH({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(NH({ type: "raf" }));
},
- devTools: fG.devToolsEnabled && {
+ devTools: dG.devToolsEnabled && {
serialize: { replacer: gze },
name: `recharts-${t}`
}
@@ -68900,11 +68900,11 @@ var E3 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function O3(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = RU(), a = (0, B.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = LU(), a = (0, B.useRef)(null);
if (i) return n;
a.current ??= Tze(t, r);
- var o = xB;
- return /*#__PURE__*/ B.createElement($Ce, {
+ var o = bB;
+ return /*#__PURE__*/ B.createElement(ewe, {
context: o,
store: a.current
}, n);
@@ -68912,9 +68912,9 @@ function O3(e) {
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
function Eze(e) {
- var { layout: t, margin: n } = e, r = wB(), i = RU();
+ var { layout: t, margin: n } = e, r = CB(), i = LU();
return (0, B.useEffect)(() => {
- i || (r(RSe(t)), r(LSe(n)));
+ i || (r(zSe(t)), r(RSe(n)));
}, [
r,
i,
@@ -68922,25 +68922,25 @@ function Eze(e) {
n
]), null;
}
-var k3 = /*#__PURE__*/ (0, B.memo)(Eze, tG);
+var k3 = /*#__PURE__*/ (0, B.memo)(Eze, eG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function A3(e) {
- var t = wB();
+ var t = CB();
return (0, B.useEffect)(() => {
t(vze(e));
}, [t, e]), null;
}
var j3 = /*#__PURE__*/ (0, B.memo)((e) => {
- var t = wB();
+ var t = CB();
return (0, B.useEffect)(() => {
t(Sze(e));
}, [t, e]), null;
-}, tG);
+}, eG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function M3(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = wB();
+ var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = CB();
return (0, B.useLayoutEffect)(() => (r.current && i(zAe({
zIndex: t,
element: r.current,
@@ -69009,10 +69009,10 @@ var Aze = {
height: "100%",
display: "block"
}, jze = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = eW(), r = tW(), i = gG();
- if (!fU(n) || !fU(r)) return null;
+ var n = $U(), r = eW(), i = hG();
+ if (!dU(n) || !dU(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(uR, P3({}, 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(lR, P3({}, o, {
title: s,
desc: c,
role: u,
@@ -69023,10 +69023,10 @@ var Aze = {
ref: t
}), a);
}), Mze = (e) => {
- var { children: t } = e, n = Q(BU);
+ var { children: t } = e, n = Q(zU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ B.createElement(uR, {
+ return /*#__PURE__*/ B.createElement(lR, {
width: r,
height: i,
x: o,
@@ -69034,16 +69034,16 @@ var Aze = {
}, t);
}, F3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { children: n } = e, r = Oze(e, Dze);
- return RU() ? /*#__PURE__*/ B.createElement(Mze, null, /*#__PURE__*/ B.createElement(N3, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(jze, P3({ ref: t }, r), /*#__PURE__*/ B.createElement(N3, { isPanorama: !1 }, n));
+ return LU() ? /*#__PURE__*/ B.createElement(Mze, null, /*#__PURE__*/ B.createElement(N3, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(jze, P3({ ref: t }, r), /*#__PURE__*/ B.createElement(N3, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
function Nze() {
- var e = wB(), [t, n] = (0, B.useState)(null), r = Q($Se);
+ var e = CB(), [t, n] = (0, B.useState)(null), r = Q(eCe);
return (0, B.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- dU(n) && n !== r && e(BSe(n));
+ uU(n) && n !== r && e(VSe(n));
}
}, [
t,
@@ -69142,7 +69142,7 @@ var zze = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}, [t, a]);
return (0, B.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(sW, {
+ }, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(oW, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ B.createElement("div", L3({ ref: o }, e)));
@@ -69164,13 +69164,13 @@ var zze = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(sW, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(oW, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ B.createElement("div", L3({ ref: s }, e)));
}), Vze = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(sW, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(oW, {
width: n,
height: r
}), /*#__PURE__*/ B.createElement("div", L3({ ref: t }, e)));
@@ -69180,7 +69180,7 @@ var zze = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(sW, {
+ })) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(oW, {
width: n,
height: r
}), /*#__PURE__*/ B.createElement("div", L3({ ref: t }, e)));
@@ -69189,7 +69189,7 @@ function Uze(e) {
return e ? zze : Hze;
}
var Wze = /*#__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 = wB(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = Nze(), D = YU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {
+ 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 = CB(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = Nze(), D = JU(), 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,
@@ -69262,7 +69262,7 @@ var Wze = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
reactEvent: e
}));
}, [x, p]), se = Uze(v);
- return /*#__PURE__*/ B.createElement(i$.Provider, { value: S }, /*#__PURE__*/ B.createElement(pR.Provider, { value: w }, /*#__PURE__*/ B.createElement(se, {
+ return /*#__PURE__*/ B.createElement(i$.Provider, { value: S }, /*#__PURE__*/ B.createElement(fR.Provider, { value: w }, /*#__PURE__*/ B.createElement(se, {
width: O ?? g?.width,
height: k ?? g?.height,
className: qr("recharts-wrapper", r),
@@ -69318,8 +69318,8 @@ function qze(e, t) {
return n;
}
var z3 = /*#__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 = oR(Kze(e, Gze));
- return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(sW, {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = aR(Kze(e, Gze));
+ return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(oW, {
width: n,
height: r
}), /*#__PURE__*/ B.createElement(F3, {
@@ -69420,7 +69420,7 @@ var Qze = Jze({
stackOffset: "none",
syncMethod: "index"
}, E3), H3 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = Iz(e.categoricalChartProps, Qze), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = Fz(e.categoricalChartProps, Qze), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -69467,7 +69467,7 @@ var Qze = Jze({
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
function nBe(e) {
- var t = wB();
+ var t = CB();
return (0, B.useEffect)(() => {
t(yze(e));
}, [t, e]), null;
@@ -69565,7 +69565,7 @@ var K3 = oBe({
innerRadius: 0,
outerRadius: "80%"
}, E3), q3 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = Iz(e.categoricalChartProps, K3), { layout: r } = n, i = iBe(n, rBe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = Fz(e.categoricalChartProps, K3), { layout: r } = n, i = iBe(n, rBe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -69652,7 +69652,7 @@ var pBe = ["axis"], mBe = Y3(Y3({}, K3), {}, {
startAngle: 90,
endAngle: -270
}), hBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = Iz(e, mBe);
+ var n = Fz(e, mBe);
return /*#__PURE__*/ B.createElement(q3, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
@@ -69719,7 +69719,7 @@ var xBe = ["axis", "item"], SBe = Z3(Z3({}, K3), {}, {
startAngle: 0,
endAngle: 360
}), CBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = Iz(e, SBe);
+ var n = Fz(e, SBe);
return /*#__PURE__*/ B.createElement(q3, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
@@ -69766,7 +69766,7 @@ function r6({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, U.jsx)(XU, {
+ /* @__PURE__ */ (0, U.jsx)(YU, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -69962,7 +69962,7 @@ function MBe(e, t) {
...n
};
}
-var d6 = aG, f6 = () => null, p6 = {
+var d6 = iG, f6 = () => null, p6 = {
stiffness: 300,
damping: 35,
mass: .8
@@ -70072,16 +70072,16 @@ function PBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
f,
A
]);
- let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = ZE(N), P = ZE(ee);
+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = LE(N), P = LE(ee);
te.get() !== N && te.set(N), P.get() !== ee && P.set(ee);
- let F = tD(te, p6), ne = tD(P, p6), I = $E(F, (e) => `${e}%`), re = $E(ne, (e) => `${e}%`), L = $E(F, (e) => `${e}%`), ie = $E(ne, (e) => `${Math.max(0, 100 - e)}%`), ae = ZE(`${Math.max(0, ee - N)}%`), oe = (0, B.useCallback)(() => {
+ let F = VE(te, p6), ne = VE(P, p6), I = zE(F, (e) => `${e}%`), re = zE(ne, (e) => `${e}%`), L = zE(F, (e) => `${e}%`), ie = zE(ne, (e) => `${Math.max(0, 100 - e)}%`), ae = LE(`${Math.max(0, ee - N)}%`), oe = (0, B.useCallback)(() => {
ae.set(`${Math.max(0, ne.get() - F.get())}%`);
}, [
F,
ne,
ae
]);
- XE(F, "change", oe), XE(ne, "change", oe);
+ IE(F, "change", oe), IE(ne, "change", oe);
let se = (0, B.useCallback)((t) => {
if (!r) return String(t);
let n = e[t]?.[r];
@@ -70116,15 +70116,15 @@ function PBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
barRadius: u
})
}),
- /* @__PURE__ */ (0, U.jsx)(nD.div, {
+ /* @__PURE__ */ (0, U.jsx)(HE.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",
style: { width: L }
}),
- /* @__PURE__ */ (0, U.jsx)(nD.div, {
+ /* @__PURE__ */ (0, U.jsx)(HE.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",
style: { width: ie }
}),
- /* @__PURE__ */ (0, U.jsx)(nD.div, {
+ /* @__PURE__ */ (0, U.jsx)(HE.div, {
className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",
style: {
left: I,
@@ -70149,7 +70149,7 @@ function PBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}
function m6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
- return /* @__PURE__ */ (0, U.jsxs)(nD.div, {
+ return /* @__PURE__ */ (0, U.jsxs)(HE.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, U.jsx)("div", {
@@ -70229,7 +70229,7 @@ function FBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, U.jsx)(XU, {
+ if (r === "line") return /* @__PURE__ */ (0, U.jsx)(YU, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, U.jsxs)(eBe, {
@@ -70256,7 +70256,7 @@ function FBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, U.jsx)(XU, {
+ return /* @__PURE__ */ (0, U.jsx)(YU, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, U.jsxs)(U3, {
@@ -70285,7 +70285,7 @@ function FBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, U.jsx)(XU, {
+ return /* @__PURE__ */ (0, U.jsx)(YU, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, U.jsxs)(_Be, {
@@ -70638,7 +70638,7 @@ function y6({ config: e, data: t, children: n, className: r, chartProps: i, stac
});
}
function WBe({ 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 } = v6(), b = (0, B.useId)().replace(/:/g, ""), x = xce();
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = v6(), b = (0, B.useId)().replace(/:/g, ""), x = oce();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -70784,7 +70784,7 @@ var b6 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)($G, {
+ ] : c, A = /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(QG, {
x: t,
y: n,
width: r,
@@ -70795,7 +70795,7 @@ var b6 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, U.jsx)($G, {
+ }), C && /* @__PURE__ */ (0, U.jsx)(QG, {
x: t,
y: n - 4,
width: r,
@@ -70806,10 +70806,10 @@ var b6 = (e) => {
return /* @__PURE__ */ (0, U.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, U.jsx)($G, {
+ children: [/* @__PURE__ */ (0, U.jsx)(QG, {
...e,
fill: "transparent"
- }), w ? /* @__PURE__ */ (0, U.jsx)(nD.g, {
+ }), w ? /* @__PURE__ */ (0, U.jsx)(HE.g, {
initial: w.initial,
animate: w.animate,
transition: w.transition,
@@ -71247,7 +71247,7 @@ var lVe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, U.jsxs)(U.Fr
height: "1",
x: "0",
y: "0",
- children: /* @__PURE__ */ (0, U.jsx)(nD.rect, {
+ children: /* @__PURE__ */ (0, U.jsx)(HE.rect, {
y: "0",
width: "1",
height: "1",
@@ -71280,7 +71280,7 @@ var lVe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, U.jsxs)(U.Fr
y6.Bar = WBe, y6.XAxis = GBe, y6.YAxis = KBe, y6.Grid = qBe, y6.Tooltip = JBe, y6.Legend = YBe, y6.Brush = f6;
//#endregion
//#region src/react/charts/chart-card.tsx
-var x6 = `${bT({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var x6 = `${oT({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function S6({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, U.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -71667,7 +71667,7 @@ function B6({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, U.jsx)(qw, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, U.jsx)(Nw, { "aria-hidden": !0 })
}) : null]
});
}
@@ -71757,7 +71757,7 @@ function xVe({ dataKey: e, cornerRadius: t = V6, barSize: n = H6, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, U.jsx)(uK, {
+ return /* @__PURE__ */ (0, U.jsx)(lK, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -71856,7 +71856,7 @@ var OVe = () => /* @__PURE__ */ (0, U.jsx)(v2, {
isAnimationActive: !0,
animationDuration: U6,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, U.jsx)(uK, {
+ shape: (e) => /* @__PURE__ */ (0, U.jsx)(lK, {
...e,
fill: "currentColor",
fillOpacity: .25
@@ -71914,14 +71914,14 @@ function q6({ title: e, rows: t, unit: n = "个视频" }) {
data: f,
nameKey: "slice",
config: dVe(s.map((e) => e.name)),
- max: Qye(s.map((e) => e.value)),
+ max: $ye(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, U.jsx)(K6.RadialBar, {
dataKey: "value",
- barSize: $ye(s.length),
+ barSize: ebe(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, U.jsx)(uK, {
+ shape: (e) => /* @__PURE__ */ (0, U.jsx)(lK, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -71970,7 +71970,7 @@ function q6({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var jVe = 10, J6 = C6[5], MVe = C6[4], NVe = `${bT()} flex flex-col gap-4`, PVe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", FVe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", IVe = "开始播放后,这里会显示最近的真实观看证据。", LVe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", RVe = "添加媒体文件夹后,这里会显示存储空间。";
+var jVe = 10, J6 = C6[5], MVe = C6[4], NVe = `${oT()} flex flex-col gap-4`, PVe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", FVe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", IVe = "开始播放后,这里会显示最近的真实观看证据。", LVe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", RVe = "添加媒体文件夹后,这里会显示存储空间。";
function Y6({ term: e, value: t }) {
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -71992,10 +71992,10 @@ function X6({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, U.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [$L(t, n), "%"]
+ children: [QL(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, U.jsx)(NT, {
+ }), /* @__PURE__ */ (0, U.jsx)(yT, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
@@ -72058,14 +72058,14 @@ function zVe({ data: e, configurable: t, openMediaSettings: n }) {
unit: "个视频",
series: "视频",
color: J6,
- rows: rbe(e.by_length)
+ rows: ibe(e.by_length)
}),
/* @__PURE__ */ (0, U.jsx)(M6, {
title: "画质",
unit: "个视频",
series: "视频",
color: J6,
- rows: nR(e.by_quality)
+ rows: tR(e.by_quality)
}),
/* @__PURE__ */ (0, U.jsx)(M6, {
title: "文件类型",
@@ -72073,19 +72073,19 @@ function zVe({ data: e, configurable: t, openMediaSettings: n }) {
series: "条目",
color: J6,
layout: "horizontal",
- rows: tbe(e.by_medium)
+ rows: nbe(e.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: woe,
+ icon: coe,
title: "还没有视频",
actions: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [t ? /* @__PURE__ */ (0, U.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, U.jsx)(mT, {
+ }) : null, /* @__PURE__ */ (0, U.jsx)(eT, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
@@ -72110,7 +72110,7 @@ function BVe({ data: e }) {
unit: "个作品",
series: "作品",
color: MVe,
- rows: abe(e.replays)
+ rows: obe(e.replays)
})] });
}
function VVe({ attribution: e }) {
@@ -72163,11 +72163,11 @@ function HVe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [I(n), /* @__PURE__ */ (0, U.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [$L(n, t), "%"]
+ children: [QL(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, U.jsx)(NT, {
+ t == null ? null : /* @__PURE__ */ (0, U.jsx)(yT, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -72189,9 +72189,9 @@ function UVe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex flex-col",
children: e.map((e) => /* @__PURE__ */ (0, U.jsx)(HVe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: iT,
+ icon: Ww,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, U.jsx)(J, {
size: "small",
@@ -72227,11 +72227,11 @@ function WVe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: oT,
+ icon: Kw,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, U.jsx)(mT, {
+ actions: /* @__PURE__ */ (0, U.jsx)(eT, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -72244,7 +72244,7 @@ function GVe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = eR(e);
+ let t = $L(e);
return /* @__PURE__ */ (0, U.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
@@ -72252,32 +72252,32 @@ function GVe({ rows: e }) {
children: [/* @__PURE__ */ (0, U.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, U.jsx)("a", {
- href: Zye(e),
+ href: Qye(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, U.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, U.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, U.jsx)("span", { children: Xye(e) })]
+ children: [/* @__PURE__ */ (0, U.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, U.jsx)("span", { children: Zye(e) })]
})]
}), /* @__PURE__ */ (0, U.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, U.jsx)(NT, {
+ children: [/* @__PURE__ */ (0, U.jsx)(yT, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, U.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${tR(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${eR(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: aT,
+ icon: Gw,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, U.jsx)(mT, {
+ actions: /* @__PURE__ */ (0, U.jsx)(eT, {
variant: "secondary",
href: "/",
size: "small",
@@ -72305,7 +72305,7 @@ function KVe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, U.jsx)(NT, {
+ /* @__PURE__ */ (0, U.jsx)(yT, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -72316,11 +72316,11 @@ function KVe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: oT,
+ icon: Kw,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, U.jsx)(mT, {
+ actions: /* @__PURE__ */ (0, U.jsx)(eT, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -72330,13 +72330,13 @@ function KVe({ sources: e, videos: t }) {
});
}
function $6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, U.jsx)(z_, {
+ return /* @__PURE__ */ (0, U.jsx)(R_, {
id: e,
- className: uM({
+ className: eM({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, U.jsx)(mM, {
+ children: /* @__PURE__ */ (0, U.jsx)(iM, {
label: t,
icon: i,
accent: a,
@@ -72346,33 +72346,33 @@ function $6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
});
}
function qVe(e) {
- let t = yw({
- queryKey: ZL,
- queryFn: ({ signal: e }) => QL(e)
+ let t = vw({
+ queryKey: XL,
+ queryFn: ({ signal: e }) => ZL(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, U.jsx)(qk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, U.jsx)(Nk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? K(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 = $L(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, U.jsxs)(qk, { 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 = QL(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, U.jsxs)(Nk, { children: [
/* @__PURE__ */ (0, U.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${I(o)}`
}),
- /* @__PURE__ */ (0, U.jsxs)(L_, {
+ /* @__PURE__ */ (0, U.jsxs)(I_, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, U.jsxs)(R_, {
+ /* @__PURE__ */ (0, U.jsxs)(L_, {
"aria-label": "统计视图",
- className: dM,
+ className: tM,
children: [
/* @__PURE__ */ (0, U.jsx)($6, {
id: "inventory",
label: "馆藏视频",
- icon: eT,
+ icon: Bw,
accent: 0,
figure: a.toLocaleString(),
detail: I(o)
@@ -72380,15 +72380,15 @@ function qVe(e) {
/* @__PURE__ */ (0, U.jsx)($6, {
id: "viewing",
label: "看过",
- icon: rT,
+ icon: Uw,
accent: 1,
figure: r.played.toLocaleString(),
- detail: Yye(r.play_seconds)
+ detail: Xye(r.play_seconds)
}),
/* @__PURE__ */ (0, U.jsx)($6, {
id: "coverage",
label: "内容标签",
- icon: oT,
+ icon: Kw,
accent: 2,
figure: `${s}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
@@ -72396,21 +72396,21 @@ function qVe(e) {
/* @__PURE__ */ (0, U.jsx)($6, {
id: "storage",
label: "使用空间",
- icon: iT,
+ icon: Ww,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${I(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "inventory",
children: /* @__PURE__ */ (0, U.jsx)(zVe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, U.jsxs)(B_, {
+ /* @__PURE__ */ (0, U.jsxs)(z_, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, U.jsx)(Q6, {
@@ -72458,7 +72458,7 @@ function qVe(e) {
})
}), /* @__PURE__ */ (0, U.jsx)(BVe, { data: n })]
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "coverage",
children: /* @__PURE__ */ (0, U.jsx)(Q6, {
headline: /* @__PURE__ */ (0, U.jsx)(Z6, {
@@ -72469,7 +72469,7 @@ function qVe(e) {
children: /* @__PURE__ */ (0, U.jsx)(VVe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "storage",
children: /* @__PURE__ */ (0, U.jsx)(Q6, {
headline: /* @__PURE__ */ (0, U.jsx)(Z6, {
@@ -72485,35 +72485,35 @@ function qVe(e) {
})
]
}),
- /* @__PURE__ */ (0, U.jsxs)(L_, {
+ /* @__PURE__ */ (0, U.jsxs)(I_, {
defaultSelectedKey: "tags",
- className: `${bT({ padding: "none" })} flex flex-col`,
+ className: `${oT({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, U.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, U.jsxs)(wC, {
+ children: /* @__PURE__ */ (0, U.jsxs)(CC, {
"aria-label": "统计维度",
- className: EC,
+ className: TC,
children: [
- /* @__PURE__ */ (0, U.jsx)(z_, {
+ /* @__PURE__ */ (0, U.jsx)(R_, {
id: "tags",
- className: DC,
+ className: EC,
children: "内容标签"
}),
- /* @__PURE__ */ (0, U.jsx)(z_, {
+ /* @__PURE__ */ (0, U.jsx)(R_, {
id: "recent",
- className: DC,
+ className: EC,
children: "最近看过"
}),
- /* @__PURE__ */ (0, U.jsx)(z_, {
+ /* @__PURE__ */ (0, U.jsx)(R_, {
id: "sources",
- className: DC,
+ className: EC,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, U.jsx)(WVe, {
@@ -72521,12 +72521,12 @@ function qVe(e) {
...e
})
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, U.jsx)(GVe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, U.jsx)(B_, {
+ /* @__PURE__ */ (0, U.jsx)(z_, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, U.jsx)(KVe, {
@@ -72630,7 +72630,7 @@ function QVe() {
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(jq(t.sourceLinks, i8), jq(t.targetLinks, i8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Aq(t.sourceLinks, i8), Aq(t.targetLinks, i8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -72655,7 +72655,7 @@ function QVe() {
}
}
function y({ nodes: t }) {
- let r = Dq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = Eq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -72664,7 +72664,7 @@ function QVe() {
return o;
}
function b(e) {
- let n = Oq(e, (e) => (r - t - (e.length - 1) * o) / jq(e, i8));
+ let n = Dq(e, (e) => (r - t - (e.length - 1) * o) / Aq(e, i8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -72681,7 +72681,7 @@ function QVe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (Dq(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (Eq(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -72891,7 +72891,7 @@ var dHe = "/api/taste", p8 = "/api/taste/refresh", fHe = "/api/taste/import", pH
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], h8 = (e, t) => HC(`${dHe}?window=${e}`, t), gHe = (e) => HC(p8, e);
+], h8 = (e, t) => VC(`${dHe}?window=${e}`, t), gHe = (e) => VC(p8, e);
async function _He(e, t) {
await z.fetchQuery({
queryKey: m8(e),
@@ -72921,7 +72921,7 @@ async function bHe(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new BC(e || `导入失败(${t.status})`, t.status, n);
+ throw new zC(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
@@ -73579,11 +73579,11 @@ function eUe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var tUe = 10, N8 = ur(vT, yT, "text-body-2-medium"), P8 = `${bT()} flex flex-col gap-4`, F8 = "rounded-xl bg-background-primary-default p-3", nUe = "读取运行 Peach 的这台电脑上的浏览记录", rUe = "导入或读取浏览记录后,这里会列出已采集设备。", iUe = "馆藏里暂时没有对得上浏览信号的标签。", aUe = "采集浏览记录后,这里会显示聚合后的口味证据。", oUe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", sUe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", cUe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", lUe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", uUe = "这个数据源将不再用于口味分析。原始导出文件保留。", I8 = "peach-taste-guide-dismissed";
+var tUe = 10, N8 = ur(iT, aT, "text-body-2-medium"), P8 = `${oT()} flex flex-col gap-4`, F8 = "rounded-xl bg-background-primary-default p-3", nUe = "读取运行 Peach 的这台电脑上的浏览记录", rUe = "导入或读取浏览记录后,这里会列出已采集设备。", iUe = "馆藏里暂时没有对得上浏览信号的标签。", aUe = "采集浏览记录后,这里会显示聚合后的口味证据。", oUe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", sUe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", cUe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", lUe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", uUe = "这个数据源将不再用于口味分析。原始导出文件保留。", I8 = "peach-taste-guide-dismissed";
function L8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, U.jsx)("div", {
- className: uM(),
- children: /* @__PURE__ */ (0, U.jsx)(mM, {
+ className: eM(),
+ children: /* @__PURE__ */ (0, U.jsx)(iM, {
label: t,
icon: e,
accent: i,
@@ -73608,14 +73608,14 @@ function R8({ name: e, domain: t }) {
}
function dUe({ html: e }) {
return /* @__PURE__ */ (0, U.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 ${qI}`,
+ 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 ${RI}`,
dangerouslySetInnerHTML: { __html: e }
});
}
function fUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, U.jsx)(Ew, {
+ if (!e.length) return /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: lT,
+ icon: Yw,
title: "暂无足够证据",
children: r
});
@@ -73664,7 +73664,7 @@ function fUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: wHe(e)
})]
}),
- o ? /* @__PURE__ */ (0, U.jsx)(Yw, {
+ o ? /* @__PURE__ */ (0, U.jsx)(Fw, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -73685,20 +73685,20 @@ function fUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
});
}
function z8({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, U.jsxs)(L_, {
- className: `${bT({ padding: "none" })} flex flex-col`,
+ return /* @__PURE__ */ (0, U.jsxs)(I_, {
+ className: `${oT({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, U.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, U.jsx)(wC, {
+ children: /* @__PURE__ */ (0, U.jsx)(CC, {
"aria-label": e,
- className: EC,
- children: t.map((e) => /* @__PURE__ */ (0, U.jsx)(z_, {
+ className: TC,
+ children: t.map((e) => /* @__PURE__ */ (0, U.jsx)(R_, {
id: e.id,
- className: DC,
+ className: EC,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, U.jsx)(B_, {
+ }), t.map((e) => /* @__PURE__ */ (0, U.jsx)(z_, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, U.jsx)(fUe, {
@@ -73774,14 +73774,14 @@ function pUe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, U.jsx)(Yw, {
+ }), /* @__PURE__ */ (0, U.jsx)(Fw, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: lT,
+ icon: Yw,
title: "还没有可探索的入口",
children: iUe
})
@@ -73797,11 +73797,11 @@ function mUe({ onboarding: e, done: t }) {
}
});
return t || n ? null : /* @__PURE__ */ (0, U.jsx)("div", {
- className: bT({
+ className: oT({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, U.jsxs)(JT, {
+ children: /* @__PURE__ */ (0, U.jsxs)(PT, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
@@ -73870,7 +73870,7 @@ function hUe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, U.jsx)(J, {
- leadingIcon: $w,
+ leadingIcon: zw,
title: nUe,
onClick: t,
...X(e),
@@ -73878,7 +73878,7 @@ function hUe({ busy: e, onRefresh: t, onImport: n }) {
}), /* @__PURE__ */ (0, U.jsx)(J, {
ref: r,
iconOnly: !0,
- leadingIcon: qw,
+ leadingIcon: Nw,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -73893,15 +73893,15 @@ function hUe({ busy: e, onRefresh: t, onImport: n }) {
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: _T,
- children: /* @__PURE__ */ (0, U.jsxs)(fT, {
+ className: rT,
+ children: /* @__PURE__ */ (0, U.jsxs)(Qw, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
className: N8,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, U.jsx)($w, {
+ children: [/* @__PURE__ */ (0, U.jsx)(zw, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
@@ -73909,7 +73909,7 @@ function hUe({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: N8,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, U.jsx)(uT, {
+ children: [/* @__PURE__ */ (0, U.jsx)(Xw, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -73918,7 +73918,7 @@ function hUe({ busy: e, onRefresh: t, onImport: n }) {
})] });
}
function gUe({ sources: e, window: t, toast: n }) {
- let i = Sw({
+ let i = xw({
mutationFn: (e) => yHe(e, t),
onSuccess: (e) => {
z.setQueryData(m8(t), e.dashboard), n("已移除口味数据源");
@@ -73943,10 +73943,10 @@ function gUe({ sources: e, window: t, toast: n }) {
children: [
/* @__PURE__ */ (0, U.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, U.jsx)(uT, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, U.jsx)(Xw, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, U.jsx)(eT, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Bw, {
"aria-hidden": !0,
className: "size-4"
})
@@ -73966,7 +73966,7 @@ function gUe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: tT,
+ leadingIcon: Vw,
...X(i.isPending),
onClick: () => {
i.isPending || r({
@@ -73979,9 +73979,9 @@ function gUe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: eT,
+ icon: Bw,
title: "还没有数据源",
children: rUe
})
@@ -73989,11 +73989,11 @@ function gUe({ sources: e, window: t, toast: n }) {
});
}
function _Ue(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 = yw({
+ 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 = vw({
queryKey: m8(a),
queryFn: ({ signal: e }) => h8(a, e),
- placeholderData: ww.keepPreviousData
- }), { job: d, running: f, outcome: p, start: m } = gM({
+ placeholderData: Cw.keepPreviousData
+ }), { job: d, running: f, outcome: p, start: m } = oM({
queryKey: mHe,
queryFn: ({ signal: e }) => gHe(e),
start: () => vHe(a),
@@ -74001,7 +74001,7 @@ function _Ue(e) {
onFinish: (e) => {
e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
- }), h = Sw({
+ }), h = xw({
mutationFn: (e) => bHe(e),
onSuccess: (e) => {
z.setQueryData(m8("all"), e.dashboard), o("all"), r("已导入口味数据");
@@ -74012,42 +74012,42 @@ function _Ue(e) {
}, _ = () => {
f || m.isPending || (m.reset(), m.mutate());
}, v = u.data;
- if (!v) return /* @__PURE__ */ (0, U.jsx)(qk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
+ if (!v) return /* @__PURE__ */ (0, U.jsx)(Nk, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "口味分析读取失败",
children: u.error ? K(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 ? K(m.error) : h.error ? K(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, U.jsxs)(qk, { children: [
- /* @__PURE__ */ (0, U.jsxs)(L_, {
+ return /* @__PURE__ */ (0, U.jsxs)(Nk, { children: [
+ /* @__PURE__ */ (0, U.jsxs)(I_, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, U.jsxs)(wC, {
+ children: [/* @__PURE__ */ (0, U.jsxs)(CC, {
"aria-label": "口味证据来源",
- className: EC,
- children: [/* @__PURE__ */ (0, U.jsx)(z_, {
+ className: TC,
+ children: [/* @__PURE__ */ (0, U.jsx)(R_, {
id: "browser",
- className: DC,
+ className: EC,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, U.jsx)(z_, {
+ }), /* @__PURE__ */ (0, U.jsx)(R_, {
id: "peach",
- className: DC,
+ className: EC,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, U.jsx)(eA, {
+ /* @__PURE__ */ (0, U.jsx)(Bk, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: hHe.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(tA, {
+ children: hHe.map(([e, t]) => /* @__PURE__ */ (0, U.jsx)(Vk, {
id: e,
children: t
}, e))
@@ -74076,48 +74076,48 @@ function _Ue(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, U.jsx)(PT, {
+ f ? /* @__PURE__ */ (0, U.jsx)(bT, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- h.isPending ? /* @__PURE__ */ (0, U.jsx)(PT, { label: "正在导入历史文件" }) : null,
+ h.isPending ? /* @__PURE__ */ (0, U.jsx)(bT, { label: "正在导入历史文件" }) : null,
D ? /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
children: D
}) : null
]
}),
- /* @__PURE__ */ (0, U.jsxs)(B_, {
+ /* @__PURE__ */ (0, U.jsxs)(z_, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
- className: dM,
+ className: tM,
children: [
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 0,
- icon: aT,
+ icon: Gw,
term: "浏览记录",
figure: Number(y.history_visits || 0).toLocaleString(),
detail: `${y.history_sources || 0} 个数据源 · ${g8(y.range_start)}—${g8(y.range_end)}`
}),
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 1,
- icon: oT,
+ icon: Kw,
term: "口味维度",
figure: C.length.toLocaleString(),
detail: C[0]?.name || "尚无主维度"
}),
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 2,
- icon: lT,
+ icon: Yw,
term: "浏览候选",
figure: w.length.toLocaleString()
}),
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 3,
- icon: eT,
+ icon: Bw,
term: "私有导出",
figure: Number(S.exports || 0).toLocaleString(),
detail: I(S.bytes || 0)
@@ -74148,9 +74148,9 @@ function _Ue(e) {
children: C.length ? /* @__PURE__ */ (0, U.jsx)($He, {
rows: C,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, U.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, U.jsx)(Mk, {
shell: "plain",
- icon: lT,
+ icon: Yw,
title: "暂无口味维度",
children: aUe
})
@@ -74217,35 +74217,35 @@ function _Ue(e) {
})
]
}),
- /* @__PURE__ */ (0, U.jsxs)(B_, {
+ /* @__PURE__ */ (0, U.jsxs)(z_, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
- className: dM,
+ className: tM,
children: [
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 0,
- icon: rT,
+ icon: Uw,
term: "Peach 看过",
figure: Number(y.peach_items || 0).toLocaleString(),
detail: SHe(y.peach_seconds || 0)
}),
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 1,
- icon: Coe,
+ icon: soe,
term: "喜欢",
figure: Number(y.liked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 2,
- icon: Soe,
+ icon: ooe,
term: "不合口味",
figure: Number(y.disliked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, U.jsx)(L8, {
accent: 3,
- icon: oT,
+ icon: Kw,
term: "有标签",
figure: T.toLocaleString()
})
@@ -74348,7 +74348,7 @@ function B8({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, U.jsx)(NT, {
+ }), /* @__PURE__ */ (0, U.jsx)(yT, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -74367,7 +74367,7 @@ function vUe(e, t, n) {
}
var V8 = {
"/stats": {
- prefetch: (e, t) => Jye(t),
+ prefetch: (e, t) => Yye(t),
page: (e, t, n) => /* @__PURE__ */ (0, U.jsx)(qVe, {
tagLabel: Je,
onTag: t.openTag,
@@ -74387,8 +74387,8 @@ var V8 = {
})
},
"/review": {
- prefetch: (e, t) => Zde(t),
- page: (e, t) => /* @__PURE__ */ (0, U.jsx)(Lve, {
+ prefetch: (e, t) => Ide(t),
+ page: (e, t) => /* @__PURE__ */ (0, U.jsx)(Rve, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -74398,24 +74398,24 @@ var V8 = {
})
},
"/data-cleanup": {
- prefetch: (e, t) => Rfe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, U.jsx)(BM, {
+ prefetch: (e, t) => Cfe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, U.jsx)(ppe, {
failure: t.failure,
open: (e) => vUe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
- prefetch: (e, t) => bde(t),
- page: (e, t) => /* @__PURE__ */ (0, U.jsx)(Kme, {
+ prefetch: (e, t) => ade(t),
+ page: (e, t) => /* @__PURE__ */ (0, U.jsx)(jme, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
})
},
"/quality-goals": {
- prefetch: (e, t) => Ade(t),
- page: (e, t) => /* @__PURE__ */ (0, U.jsx)(xve, {
+ prefetch: (e, t) => hde(t),
+ page: (e, t) => /* @__PURE__ */ (0, U.jsx)(Sve, {
openItem: t.openItem,
javTitleHtml: qe,
javDisplayName: Ke,
@@ -74423,23 +74423,23 @@ var V8 = {
})
},
"/scraping": {
- prefetch: (e, t) => Wve(t),
- page: (e, t) => /* @__PURE__ */ (0, U.jsx)(Zve, { toast: (e) => t.toast(e) })
+ prefetch: (e, t) => Gve(t),
+ page: (e, t) => /* @__PURE__ */ (0, U.jsx)(Qve, { toast: (e) => t.toast(e) })
},
"/configuration": {
- prefetch: (e, t) => zL(t),
- page: (e, t) => /* @__PURE__ */ (0, U.jsx)(Kye, {
+ prefetch: (e, t) => RL(t),
+ page: (e, t) => /* @__PURE__ */ (0, U.jsx)(qye, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial
})
},
"/activity": {
- prefetch: (e, t) => Rue(t),
- page: (e) => /* @__PURE__ */ (0, U.jsx)(Yue, { ...e.prefill ? { prefill: e.prefill } : {} })
+ prefetch: (e, t) => Tue(t),
+ page: (e) => /* @__PURE__ */ (0, U.jsx)(aA, { ...e.prefill ? { prefill: e.prefill } : {} })
},
"/follow-manage": {
- prefetch: (e, t) => Che(t, e.tab),
- page: (e, t, n) => /* @__PURE__ */ (0, U.jsx)(W_e, {
+ prefetch: (e, t) => che(t, e.tab),
+ page: (e, t, n) => /* @__PURE__ */ (0, U.jsx)(k_e, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -74452,8 +74452,8 @@ var V8 = {
}
}, H8 = (e) => Object.hasOwn(V8, e), U8 = {
"/playlists": {
- prefetch: (e, t) => sve(t),
- page: (e, t) => /* @__PURE__ */ (0, U.jsx)(yve, {
+ prefetch: (e, t) => cve(t),
+ page: (e, t) => /* @__PURE__ */ (0, U.jsx)(bve, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -74462,12 +74462,12 @@ var V8 = {
})
},
"/follow": {
- prefetch: (e, t) => jhe(e, t),
- page: (e) => /* @__PURE__ */ (0, U.jsx)(tge, { ...e })
+ prefetch: (e, t) => ghe(e, t),
+ page: (e) => /* @__PURE__ */ (0, U.jsx)(Bhe, { ...e })
}
}, W8 = (e) => Object.hasOwn(U8, e), G8 = {
- prefetch: (e, t) => CN(e, t),
- page: (e, t) => /* @__PURE__ */ (0, U.jsx)(rve, {
+ prefetch: (e, t) => QM(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, U.jsx)(H_e, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -74487,23 +74487,30 @@ var V8 = {
"/agencies": G8,
"/tags": G8
}, q8 = {
- prefetch: (e) => tN(e),
- page: (e) => /* @__PURE__ */ (0, U.jsx)(Lme, { ...e })
+ prefetch: (e) => vpe(e),
+ page: (e) => /* @__PURE__ */ (0, U.jsx)(Sme, { ...e })
}, J8 = {
"/performers/*": q8,
"/studios/*": q8,
"/creators/*": q8,
"/series/*": q8,
"/agencies/*": q8
-}, Y8 = { "/": {
- prefetch: (e, t) => mle(e, t),
- page: (e) => /* @__PURE__ */ (0, U.jsx)(RA, { ...e })
-} }, X8 = (e) => Object.hasOwn(Y8, e), yUe = [
+}, Y8 = {
+ "/": {
+ prefetch: (e, t) => $ce(e, t),
+ page: (e) => /* @__PURE__ */ (0, U.jsx)(OA, { ...e })
+ },
+ "/junk-files": {
+ prefetch: async () => {},
+ page: (e) => /* @__PURE__ */ (0, U.jsx)(rve, { ...e })
+ }
+}, X8 = (e) => Object.hasOwn(Y8, e), yUe = [
"/",
"/unseen",
"/watch-later",
"/flagged",
- "/trash"
+ "/trash",
+ "/junk-files"
], bUe = [
...Object.keys(V8),
...Object.keys(U8),
@@ -75277,7 +75284,7 @@ var IWe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {
return Z8(e.path) ? (0, Dt.createPortal)(SUe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
function LWe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, U.jsx)(iD, { children: /* @__PURE__ */ (0, U.jsx)(B5.Provider, {
+ return /* @__PURE__ */ (0, U.jsx)(WE, { children: /* @__PURE__ */ (0, U.jsx)(B5.Provider, {
value: t,
children: /* @__PURE__ */ (0, U.jsxs)(jWe, { children: [
/* @__PURE__ */ (0, U.jsx)(MWe, {}),
@@ -75318,30 +75325,30 @@ var zWe = (e) => {
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
function BWe({ openConfiguration: e }) {
- let t = yw({
- queryKey: LL,
- queryFn: ({ signal: e }) => RL(e)
+ let t = vw({
+ queryKey: IL,
+ queryFn: ({ signal: e }) => LL(e)
}), n = t.data;
return /* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, U.jsxs)(KT, { children: [
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ children: [n ? /* @__PURE__ */ (0, U.jsxs)(MT, { children: [
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, U.jsx)(qT, {
+ /* @__PURE__ */ (0, U.jsx)(NT, {
term: "更新",
children: zWe(n)
})
- ] }) : /* @__PURE__ */ (0, U.jsx)(BT, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, U.jsx)(ET, { children: /* @__PURE__ */ (0, U.jsx)(Y, {
tone: "error",
title: "配置读取失败",
children: t.error ? K(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, U.jsx)(VT, {
+ }) }), /* @__PURE__ */ (0, U.jsx)(DT, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, U.jsx)(J, {
onClick: e,
@@ -75499,7 +75506,7 @@ function UWe({ host: e, spot: t, index: r, glow: i }) {
children: d
})]
}),
- /* @__PURE__ */ (0, U.jsx)(zk, { name: "chevron-down" })
+ /* @__PURE__ */ (0, U.jsx)(wk, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, U.jsxs)("div", {
className: "popmenu",
@@ -75557,7 +75564,7 @@ function WWe({ host: e }) {
children: it(t.preset)
})]
}),
- /* @__PURE__ */ (0, U.jsx)(fD, {
+ /* @__PURE__ */ (0, U.jsx)(QE, {
store: e.store,
label: "光晕配色"
}),
@@ -75737,7 +75744,7 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
//#endregion
//#region src/react/sidebar/sidebar-order.ts
function J5(e) {
- let { mutate: t } = Rj();
+ let { mutate: t } = Oj();
return (0, B.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
@@ -75815,9 +75822,9 @@ function qWe({ host: e }) {
/* @__PURE__ */ (0, U.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, U.jsx)(zk, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, U.jsx)(wk, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, U.jsx)(zk, { name: a ?? "" }),
+ /* @__PURE__ */ (0, U.jsx)(wk, { name: a ?? "" }),
/* @__PURE__ */ (0, U.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, U.jsxs)("span", {
@@ -75831,7 +75838,7 @@ function qWe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => y(e, -1),
- children: /* @__PURE__ */ (0, U.jsx)(zk, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, U.jsx)(wk, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
@@ -75841,7 +75848,7 @@ function qWe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => y(e, 1),
- children: /* @__PURE__ */ (0, U.jsx)(zk, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, U.jsx)(wk, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, U.jsx)("button", {
type: "button",
@@ -75853,7 +75860,7 @@ function qWe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, U.jsx)(zk, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, U.jsx)(wk, { name: "eye-off" })
})
]
})]
@@ -75873,13 +75880,13 @@ function qWe({ host: e }) {
ref: h,
onClick: S,
children: b ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
- /* @__PURE__ */ (0, U.jsx)(zk, { name: b[2] ?? "" }),
+ /* @__PURE__ */ (0, U.jsx)(wk, { name: b[2] ?? "" }),
/* @__PURE__ */ (0, U.jsx)("span", {
"data-sidebar-add-label": "",
children: b[1]
}),
- /* @__PURE__ */ (0, U.jsx)(zk, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(zk, { name: "check" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, U.jsx)(wk, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)(wk, { name: "check" }), /* @__PURE__ */ (0, U.jsx)("span", { children: "全部页面都已显示" })] })
}), o.length ? /* @__PURE__ */ (0, U.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -75897,7 +75904,7 @@ function qWe({ host: e }) {
onClick: () => {
c(X5(e)), x(), h.current?.focus();
},
- children: [/* @__PURE__ */ (0, U.jsx)(zk, { name: n ?? "" }), /* @__PURE__ */ (0, U.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, U.jsx)(wk, { name: n ?? "" }), /* @__PURE__ */ (0, U.jsx)("span", { children: t })]
}, X5(e)))
}) : null]
}), /* @__PURE__ */ (0, U.jsx)("button", {
@@ -75986,7 +75993,7 @@ function tGe() {
}
function i7() {
let e = Q5;
- e && (0, Dt.flushSync)(() => tGe().render(/* @__PURE__ */ (0, U.jsx)(iD, { children: /* @__PURE__ */ (0, U.jsx)(cGe, {
+ e && (0, Dt.flushSync)(() => tGe().render(/* @__PURE__ */ (0, U.jsx)(WE, { children: /* @__PURE__ */ (0, U.jsx)(cGe, {
host: e,
view: t7
}) })));
@@ -76006,7 +76013,7 @@ async function nGe(e) {
return;
}
try {
- await zL(new AbortController().signal);
+ await RL(new AbortController().signal);
} catch {}
t7.open && a7({ machine: "summary" });
}
@@ -76015,7 +76022,7 @@ function rGe(e = "") {
let t = Q5;
if (!t) return;
n(), n7 += 1, r7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = Z5.findIndex(([t]) => t === e), i = ofe();
+ let r = Z5.findIndex(([t]) => t === e), i = Gde();
a7({
open: !0,
closing: !1,
@@ -76130,7 +76137,7 @@ function sGe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, U.jsx)(yue, { name: r }), t]
+ children: [/* @__PURE__ */ (0, U.jsx)(aue, { name: r }), t]
}, t))
]
});
@@ -76445,7 +76452,7 @@ function uGe({ host: e, tab: t, epoch: n }) {
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = cO(t), i(), e.changed("javImage");
+ r.javImage = JD(t), i(), e.changed("javImage");
}
})
}),
@@ -76488,7 +76495,7 @@ function uGe({ host: e, tab: t, epoch: n }) {
});
}
function dGe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = Rj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {
+ let s = Oj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {
l(t), x(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -76590,14 +76597,14 @@ function fGe({ host: e, tab: t, epoch: n }) {
});
}
function pGe({ epoch: e }) {
- let t = yw({
- queryKey: Fj,
- queryFn: ({ signal: e }) => Lj(e)
- }), n = cfe(), r = n.reset;
+ let t = vw({
+ queryKey: Tj,
+ queryFn: ({ signal: e }) => Dj(e)
+ }), n = qde(), r = n.reset;
(0, B.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? p7() : t.isFetching ? f("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : t.data ? h7(ufe(t.data)) : "读取运行状态…";
+ let i = t.data?.mode || "off", a = n.isPending ? p7() : t.isFetching ? f("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : t.data ? h7(Yde(t.data)) : "读取运行状态…";
return /* @__PURE__ */ (0, U.jsx)(d7, {
title: "视频缩略图采集",
description: /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, U.jsx)(f7, {
@@ -76617,7 +76624,7 @@ function pGe({ epoch: e }) {
});
}
function mGe({ host: e, epoch: t }) {
- let n = e.store.value, r = Rj();
+ let n = e.store.value, r = Oj();
return /* @__PURE__ */ (0, U.jsx)(d7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
@@ -76635,7 +76642,7 @@ function mGe({ host: e, epoch: t }) {
});
}
function hGe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = Rj(), a = Rj(), [o, s] = (0, B.useState)("");
+ let r = e.store.value, i = Oj(), a = Oj(), [o, s] = (0, B.useState)("");
(0, B.useEffect)(() => {
s("");
}, [n]);
@@ -76690,14 +76697,14 @@ function hGe({ host: e, tab: t, epoch: n }) {
});
}
function gGe({ epoch: e }) {
- let t = yw({
- queryKey: Pj,
- queryFn: ({ signal: e }) => Ij(e)
- }), n = sfe(), r = n.reset;
+ let t = vw({
+ queryKey: wj,
+ queryFn: ({ signal: e }) => Ej(e)
+ }), n = Kde(), 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 ? p7() : t.isFetching ? f("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : i ? h7(lfe(i)) : "读取运行状态…";
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? p7() : t.isFetching ? f("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : i ? h7(Jde(i)) : "读取运行状态…";
return /* @__PURE__ */ (0, U.jsx)(d7, {
title: "关注自动更新",
description: /* @__PURE__ */ (0, U.jsx)(f7, {
@@ -76749,7 +76756,7 @@ function S7() {
let e = v7;
if (!e || !y7) return;
let t = b7, n = x7;
- (0, Dt.flushSync)(() => y7.render(/* @__PURE__ */ (0, U.jsx)(iD, { children: /* @__PURE__ */ (0, U.jsx)(xGe, {
+ (0, Dt.flushSync)(() => y7.render(/* @__PURE__ */ (0, U.jsx)(WE, { children: /* @__PURE__ */ (0, U.jsx)(xGe, {
host: e,
props: t,
epoch: n
@@ -76844,7 +76851,7 @@ function SGe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, U.jsx)(zk, { name: r }), /* @__PURE__ */ (0, U.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, U.jsx)(wk, { name: r }), /* @__PURE__ */ (0, U.jsx)("span", { children: n })]
}, t || g7))
}), v ? (0, Dt.createPortal)(/* @__PURE__ */ (0, U.jsx)("span", {
"data-sidebar-glide": "",
@@ -77000,7 +77007,7 @@ function DGe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, U.jsx)(zk, { name: "chevron-right" }), /* @__PURE__ */ (0, U.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, U.jsx)(wk, { name: "chevron-right" }), /* @__PURE__ */ (0, U.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, U.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -77022,7 +77029,7 @@ function DGe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
}
var T7 = (0, B.createContext)(() => {});
function OGe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, U.jsx)(zk, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, U.jsx)("img", {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, U.jsx)(wk, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, U.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -77101,7 +77108,7 @@ function kGe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !v
}), v && d());
},
- children: /* @__PURE__ */ (0, U.jsx)(zk, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, U.jsx)(wk, { name: "chevron-down" })
}) : null] });
}
function D7({ rows: e, host: t, selected: n, badges: r }) {
@@ -77204,9 +77211,9 @@ function NGe() {
//#region src/react/follow-detail/follow-detail.ts
var A7 = (e) => ["follow-item", e], PGe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, FGe = "/api/follow/save", IGe = "/api/follow/media/hide";
async function j7(e, t) {
- let n = await HC(PGe(e), t);
+ let n = await VC(PGe(e), t);
for (let t of n.groups || []) {
- let r = SF(t).find((t) => t.id === e);
+ let r = pF(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -77217,9 +77224,9 @@ async function j7(e, t) {
throw Error("这条关注内容已不存在");
}
async function LGe(e, t) {
- let n = A7(e.id), r = Mhe(e.id), i = z.getQueryData(vF) ? null : z.fetchQuery({
- queryKey: vF,
- queryFn: () => yF(t)
+ let n = A7(e.id), r = _he(e.id), i = z.getQueryData(lF) ? null : z.fetchQuery({
+ queryKey: lF,
+ queryFn: () => uF(t)
});
r ? z.setQueryData(n, {
...r,
@@ -77230,7 +77237,7 @@ async function LGe(e, t) {
}), await i;
}
function RGe(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 && DF(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);
+ 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 && vF(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,
@@ -77244,7 +77251,7 @@ function RGe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var zGe = (e) => SF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), BGe = {
+var zGe = (e) => pF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), BGe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
@@ -77405,12 +77412,12 @@ var QGe = ({ label: e, count: t }) => /* @__PURE__ */ (0, U.jsxs)("h3", {
dangerouslySetInnerHTML: { __html: L(e) }
}), z7 = L("external-link", "externalmark");
function eKe(e) {
- let { id: t, actions: n } = e, r = yw({
+ let { id: t, actions: n } = e, r = vw({
queryKey: A7(t),
queryFn: ({ signal: e }) => j7(t, e)
- }), i = yw({
- queryKey: vF,
- queryFn: ({ signal: e }) => yF(e)
+ }), i = vw({
+ queryKey: lF,
+ queryFn: ({ signal: e }) => uF(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, U.jsx)(tKe, {
...e,
@@ -77426,7 +77433,7 @@ function eKe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, U.jsx)(B7, { onClose: n.close }), /* @__PURE__ */ (0, U.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? /* @__PURE__ */ (0, U.jsx)(Ow, {
+ children: r.isError ? /* @__PURE__ */ (0, U.jsx)(sA, {
message: ce(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -77548,7 +77555,7 @@ function nKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
src: b,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: h.length ? () => void LN(Math.max(0, l), h) : void 0,
+ onClick: h.length ? () => void SN(Math.max(0, l), h) : void 0,
onError: () => {
if (y && b !== y) {
x(y), i.thumbFallback();
@@ -77560,7 +77567,7 @@ function nKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, U.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: NF(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: wF(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, U.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
@@ -77619,7 +77626,7 @@ function U7(e) {
}, [e]);
}
function rKe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = DF(e), a = U7(n);
+ let i = vF(e), a = U7(n);
return /* @__PURE__ */ (0, U.jsx)(I7, {
kind: "collection",
"data-follow-queue": "",
@@ -77628,7 +77635,7 @@ function rKe({ 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 = UGe(e, n, i ? n.provider_label : ""), o = i ? NF(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = UGe(e, n, i ? n.provider_label : ""), o = i ? wF(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, U.jsxs)(L7, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -77651,7 +77658,7 @@ function rKe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, U.jsx)("time", {
dateTime: n.published_at || "",
- children: BF(n)
+ children: jF(n)
})]
})]
}, n.id);
@@ -77702,7 +77709,7 @@ function iKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = RF(d, e), p = IF(e, JGe(e, t.sources), n), m = p.credited ? "" : e.author && re(e.author) !== re(p.author) ? e.author : "", h = zF(e, n), g = qGe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = kF(d, e), p = DF(e, JGe(e, t.sources), n), m = p.credited ? "" : e.author && re(e.author) !== re(p.author) ? e.author : "", h = AF(e, n), g = qGe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -77718,7 +77725,7 @@ function iKe({ 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: LF(d, e) + P(e.title) }
+ dangerouslySetInnerHTML: { __html: OF(d, e) + P(e.title) }
}), e.url ? /* @__PURE__ */ (0, U.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -77745,7 +77752,7 @@ function iKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, U.jsx)("span", { children: BF(e) }),
+ /* @__PURE__ */ (0, U.jsx)("span", { children: jF(e) }),
R7(e.duration) ? /* @__PURE__ */ (0, U.jsx)("span", { children: ne(e.duration) }) : null,
f ? /* @__PURE__ */ (0, U.jsx)("span", {
"data-follow-badges": "",
@@ -77923,17 +77930,17 @@ function aKe(e, t, n) {
...t.item,
status: e
}
- }), Phe(r, e);
+ }), yhe(r, e);
}, d = (e) => {
c(ce(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = Sw({
- mutationFn: ({ to: e }) => q(MP, {
+ }, f = xw({
+ mutationFn: ({ to: e }) => q(CP, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && rL(), t.toast(ZGe(n), { undo: i === "saved" ? void 0 : async () => {
- await q(MP, {
+ u(n), c(""), n === "ignored" && JI(), t.toast(ZGe(n), { undo: i === "saved" ? void 0 : async () => {
+ await q(CP, {
item: r,
to: i
}), u(i);
@@ -77941,14 +77948,14 @@ function aKe(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), p = Sw({
+ }), p = xw({
mutationFn: () => q(FGe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), m = Sw({
+ }), m = xw({
mutationFn: async ({ index: e, hidden: t }) => {
await q(IGe, {
item: r,
@@ -77961,17 +77968,17 @@ function aKe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = z.getQueryData(i);
- o && Nhe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && vhe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), h = yw({
- queryKey: P_e(r),
- queryFn: ({ signal: e }) => L_e(r, e)
- }).data?.want ?? null, g = Sw({
- mutationFn: async (e) => (e ? await nL([e.id]) : await tL({ follow: r }), !e),
+ }), h = vw({
+ queryKey: y_e(r),
+ queryFn: ({ signal: e }) => S_e(r, e)
+ }).data?.want ?? null, g = xw({
+ mutationFn: async (e) => (e ? await qI([e.id]) : await KI({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), rL();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), JI();
},
onError: d,
onSettled: () => l("want", !1)
@@ -78056,7 +78063,7 @@ function uKe({ code: e, coverUrl: t, box: n, onSaved: r }) {
children: /* @__PURE__ */ (0, U.jsx)(G7, { className: "size-3.75" })
}), /* @__PURE__ */ (0, U.jsx)(Wp, {
getContainer: () => sKe(o.current),
- children: /* @__PURE__ */ (0, U.jsx)(ZN, {
+ children: /* @__PURE__ */ (0, U.jsx)(VN, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
@@ -78072,7 +78079,7 @@ function uKe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})] });
}
function dKe({ 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 = Iw(), f = Sw({
+ let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = fT(), f = xw({
mutationFn: (t) => lKe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
@@ -78085,15 +78092,15 @@ function dKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Upe(e, lO);
- c(qN(t, e, null));
+ } : Ope(e, YD);
+ c(LN(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, U.jsx)(QN, { children: /* @__PURE__ */ (0, U.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, U.jsx)(HN, { children: /* @__PURE__ */ (0, U.jsx)(G7, { className: "size-6" }) }),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -78112,8 +78119,8 @@ function dKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, U.jsx)(OT, {
- icon: Qw,
+ /* @__PURE__ */ (0, U.jsx)(mT, {
+ icon: Rw,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -78123,24 +78130,24 @@ function dKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, U.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, U.jsx)(eP, {
+ children: /* @__PURE__ */ (0, U.jsx)(WN, {
src: t,
- aspect: l ? lO : null,
+ aspect: l ? YD : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- GN(e) && p(e);
+ FN(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, U.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, U.jsx)(KI, {
+ children: [/* @__PURE__ */ (0, U.jsx)(LI, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(qN(s, a, lO));
+ u(e), e && s && a && c(LN(s, a, YD));
},
children: /* @__PURE__ */ (0, U.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -78177,13 +78184,13 @@ var K7 = ({ name: e }) => /* @__PURE__ */ (0, U.jsx)("span", {
dangerouslySetInnerHTML: { __html: e }
});
function fKe(e) {
- let { queue: t, actions: n } = e, r = yw({
- queryKey: t ? gO(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => TO(t, e.helpers, n),
+ let { queue: t, actions: n } = e, r = vw({
+ queryKey: t ? nO(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => dO(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? OO(i, e.id) : t ? null : e.id, o = yw({
- queryKey: hO(a ?? 0),
- queryFn: ({ signal: e }) => wO(a, e),
+ }), i = t && r.data || null, a = i ? mO(i, e.id) : t ? null : e.id, o = vw({
+ queryKey: tO(a ?? 0),
+ queryFn: ({ signal: e }) => uO(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -78196,7 +78203,7 @@ function fKe(e) {
"data-item-media": "none",
children: [/* @__PURE__ */ (0, U.jsx)(J7, { onClose: n.close }), /* @__PURE__ */ (0, U.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, U.jsx)(Ow, {
+ children: e ? /* @__PURE__ */ (0, U.jsx)(sA, {
message: ce(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -78208,7 +78215,7 @@ function fKe(e) {
}
return /* @__PURE__ */ (0, U.jsx)(pKe, {
...e,
- item: wle(o.data, i),
+ item: lle(o.data, i),
queue: i
}, o.data.id);
}
@@ -78226,13 +78233,13 @@ function pKe(e) {
(0, B.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, B.useEffect)(() => {
- n?.kind === "playlist" && q(_O, {
+ n?.kind === "playlist" && q(rO, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Rle(t, i.sourceOffline(t.location || ""));
+ let s = Cle(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
@@ -78326,7 +78333,7 @@ function hKe({ item: e, badge: t, helpers: n, actions: r }) {
});
}
function gKe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Ple(e), a = (0, B.useRef)(null), o = vKe(e, t, r), s = (0, B.useRef)(o);
+ let i = yle(e), a = (0, B.useRef)(null), o = vKe(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, {
@@ -78362,10 +78369,10 @@ function gKe({ 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, U.jsx)("i", {
- className: `javedition ${Mle[i.edition_label] || "censored"}`,
+ className: `javedition ${_le[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && DO(i);
+ }) : null, s = e.kind === "playlist" && pO(i);
return /* @__PURE__ */ (0, U.jsxs)(L7, {
current: i.id === t,
"data-queue-item": i.id,
@@ -78405,14 +78412,14 @@ function gKe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, U.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? IO(i.part_label) : be(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? SO(i.part_label) : be(i, n.tagLabel)
})]
}, i.id);
})
});
}
function _Ke(e, t) {
- let n = Sw({ mutationFn: (t) => q(_O, {
+ let n = xw({ mutationFn: (t) => q(rO, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -78426,13 +78433,13 @@ function _Ke(e, t) {
});
}
function vKe(e, t, n) {
- let i = gO({
+ let i = nO({
kind: "playlist",
playlistId: e.playlistId
- }), a = (e) => (z.setQueryData(i, EO(e)), e), o = (t) => q(_O, {
+ }), a = (e) => (z.setQueryData(i, fO(e)), e), o = (t) => q(rO, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), s = Sw({
+ }).then((e) => e.playlist), s = xw({
mutationFn: (e) => o({
action: "reorder",
asset_ids: e
@@ -78445,8 +78452,8 @@ function vKe(e, t, n) {
return {
move: async (t, r, i) => {
if (e.kind !== "playlist") return;
- let l = Ile(c, t, r, i);
- if (Lle(l, c)) return;
+ let l = xle(c, t, r, i);
+ if (Sle(l, c)) return;
let u = c;
await s.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
a(await o({
@@ -78694,7 +78701,7 @@ function bKe({ 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) + Fle(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + ble(e, t);
return /* @__PURE__ */ (0, U.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, U.jsxs)("div", {
@@ -78731,9 +78738,9 @@ function bKe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
box: e.poster_box || null,
onSaved: (t) => {
z.invalidateQueries({
- queryKey: hO(e.id),
+ queryKey: tO(e.id),
exact: !0
- }), mO((t) => t.code === e.code, { poster_box: t });
+ }), eO((t) => t.code === e.code, { poster_box: t });
}
})
}) : null,
@@ -78781,13 +78788,13 @@ function xKe({ id: e, actions: t, onStatus: n }) {
})] });
}
function SKe({ item: e, write: t }) {
- let n = AO(e.rating);
+ let n = gO(e.rating);
return /* @__PURE__ */ (0, U.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": kO(e.rating),
+ "data-value": hO(e.rating),
children: [/* @__PURE__ */ (0, U.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -78809,12 +78816,12 @@ function SKe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, U.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Dle(e.rating)
+ children: fle(e.rating)
})]
});
}
function CKe({ item: e, actions: t }) {
- let n = (0, B.useMemo)(() => Ele(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+ let n = (0, B.useMemo)(() => dle(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, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("span", { children: n.name.slice(0, 1) }), /* @__PURE__ */ (0, U.jsx)(q7, { html: ge({
id: n.id,
hasImage: n.has_image,
@@ -78929,7 +78936,7 @@ function CKe({ item: e, actions: t }) {
});
}
function wKe({ item: e, write: t, helpers: n, actions: r }) {
- let i = kle(e, n);
+ let i = mle(e, n);
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -78971,7 +78978,7 @@ function TKe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [c, g]);
- let v = c ? jle(f, n.tagCandidates(), FO()) : {
+ let v = c ? gle(f, n.tagCandidates(), xO()) : {
recent: [],
results: [],
create: ""
@@ -78999,12 +79006,12 @@ function TKe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = m >= 0 ? y[m] : null;
- r ? b(r, r.n !== -1 && jO(e, r.k)) : u.trim() && (g(), t.addTag(u.trim()));
+ r ? b(r, r.n !== -1 && _O(e, r.k)) : u.trim() && (g(), t.addTag(u.trim()));
}
}
}, S = -1, C = (t) => {
S += 1;
- let r = S, i = jO(e, t.k);
+ let r = S, i = _O(e, t.k);
return /* @__PURE__ */ (0, U.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -79102,7 +79109,7 @@ function TKe({ item: e, write: t, helpers: n }) {
})] });
}
function EKe({ item: e }) {
- let t = zle(e);
+ let t = wle(e);
return /* @__PURE__ */ (0, U.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, U.jsxs)("div", {
@@ -79176,9 +79183,9 @@ function DKe({ item: e, open: t, write: n }) {
});
}
function OKe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = yw({
- queryKey: xle(t.id, n),
- queryFn: async ({ signal: e }) => (await HC(Cle(t.id, n), e)).items || []
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = vw({
+ queryKey: ole(t.id, n),
+ queryFn: async ({ signal: e }) => (await VC(cle(t.id, n), e)).items || []
}), [o] = (0, B.useState)(() => r.relatedSkeletonHtml()), c = (0, B.useCallback)((e) => {
e && (s(e), r.wireDrag(e));
}, [r]);
@@ -79191,7 +79198,7 @@ function OKe(e) {
ref: c,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, U.jsx)(RA, {
+ children: a.data ? /* @__PURE__ */ (0, U.jsx)(OA, {
mode: "items",
variant: "next",
items: a.data,
@@ -79209,7 +79216,7 @@ function OKe(e) {
});
}
function kKe(e, t, n) {
- let r = e.id, i = hO(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 = e.id, i = tO(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) => {
@@ -79225,11 +79232,11 @@ function kKe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return pO(r, n), t;
+ return $D(r, n), t;
}, m = (e, t) => q(e, {
id: r,
...t
- }), h = Sw({
+ }), h = xw({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@ -79240,7 +79247,7 @@ function kKe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(vO, t === void 0 ? { kind: e } : {
+ let n = await m(iO, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -79260,21 +79267,21 @@ function kKe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Ole(n, e);
- await _("rate", r), t.toast(r ? `已评 ${AO(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = ple(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${gO(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(LO(e, r), { undo: async () => {
+ t.toast(CO(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(bO, {});
+ let e = await m(oO, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(bO, {})).watch_later });
+ p({ watch_later: (await m(oO, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -79284,9 +79291,9 @@ function kKe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(xO, { wanted: !e.wanted });
+ }), r = await m(sO, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(xO, e));
+ n(await m(sO, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -79300,7 +79307,7 @@ function kKe(e, t, n) {
});
u("保存中…");
try {
- o(await m(SO, {
+ o(await m(cO, {
liked: a,
reason: i
}));
@@ -79310,7 +79317,7 @@ function kKe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(SO, r));
+ o(await m(cO, r));
} });
});
},
@@ -79319,11 +79326,11 @@ function kKe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => MO(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(yO, {
+ p((t) => vO(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(aO, {
operation: "add",
tag: e.k
- }), p((t) => NO(t, e));
+ }), p((t) => yO(t, e));
} });
}),
addTag: (e) => {
@@ -79332,14 +79339,14 @@ function kKe(e, t, n) {
(await m("/api/item-tag", {
operation: "add",
tag: r
- })).ok && (p((e) => NO(e, {
+ })).ok && (p((e) => yO(e, {
k: r,
cat: "general"
- })), Ale(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
- await m(yO, {
+ })), hle(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
+ await m(aO, {
operation: "remove",
tag: r
- }), p((e) => MO(e, r));
+ }), p((e) => vO(e, r));
} }));
});
}
@@ -79349,15 +79356,15 @@ function kKe(e, t, n) {
//#region src/react/stage/stage-player.ts
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 AKe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), Mce({
+ Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), _ce({
...e.player,
stage: () => document.getElementById("stage")
- }), Nce({
+ }), vce({
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", () => KD()));
+ }), a9 || (a9 = !0, addEventListener("pagehide", () => MD()));
}
var a9 = !1;
function o9() {
@@ -79382,7 +79389,7 @@ function c9(e, t) {
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 = oO(s, {
+ let c = KD(s, {
kind: n,
item: r,
media: i,
@@ -79395,12 +79402,12 @@ function c9(e, t) {
});
return () => {
let e = !!o.player && X7?.player === o.player;
- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), KD());
+ Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), MD());
};
}
function MKe(e, t) {
let { player: n } = t;
- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), iO(e), e.append(n.el()), xD(n);
+ y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), WD(e), e.append(n.el()), sD(n);
let r = {
player: n,
kind: t.kind,
@@ -79409,9 +79416,9 @@ function MKe(e, t) {
key: t.key
};
Z7 = r;
- let i = aO(n, e);
- return SD(n), () => {
- Z7 === r && (Z7 = null), i(), X7?.player !== n && (bD() === n && xD(null), RD(n), KD());
+ let i = GD(n, e);
+ return cD(n), () => {
+ Z7 === r && (Z7 = null), i(), X7?.player !== n && (oD() === n && sD(null), wD(n), MD());
};
}
var l9 = () => {
@@ -79527,13 +79534,13 @@ function RKe(e, t) {
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), LKe(), SD(e.player);
+ X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), LKe(), cD(e.player);
}
function x9() {
let e = X7;
e && y9(e), X7 = null, t9++;
let t = e?.player ?? null;
- t && bD() === t && xD(null), RD(t), t && KD(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), vD(), b9();
+ t && oD() === t && sD(null), wD(t), t && MD(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), iD(), b9();
}
function S9() {
if (!d9() || !X7) return;
@@ -79569,7 +79576,7 @@ async function BKe(e) {
return;
}
let r = X7;
- y9(r), bD() === r.player && xD(null), RD(r.player), KD(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ y9(r), oD() === r.player && sD(null), wD(r.player), MD(), $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", $7.frame.prepend(i);
let a = {
@@ -79578,14 +79585,14 @@ async function BKe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- f9(a), oO(i, {
+ f9(a), KD(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== t9) {
- r && bD() === r && xD(null), RD(r);
+ r && oD() === r && sD(null), wD(r);
return;
}
if (!r) {
@@ -79790,7 +79797,7 @@ function GKe() {
}
function R9() {
let e = GKe();
- (0, Dt.flushSync)(() => e.render(/* @__PURE__ */ (0, U.jsx)(iD, { children: /* @__PURE__ */ (0, U.jsx)(KKe, { view: j9 }) })));
+ (0, Dt.flushSync)(() => e.render(/* @__PURE__ */ (0, U.jsx)(WE, { children: /* @__PURE__ */ (0, U.jsx)(KKe, { view: j9 }) })));
}
function KKe({ view: e }) {
return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [e ? /* @__PURE__ */ (0, U.jsx)(qKe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, U.jsx)(HKe, {})] });
@@ -79943,7 +79950,7 @@ async function XKe(e) {
s(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
let i = j9.content;
try {
- i.kind === "item" ? await Tle(i.props, n.signal) : await LGe(i.props, n.signal);
+ i.kind === "item" ? await ule(i.props, n.signal) : await LGe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
@@ -79970,7 +79977,7 @@ function ZKe() {
function U9({ miniplayer: e = !0 } = {}) {
if (M9++, N9?.abort(), N9 = null, NKe(e), !j9) return;
let t = I9();
- t && De(t), vD(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
+ t && De(t), iD(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
}
function QKe(e) {
!j9 || j9.content.kind !== "item" || (j9 = {
@@ -80000,7 +80007,7 @@ var eqe = {
isOpen: () => !!j9,
activeVideo: () => IKe(),
toggleTheater: () => {
- j9 && LD(!L9().player.settings().theaterMode);
+ j9 && CD(!L9().player.settings().theaterMode);
},
toggleMiniplayer: () => C9(),
closeMiniplayer: () => x9(),
@@ -80685,7 +80692,7 @@ var Eqe = /*#__PURE__*/ B.forwardRef(function(e, t) {
//#region src/react/entry.tsx
function $9(e) {
return (t, n) => {
- let r = (0, Ot.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, U.jsx)(iD, { children: /* @__PURE__ */ (0, U.jsx)(e, { ...t }) }));
+ let r = (0, Ot.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, U.jsx)(WE, { children: /* @__PURE__ */ (0, U.jsx)(e, { ...t }) }));
return (0, Dt.flushSync)(() => i(n)), {
update: i,
unmount: () => r.unmount()
@@ -80695,24 +80702,20 @@ function $9(e) {
var kqe = {
"catalog-filter": {
prefetch: async () => {},
- mount: $9($ie)
+ mount: $9(eae)
},
"feed-new": {
- prefetch: bae,
- mount: $9(Fae)
- },
- "junk-queue": {
- prefetch: async () => {},
- mount: $9(Yae)
+ prefetch: xae,
+ mount: $9(Iae)
},
"library-processing": {
- prefetch: (e, t) => Hw(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, U.jsx)(tse, { ...e }) : /* @__PURE__ */ (0, U.jsx)(ZT, { ...e }))
+ prefetch: (e, t) => Ow(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, U.jsx)(Boe, { ...e }) : /* @__PURE__ */ (0, U.jsx)(LT, { ...e }))
},
search: {
prefetch: async () => {},
- mount: $9(fae)
+ mount: $9(pae)
}
};
//#endregion
-export { Oce as configureBatchDock, Ace as configureGlowPicker, pue as configureImmerse, Sue as configureManageHeader, RWe as configureRouter, aGe as configureSettingsPanel, bGe as configureSidebar, tqe as configureStage, Dqe as mountToaster, kqe as pages, xUe as prefetchManagedRoute, Oqe as showToast };
+export { pce as configureBatchDock, hce as configureGlowPicker, $le as configureImmerse, cue as configureManageHeader, RWe as configureRouter, aGe as configureSettingsPanel, bGe as configureSidebar, tqe as configureStage, Dqe as mountToaster, kqe as pages, xUe as prefetchManagedRoute, Oqe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 645f79c15..b68654500 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -3919,7 +3919,6 @@ function Jo(e, t) {
var Yo = {
"catalog-filter": { react: "catalog-filter" },
"feed-new": { react: "feed-new" },
- "junk-queue": { react: "junk-queue" },
"library-processing": { react: "library-processing" },
search: { react: "search" }
}, Xo = () => import("/dist/peach-react.js").then(() => void 0), Zo = () => Object.keys(Yo), $ = /* @__PURE__ */ new Map();